本帖最后由 紫川凌 于 2012-12-27 21:46 编辑
问题一
R6#show ip bgp
BGP table version is 2, local router ID is 6.6.6.6
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 172.16.0.0 4.4.4.4 0 0 400 {100,200} i
* 5.5.5.5 0 0 500 300 i
R6#show ip bgp 172.16.0.0
BGP routing table entry for 172.16.0.0/16, version 2
Paths: (2 available, best #1, table Default-IP-Routing-Table)
Flag: 0x820
Advertised to **-groups:
1
400 {100,200}, (aggregated by 400 4.4.4.4)
4.4.4.4 (metric 2) from 4.4.4.4 (4.4.4.4)
Origin IGP, metric 0, localpref 100, valid, external, best
500 300, (aggregated by 500 5.5.5.5)
5.5.5.5 (metric 2) from 5.5.5.5 (5.5.5.5)
Origin IGP, metric 0, localpref 100, valid, external
问题二
R6#show ip bgp sum
BGP router identifier 6.6.6.6, local AS number 600
BGP table version is 3, main routing table version 3
1 network entries using 117 bytes of memory
2 path entries using 104 bytes of memory
3/1 BGP path/bestpath attribute entries using 372 bytes of memory
2 BGP AS-PATH entries using 48 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 641 total bytes of memory
BGP activity 3/2 prefixes, 8/6 paths, scan interval 60 secs
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
4.4.4.4 4 400 57 57 3 0 0 00:01:54 1
5.5.5.5 4 500 49 53 3 0 0 00:26:50 1
R6#
R6#show ip bgp 172.16.0.0
BGP routing table entry for 172.16.0.0/16, version 3
Paths: (2 available, best #2, table Default-IP-Routing-Table)
Advertised to **-groups:
1
400 {999,100,200}, (aggregated by 400 4.4.4.4)
4.4.4.4 (metric 2) from 4.4.4.4 (4.4.4.4)
Origin IGP, metric 0, localpref 100, valid, external
500 300, (aggregated by 500 5.5.5.5)
5.5.5.5 (metric 2) from 5.5.5.5 (5.5.5.5)
Origin IGP, metric 0, localpref 100, valid, external, best
将R5 clear一下
R6#show ip bgp sum
BGP router identifier 6.6.6.6, local AS number 600
BGP table version is 4, main routing table version 4
1 network entries using 117 bytes of memory
2 path entries using 104 bytes of memory
3/1 BGP path/bestpath attribute entries using 372 bytes of memory
2 BGP AS-PATH entries using 48 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 641 total bytes of memory
BGP activity 3/2 prefixes, 9/7 paths, scan interval 60 secs
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
4.4.4.4 4 400 68 69 4 0 0 00:12:31 1
5.5.5.5 4 500 64 68 4 0 0 00:00:28 1
R6#show ip bgp 172.16.0.0
BGP routing table entry for 172.16.0.0/16, version 4
Paths: (2 available, best #2, table Default-IP-Routing-Table)
Flag: 0x820
Advertised to **-groups:
1
500 300, (aggregated by 500 5.5.5.5)
5.5.5.5 (metric 2) from 5.5.5.5 (5.5.5.5)
Origin IGP, metric 0, localpref 100, valid, external
400 {999,100,200}, (aggregated by 400 4.4.4.4)
4.4.4.4 (metric 2) from 4.4.4.4 (4.4.4.4)
Origin IGP, metric 0, localpref 100, valid, external, best
所以结果很明显,选择最老的那条路由。而且aggregate-address XX as-set后括号中的AS不管有多少都当做1来处理。
|