Chapter5BGPConguration
S4(config-bgp)#exit
RunthefollowingcommandsonS4:
S4(config)#routerbgp2
S4(config-bgp)#redistributestatic
S4(config-bgp)#neighbor172.16.20.2remote-as1
S4(config-bgp)#aggregate-address192.16.0.0255.255.0.0count0
as-setsummary-only
S4(config-bgp)#neighbor172.16.20.2route-maptorouter1out
S4(config-bgp)#exit
S4(config)#ipv4-access-list1
S4(config-ipv4-acl)#rule1deny170.16.10.00.0.0.255
S4(config-ipv4-acl)#rule2permitany
S4(config-ipv4-acl)#exit
S4(config)#route-maptorouter1permit10
S4(config-route-map)#matchipaddress1
S4(config-route-map)#exit
RunthefollowingcommandsonS5:
S5(config)#iproute173.16.0.0255.255.0.0183.16.20.1
S5(config)#routerbgp3
S5(config-bgp)#neighbor173.16.20.2remote-as1
S5(config-bgp)#neighbor173.16.20.2ebgp-multihopttl2
CongurationVerication
RuntheshowipbgpsummarycommandtochecktheneighborhoodonS4.
S4(config)#showipbgpsummary
NeighborVerAsMsgRcvdMsgSendUp/Down(s)State/PfxRcd
172.16.20.2414614000:22:350
RuntheshowipbgproutecommandtochecktheBGProutingtableonS4.
S4(config)#showipbgproute
Statuscodes:*-valid,>-best,i-internal,s-stale
Origincodes:i-IGP,e-EGP,?-incomplete
NetworkNextHopMetricLocPrfRtPrfPath
*>192.16.0.0/160.0.0.0254i
*>192.16.20.0/2410.9.1.391?
*>192.16.21.0/2410.9.1.391?
*>192.16.22.0/2410.9.1.391?
*>170.16.10.0/2410.9.1.391?
RuntheshowipbgpsummarycommandtochecktheneighborhoodonS1.
S1(config)#showipbgpsummary
NeighborVerAsMsgRcvdMsgSendUp/Down(s)State/PfxRcd
172.16.20.1424614000:22:351
5-71
SJ-20150114102049-003|2015-01-15(R1.0)ZTEProprietaryandCondential