r2#sho ip bgp
Network Next Hop Metric LocPrf Weight Path
*> 1.1.1.0/24 12.0.0.1 0 0 100 i
*> 2.2.2.0/24 0.0.0.0 0 32768 i
r>i3.3.3.0/24 3.3.3.3 0 100 0 i
由于IBGP水平分割问题,R2的BGP表没有R4,R5的路由条目。
r3#sho ip bgp
Network Next Hop Metric LocPrf Weight Path
*>i1.1.1.0/24 2.2.2.2 0 100 0 100 i
r>i2.2.2.0/24 2.2.2.2 0 100 0 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
由于IBGP水平分割问题,R3的BGP表没有R5的路由条目。
r4#sho ip bgp
Network Next Hop Metric LocPrf Weight Path
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
r>i5.5.5.0/24 5.5.5.5 0 100 0 i
由于IBGP水平分割问题,R4的BGP表没有R1,R2的路由条目。
r5#sh ip bgp
Network Next Hop Metric LocPrf Weight Path
r>i4.4.4.0/24 4.4.4.4 0 100 0 i
*> 5.5.5.0/24 0.0.0.0 0 32768 i
由于IBGP水平分割问题,R5的BGP表没有R1,R2,R3的路由条目。
r3#sho run | b r b
router bgp 400
no synchronization
bgp log-neighbor-changes
network 3.3.3.0 mask 255.255.255.0
neighbor 2.2.2.2 remote-as 400
neighbor 2.2.2.2 ebgp-multihop 255
neighbor 2.2.2.2 update-source Loopback0
neighbor 2.2.2.2 route-reflector-client //将R2设为自己的客户
neighbor 4.4.4.4 remote-as 400
neighbor 4.4.4.4 ebgp-multihop 255
neighbor 4.4.4.4 update-source Loopback0
no auto-summary
R2是路由反射器的客户,R3为路由反射器(RR),R4为非客户
r2#sho ip bgp
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 1.1.1.0/24 12.0.0.1 0 0 100 i
*> 2.2.2.0/24 0.0.0.0 0 32768 i
r>i3.3.3.0/24 3.3.3.3 0 100 0 i
r>i4.4.4.0/24 4.4.4.4 0 100 0 i
R2通过路由反射器(R3)已经学到R4的路由,但是还是没有R5的路由,仍然是IBGP的水平分割问题。
r4#sho ip bgp
Network Next Hop Metric LocPrf Weight Path
*>i1.1.1.0/24 2.2.2.2 0 100 0 100 i
r>i2.2.2.0/24 2.2.2.2 0 100 0 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
r>i5.5.5.0/24 5.5.5.5 0 100 0 i
R4通过路由反射器(R3)已经学到R1,R2的路由
r5#sh ip bgp
Network Next Hop Metric LocPrf Weight Path
r>i4.4.4.0/24 4.4.4.4 0 100 0 i
*> 5.5.5.0/24 0.0.0.0 0 32768 i
由于IBGP的水平分割问题R5无法学到R3,R2,R1的路由,因为R4从IBGP邻居(R3)学到的路由不会再传递给下一个IBGP邻居(R5)。
r4#sho run | b r b
router bgp 400
no synchronization
network 4.4.4.0 mask 255.255.255.0
neighbor 3.3.3.3 remote-as 400
neighbor 3.3.3.3 ebgp-multihop 255
neighbor 3.3.3.3 update-source Loopback0
neighbor 5.5.5.5 remote-as 400
neighbor 5.5.5.5 ebgp-multihop 255
neighbor 5.5.5.5 update-source Loopback0
neighbor 5.5.5.5 route-reflector-client //将R5设为自己的客户
R4为路由反射器(RR),R5的客户,R3为非客户
r5#sho ip bgp
Network Next Hop Metric LocPrf Weight Path
*>i1.1.1.0/24 2.2.2.2 0 100 0 100 i
r>i2.2.2.0/24 2.2.2.2 0 100 0 i
r>i3.3.3.0/24 3.3.3.3 0 100 0 i
r>i4.4.4.0/24 4.4.4.4 0 100 0 i
*> 5.5.5.0/24 0.0.0.0 0 32768 i
R5通过路由反射器已学到了所有的路由