r2#sho ip bgp
Network Next Hop Metric LocPrf Weight Path
*>
*>
r>i
r>i
没有R5的路由,说明RR(R3)从非客户(R5)学来的路由不会再传递给非客户(R2),但是从客户(R4)学来的路由会传递给它的非客户(R2)。
r4#sho ip bgp
Network Next Hop Metric LocPrf Weight Path
*>i
r>i
r>i
*>
r>i
……

GBP的路由反射器
由于IBGP的水平分割问题,一台路由器从他的邻居IBGP邻居学的到的路由不会再传递给另一个IBGP邻居,所以这里采用路由反射器来解决这问题
基本配置:
r1#sho run
!
interface Loopback0
ip address
!
interface Serial2/1
ip address
serial restart-delay 0
!
router bgp 100
no synchronization
bgp log-neighbor-changes
network
neighbor
no auto-summary
!
end
r2#sho run
!
interface Loopback0
ip address
!
interface Serial2/1
ip address
serial restart-delay 0
!
interface Serial2/2
ip address
serial restart-delay 0
!
router eigrp 100
network
network
no auto-summary
!
router bgp 400
no synchronization
bgp log-neighbor-changes
network
neighbor
……
r2#sho ip bgp
*>
*>
r>i
由于IBGP水平分割问题,R2的BGP表没有R4,R5的路由条目。
Network Next Hop Metric LocPrf Weight Path
*>i
r>i
*>
r>i
由于IBGP水平分割问题,R3的BGP表没有R5的路由条目。
Network Next Hop Metric LocPrf Weight Path
r>i
*>
r>i
由于IBGP水平分割问题,R4的BGP表没有R1,R2的路由条目。
r>i
*>
由于IBGP水平分割问题,R5的BGP表没有R1,R2,R3的路由条目。
r3#sho run | b r b
router bgp 400
no synchronization
bgp log-neighbor-changes
network
neighbor
neighbor
neighbor
neighbor
neighbor
neighbor
neighbor
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
*>
*>
r>i
r>i
R2通过路由反射器(R3)已经学到R4的路由,但是还是没有R5的路由,仍然是IBGP的水平分割问题。
r4#sho ip bgp
Network Next Hop Metric LocPrf Weight Path
*>i
r>i
r>i
*>
r>i
R4通过路由反射器(R3)已经学到R1,R2的路由
Network Next Hop Metric LocPrf Weight Path
r>i
*>
由于IBGP的水平分割问题R5无法学到R3,R2,R1的路由,因为R4从IBGP邻居(R3)学到的路由不会再传递给下一个IBGP邻居(R5)。
router bgp 400
no synchronization
network
neighbor
neighbor
neighbor
neighbor
neighbor
neighbor
neighbor
R4为路由反射器(RR),R5的客户,R3为非客户
r5#sho ip bgp
Network Next Hop Metric LocPrf Weight Path
*>i
r>i
r>i
r>i
*>
R5通过路由反射器已学到了所有的路由

GBP的路由反射器
由于IBGP的水平分割问题,一台路由器从他的邻居IBGP邻居学的到的路由不会再传递给另一个IBGP邻居,所以这里采用路由反射器来解决这问题。
基本配置:
r1#sho run
!
interface Loopback0
ip address
!
interface Serial2/1
ip address
serial restart-delay 0
!
router bgp 100
no synchronization
bgp log-neighbor-changes
network
neighbor
no auto-summary
!
end
r2#sho run
!
interface Loopback0
ip address
!
interface Serial2/1
ip address
serial restart-delay 0
!
interface Serial2/2
ip address
serial restart-delay 0
!
router eigrp 100
network
network
no auto-summary
!
router bgp 400
no synchronization
bgp log-neighbor-changes
network
neighbor
neighbor
neighbor
neighbor
neighbor
no auto-summary
!
end
r3#sh run
!
interface Loopback0
ip address
!
interface Serial2/1
ip address
serial restart-delay 0
!
interface Serial2/2
ip address 34.0.0.3 255.255.255.0
serial restart-delay 0
!
router eigrp 100
network
network
network 34.0.0.0
no auto-summary
!
router bgp 400
no synchronization
bgp log-neighbor-changes
network
neighbor
neighbor
neighbor
neighbor
neighbor
neighbor
no auto-summary
!
end
r4#sho run
!
interface Loopback0
ip address
!
interface Serial2/1
ip address 34.0.0.4 255.255.255.0
serial restart-delay 0
!
interface Serial2/2
ip address 45.0.0.4 255.255.255.0
serial restart-delay 0
!
router eigrp 100
network
network 34.0.0.0
network 45.0.0.0
no auto-summary
!
router bgp 400
no synchronization
bgp log-neighbor-changes
network
neighbor
neighbor
neighbor
neighbor
neighbor
neighbor
no auto-summary
!
end
r5#sho run
!
interface Loopback0
ip address
!
interface Serial2/2
ip address 45.0.0.5 255.255.255.0
serial restart-delay 0
!
router eigrp 100
network
network 45.0.0.0
no auto-summary
!
router bgp 400
no synchronization
bgp log-neighbor-changes
network
neighbor
neighbor
neighbor
no auto-summary
!
end
后继
