R2#sh ip bgp
BGP table version is 5, local router ID is 2.2.2.2
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
* 1.1.1.0/24 23.23.23.3 0 100 i
*> 12.12.12.1 0 0 100 i
*> 2.2.2.0/24 0.0.0.0 0 32768 i
* 3.3.3.0/24 23.23.23.3 0 0 100 i
*> 12.12.12.1 0 100 i
* 4.4.4.0/24 23.23.23.3 0 100 i
*> 12.12.12.1 0 100 i
实验表明学到的“1.1.1.0/24”,“3.3.3.0/24”和“4.4.4.0/24”网络都有两条路径,而且都是来自AS100。由此看出BGP联邦内所有成员的信息对外都被隐藏。
R3#sh ip bgp
BGP table version is 9, local router ID is 3.3.3.3
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
*> 1.1.1.0/24 13.13.13.1 0 100 0 (65001) i
* 2.2.2.0/24 13.13.13.1 0 100 0 (65001) 200 i
*> 23.23.23.2 0 0 200 i
*> 3.3.3.0/24 0.0.0.0 0 32768 i
r>i4.4.4.0/24 4.4.4.4 0 100 0 i
在联邦内的AS-PATH用“()”表示。
R4#sh ip bgp
BGP table version is 8, local router ID is 4.4.4.4
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
*>i1.1.1.0/24 3.3.3.3 0 100 0 (65001) i
*>i2.2.2.0/24 3.3.3.3 0 100 0 200 i
r>i3.3.3.0/24 3.3.3.3 0 100 0 i
*> 4.4.4.0/24 0.0.0.0 0 32768 i
R4#sh ip rou
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is not set
34.0.0.0/24 is subnetted, 1 subnets
C 34.34.34.0 is directly connected, Serial1/2
1.0.0.0/24 is subnetted, 1 subnets
B 1.1.1.0 [200/0] via 3.3.3.3, 00:06:24
2.0.0.0/24 is subnetted, 1 subnets
B 2.2.2.0 [200/0] via 3.3.3.3, 00:02:55
3.0.0.0/24 is subnetted, 1 subnets
D 3.3.3.0 [90/2297856] via 34.34.34.3, 00:27:37, Serial1/2
4.0.0.0/24 is subnetted, 1 subnets
C 4.4.4.0 is directly connected, Loopback0