admin@jr2# set routing-options aggregate defaults ?
Possible completions:
active Remove inactive route from forwarding table
passive Retain inactive route in forwarding table
//active表示明细路由必须有一条是激活的,聚合路由才生效。passive表示不管是否存在明细路由,聚合路由都生效。
> as-path Autonomous system path
+ community BGP community identifier
//为聚合后的路由添加as-path和community属性。
brief Include longest common sequences from contributing paths
full Include all AS numbers from all contributing paths
当不配置brief参数时:可以看到是将公共的部分作为AS-PATH,将其余部分作为AS-SET。
[edit routing-options]
admin@jr1# show
aggregate {
route 10.0.0.0/24;
}
autonomous-system 100;
[edit routing-options]
admin@jr1# run show route 10.0.0.0/24 detail
inet.0: 7 destinations, 7 routes (7 active, 0 holddown, 0 hidden)
10.0.0.0/24 (1 entry, 1 announced)
*Aggregate Preference: 130
Next hop type: Reject
Address: 0x8df15a4
Next-hop reference count: 3
State:
Local AS: 100
Age: 15:45
Task: Aggregate
Announcement bits (2): 0-KRT 2-Resolve tree 1
AS path: 111 112 {113 114 115} I (LocalAgg)
Flags: Depth: 0 Active
AS path list:
AS path: 111 112 113 I Refcount: 1
AS path: 111 112 114 115 I Refcount: 1
Contributing Routes (2):
10.0.0.4/32 proto BGP
10.0.0.5/32 proto BGP
10.0.0.4/32 (1 entry, 1 announced)
*BGP Preference: 170/-101
Next hop type: Indirect
Address: 0x91dc5b0
Next-hop reference count: 6
Source: 10.123.0.2
Next hop type: Router, Next hop index: 540
Next hop: 10.123.0.2 via ge-1/3/0.100, selected
Protocol next hop: 10.123.0.2
Indirect next hop: 928c000 262142
State:
Local AS: 100 Peer AS: 100
Age: 12:40 Metric2: 0
Task: BGP_100.10.123.0.2+54898
Announcement bits (3): 0-KRT 2-Resolve tree 1 3-Aggregate
AS path: 111 112 113 I
Accepted
Localpref: 100
Router ID: 10.0.0.2
10.0.0.5/32 (1 entry, 1 announced)
*BGP Preference: 170/-101
Next hop type: Indirect
Address: 0x91dc5b0
Next-hop reference count: 6
Source: 10.123.0.2
Next hop type: Router, Next hop index: 540
Next hop: 10.123.0.2 via ge-1/3/0.100, selected
Protocol next hop: 10.123.0.2
Indirect next hop: 928c000 262142
State:
Local AS: 100 Peer AS: 100
Age: 12:40 Metric2: 0
Task: BGP_100.10.123.0.2+54898
Announcement bits (3): 0-KRT 2-Resolve tree 1 3-Aggregate
AS path: 111 112 114 115 I
Accepted
Localpref: 100
Router ID: 10.0.0.2
[edit routing-options]
admin@jr1#
当添加brief参数是,生成的AS-PATH只有公共部分:
[edit routing-options]
admin@jr1# show
aggregate {
route 10.0.0.0/24 brief;
}
autonomous-system 100;
[edit routing-options]
admin@jr1# run show route 10.0.0.0/24 detail
inet.0: 7 destinations, 7 routes (7 active, 0 holddown, 0 hidden)
10.0.0.0/24 (1 entry, 1 announced)
*Aggregate Preference: 130
Next hop type: Reject
Address: 0x8df15a4
Next-hop reference count: 3
State:
Local AS: 100
Age: 23:07
Task: Aggregate
Announcement bits (2): 0-KRT 2-Resolve tree 1
AS path: 111 112 ? (LocalAgg Atomic)
Flags: Brief Depth: 0 Active
AS path list:
AS path: 111 112 113 I Refcount: 1
AS path: 111 112 114 115 I Refcount: 1
Contributing Routes (2):
10.0.0.4/32 proto BGP
10.0.0.5/32 proto BGP
当添加funn参数是未缺省属性,funn为缺省:
[edit routing-options]
admin@jr1# show
aggregate {
route 10.0.0.0/24 full;
}
autonomous-system 100;
[edit routing-options]
admin@jr1# run show route 10.0.0.0/24 detail
inet.0: 7 destinations, 7 routes (7 active, 0 holddown, 0 hidden)
10.0.0.0/24 (1 entry, 1 announced)
*Aggregate Preference: 130
Next hop type: Reject
Address: 0x8df15a4
Next-hop reference count: 3
State:
Local AS: 100
Age: 25:08
Task: Aggregate
Announcement bits (2): 0-KRT 2-Resolve tree 1
AS path: 111 112 {113 114 115} I (LocalAgg)
Flags: Depth: 0 Active
AS path list:
AS path: 111 112 113 I Refcount: 1
AS path: 111 112 114 115 I Refcount: 1
Contributing Routes (2):
10.0.0.4/32 proto BGP
10.0.0.5/32 proto BGP
discard Drop packets to destination; send no ICMP unreachables
//生成的聚合路由的next-hop属性缺省是reject,此处可以修改为discard
> metric Metric value
> metric2 Metric value 2
> metric3 Metric value 3
> metric4 Metric value 4
> preference Preference value
> preference2 Preference value 2
> tag Tag string
> tag2 Tag string 2
//配置聚合路由的metic preference tag属性。
阅读(1810) | 评论(0) | 转发(0) |