ZXR105900ESeriesCongurationGuide(IPv4Routing)
S2(config-bgp)#neighbor192.168.1.1activate
S2(config-bgp)#neighbor192.168.1.1next-hop-self
S2(config-bgp)#neighbor192.168.1.10remote-as600
S2(config-bgp)#neighbor192.168.1.10activate
S2(config-bgp)#neighbor192.168.1.10next-hop-self
S2(config-bgp)#neighbor172.16.0.2route-mapLocal_Prefin
S2(config)#ipv4-access-list1
S2(config-ipv4-acl)#rule1permitany
S2(config)#route-mapLocal_Prefpermit10
S2(config-route-map)#matchipaddress1
S2(config-route-map)#setlocal-preference100
UseshowipbgproutetoviewBGProutingtableonS3.
S3#showipbgproute
Statuscodes:*valid,>best,i-internal
Origincodes:i-IGP,e-EGP,?-incomplete
NetworkNextHopMetricLocPrfRtPrfPath
*>i10.0.0.0/24192.168.1.6200200300i
*i10.0.0.0/24192.168.1.2100200300i
S3#showipbgproutedetail10.0.0.0255.255.255.0
BGProutingtableentryfor10.0.0.0/24
01:24:10receivedfrom192.168.1.2(172.16.0.1)
Origin?,nexthop192.168.1.2,localpref100,
aspath[300]
01:21:46receivedfrom192.168.1.6(172.16.1.1)
origini,nexthop192.168.1.6,localpref200,
Aspath[300]
As4path
Receivedlabelnotag
ModifytheLocal_PrefvalueofS3tospecifyanegressfortheservice.Inthisexample,
thetrafcgoingto10.0.0.0/24ofAS300areforwardedbyS1preferably.Therefore,
theroutecomingfromS1hashigherLocal_Prefvalue.
lSelectingRoutebyUsingMED
MEDisanoptionalnontransitiveattribute.MEDisusedtoaffecttheinboundservice
ow.WhentherearemanyingressinanAS,theonewiththesmallestMEDwillbe
theingressforexternalneighborrouterenteringAS.ThedefaultMEDvalueis0.
StepCommandFunction
1ZXR10(config)#route-map<map-tag>[permit|
deny][<sequence-number>]
Thisdenesaroute-map.
5-38
SJ-20150114102049-003|2015-01-15(R1.0)ZTEProprietaryandCondential