Chapter5BGPConguration
ZXR10_AS400(config-bgp)#neighbor192.168.1.14route-mapcommunityout
ZXR10_AS400(config-bgp)#neighbor192.168.1.14send-community
ZXR10_AS400(config-bgp)#exit
ZXR10_AS400(config)#ipv4-access-list1
ZXR10_AS400(config-ipv4-acl)#rule1permitany
ZXR10_AS400(config-ipv4-acl)#exit
ZXR10_AS400(config)#route-mapCommunitypermit10
ZXR10_AS400(config-route-map)#matchipaddress1
ZXR10_AS400(config-route-map)#setcommunity400:1
ZXR10_AS400(config-route-map)#exit
UseshowipbgproutetoviewBGProutingtableonAS600.
ZXR10_AS600(config)#showipbgproute
Statuscodes:*valid,>best,i-internal
Origincodes:i-IGP,e-EGP,?-incomplete
NetworkNextHopMetricLocPrfRtPrfPath
*>10.0.1.0/24192.168.1.1320400100i
*>10.0.2.0/24192.168.1.1320400i
*>10.0.3.0/24192.168.1.1720300200i
*10.0.3.0/24192.168.1.1320400100200i
*>10.0.4.0/24192.168.1.1320400100200300i
ZXR10_AS600(config)#showipbgproutedetail10.0.3.0255.255.255.0
BGProutingtableentryfor10.0.3.0/24
00:28:52receivedfrom192.168.1.17(10.0.4.1)
origin?,nexthop192.168.1.17,
community300:1
aspath[300200]
00:28:54receivedfrom192.168.1.13(10.0.2.1)
origini,nexthop192.168.1.13,
community400:1
Aspath[400100200]
As4path
Receivedlabelnotag
TheBGProutesreceivedbyAS600devicearemarked,theroutescomingfrom
AS300aremarkedas300:1,andtheroutescomingfromAS400aremarkedas
400:1.
2.FilterRoutesbyUsingCommunity
Congurationrequirements:AccordingtoCommunityattributeofAS600,select
routebyconguringLocal_Pref.
AS600router(ThefollowingcontentomitscongurationofportandIGP)
conguration:
ZXR10_AS600(config)#routerbgp600
5-45
SJ-20150114102049-003|2015-01-15(R1.0)ZTEProprietaryandCondential