ZXR105900ESeriesCongurationGuide(IPv4Routing)
Whenlteringroutethroughroutemap,thematchandsetcommandsareusuallyused
togetherwithroutemap.Thematchcommanddenesthematchingstandard.The
setcommanddenestheactionsatisfyingmatchingstandard.
Usetheneighbor182.17.20.1send-medcommandtosendMEDattributewith
advertisingroutestoneighbor182.17.20.1.
ToviewBGProutingtableonS2,usetheshowipbgproutecommand.
S2#showipbgproute
Statuscodes:*-valid,>-best,i-internal,s-stale
Origincodes:i-IGP,e-EGP,?-incomplete
NetworkNextHopMetricLocPrfRtPrfPath
*>172.3.0.0/16182.17.20.2520100i
S2#showipbgproutedetail172.3.0.0255.255.0.0
BGProutingtableentryfor172.3.0.0/16
07:18:49receivedfrom182.17.20.2(172.3.0.1)
Origin?,nexthop182.17.20.2,metric5,
Aspath[100]
As4path
Receivedlabelnotag
TheaboveresultshowsthatS2learnstheroutefrom172.3.0.0/16only,anditsMED
valueis5.
lFilteringRoutesbyUsingNLRI
Torestrictaroutertoreceiveoradvertiseroutinginformation,ltertherouteupdating
packetsfromorsendtoaspecialdevice.Thelterincludesaupdatelistsentto
neighbor,oralistcomingfromneighbor.
TocongureNLRItolterroute,performthefollowingsteps.
StepCommandFunction
1ZXR10(config)#route-map<map-tag>[permit|
deny][<sequence-number>]
Thisdenesaroute-map.
ZXR10(config)#ipv4-access-list{name<acl-name>}ThisentersstandardACL
congurationmodeand
speciesACLsequence
number,nameandalias.
2
ZXR10(config-ipv4-acl)#rule<rule-no>{permit|
deny}{<source>[<source-wildcard>]|any}
Thisdenestheruleof
standardACL.
5-28
SJ-20150114102049-003|2015-01-15(R1.0)ZTEProprietaryandCondential