ZXR105900ESeriesCongurationGuide(IPv4Routing)
Figure5-11RestricttheNumberofRouteAdvertisementsReceivedbyNeighbor
CongurationonS1:
S1(config)#routerbgp100
S1(config-bgp)#neighbor10.1.1.1remote-as200
S1(config-bgp)#neighbor10.1.1.1maximum-prefix10drop-routes
CongurationonS2:
S2(config)#routerbgp200
S2(config-bgp)#neighbor10.1.1.2remote-as100
S2(config-bgp)#neighbor10.1.1.2maximum-prefix20restart1
Withoutthecongurationoftimeforwaitingreconnection(useparameterwarning-onl
y),whenS1advertisesmorethan20routestoS2,S2willdisplaythealarminformation
only.
CongurationonS2:
S2(config)#routerbgp200
S2(config-bgp)#neighbor10.1.1.2remote-as100
S2(config-bgp)#neighbor10.1.1.2maximum-prefix20warning-only
lFilteringRoutesbyUsingAS_PATH
AS-PATHisawell-knownmandatoryattribute.Theattributeisapathled,whichis
composedofaseriesofASnumberspassingbyaroutepointingtoonedestination.
WhentheoriginASinitiatesaroutetootherexternalBGPpeers,itwilladditsAS
numberintotheroute.Subsequently,eachroutereceiverwilladditsASnumberinto
routeandplaceASnumberontheheadofASsequencewhensendingtherouteto
otherBGPpeers.
BGPadoptsAS-PATHasthefactorofitsrouteupdatetorealizeno-looptopology
ofInternet.EachroutecontainsalistwithallpassedASnumbers.Whentheroute
isadvertisedtoitsoriginAS,ASexaminesitsASnumberhasbeenexistedinAS
sequence,anditwillnotacceptthisroute.Meanwhile,AS-PATHwillbeusedfor
decidingtheoptimumroute.Whenmultipleroutes(theirattributesexceptforAS-PATH
arethesame)tothesamedestinationareavailable,BGPwillselectaroutewith
theshortestpathastheoptimumrouteaccordingtoAS-PATH.Therefore,increasing
AS-PATHcanaffectBGProuteselection.
WhenallroutesofoneormultipleASrequireltering,theltermethodbasedon
AS-PATHisusuallyadopted.
5-32
SJ-20150114102049-003|2015-01-15(R1.0)ZTEProprietaryandCondential