ZXR105900ESeriesCongurationGuide(IPv4Routing)
S4andS1establishanEBGPneighborhood,S1andS2establishanIBGPneighborhood,
S2andS5establishmulti-hopsEBGPneighborhood,seeFigure5-19.Assumethatfour
staticroutesexistonS4.
S4onlyadvertisesthenetworksegment192.16.0.0/16byaggregation,anditusesaroute
maptoforbidBGPtoadvertisenetworksegment170.16.10.0/24.S2andS5establishan
EBGPmulti-hopconnectionthroughS3.Ensurethattheaddressesusedbytworouters
(S2andS5)toestablishneighborhoodcanbepingedmutually.
Figure5-19BGPCongurationExample
CongurationCommands
RunthefollowingcommandsonS1:
S1(config)#routerbgp1
S1(config-bgp)#nosynchronization
S1(config-bgp)#neighbor172.16.1.2remote-as1
S1(config-bgp)#neighbor172.16.1.2next-hop-self
S1(config-bgp)#neighbor172.16.20.1remote-as2
RunthefollowingcommandsonS2:
S2(config)#iproute183.16.0.0255.255.0.0173.16.2.1
S2(config)#routerbgp1
S2(config-bgp)#nosynchronization
S2(config-bgp)#neighbor172.16.1.1remote-as1
S2(config-bgp)#neighbor172.16.1.1next-hop-self
S2(config-bgp)#neighbor183.16.20.2remote-as3
S2(config-bgp)#neighbor183.16.20.2ebgp-multihopttl2
5-70
SJ-20150114102049-003|2015-01-15(R1.0)ZTEProprietaryandCondential