generate路由和聚合路由差不多,都是生成一条汇总的路由,所不同的是generate路由是有下一跳的,如果被汇总的明细路由的下一跳不一致,那么取其中一个的下一跳。
另外好像generate路由不汇总AS-PATH属性。
[edit routing-options]
admin@jr1# show
inactive: aggregate {
route 10.0.0.0/24;
}
generate {
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: 9 destinations, 9 routes (9 active, 0 holddown, 0 hidden)
10.0.0.0/24 (1 entry, 1 announced)
*Aggregate Preference: 130
Next hop type: Indirect
Address: 0x91dc568
Next-hop reference count: 9
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
Age: 12:06 Metric2: 0
Task: Aggregate
Announcement bits (2): 0-KRT 2-Resolve tree 1
AS path: I
Flags: ASPathChanged Generate Resolve Depth: 0 Active
Contributing Routes (4):
10.0.0.4/32 proto BGP
10.0.0.5/32 proto BGP
10.0.0.31/32 proto BGP
10.0.0.32/32 proto BGP
10.0.0.4/32 (1 entry, 1 announced)
*BGP Preference: 170/-101
Next hop type: Indirect
Address: 0x91dc568
Next-hop reference count: 9
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: 7:20 Metric2: 0
Task: BGP_100.10.123.0.2+179
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: 0x91dc568
Next-hop reference count: 9
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: 7:20 Metric2: 0
Task: BGP_100.10.123.0.2+179
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
10.0.0.31/32 (1 entry, 1 announced)
*BGP Preference: 170/-101
Next hop type: Indirect
Address: 0x91dc688
Next-hop reference count: 6
Source: 10.123.0.3
Next hop type: Router, Next hop index: 539
Next hop: 10.123.0.3 via ge-1/3/0.100, selected
Protocol next hop: 10.123.0.3
Indirect next hop: 928c0e8 262143
State:
Local AS: 100 Peer AS: 100
Age: 37:53 Metric2: 0
Task: BGP_100.10.123.0.3+179
Announcement bits (3): 0-KRT 2-Resolve tree 1 3-Aggregate
AS path: 111 112 331 332 I
Accepted
Localpref: 100
Router ID: 10.0.0.3
10.0.0.32/32 (1 entry, 1 announced)
*BGP Preference: 170/-101
Next hop type: Indirect
Address: 0x91dc688
Next-hop reference count: 6
Source: 10.123.0.3
Next hop type: Router, Next hop index: 539
Next hop: 10.123.0.3 via ge-1/3/0.100, selected
Protocol next hop: 10.123.0.3
Indirect next hop: 928c0e8 262143
State:
Local AS: 100 Peer AS: 100
Age: 37:53 Metric2: 0
Task: BGP_100.10.123.0.3+179
Announcement bits (3): 0-KRT 2-Resolve tree 1 3-Aggregate
AS path: 133 134 135 I
Accepted
Localpref: 100
Router ID: 10.0.0.3
[edit routing-options]
admin@jr1#
阅读(1632) | 评论(0) | 转发(0) |