Chapter5BGPConguration
*>192.168.12.0/24182.17.20.220300100i
*>192.168.13..0/24182.17.20.220300100i
TheaboveresultshowsS3locatingatAS200doesnotlearntheroutepointingto
192.18.10.0/24.
lRestrictingtheNumberofRouteAdvertisementsReceivedbyNeighbor
Torestrictthenumberofroutereceivedbyaneighbor,performthefollowingsteps.
StepCommandFunction
1ZXR10(config)#routerbgp<as-number>ThisstartsBGPprocessand
speciestheASnumberof
router.
2ZXR10(config-bgp)#neighbor<ip-address>
maximum-prefix<value>[<threshold-value>|
drop-routes|restart<time>|warning-only]
Thisconguresthenumberof
routereceivedbyaneighbor.
Descriptionsoftheparametersusedbystep2areshownbelow.
ParameterDescription
<ip-address>NeighborIPaddress,indotteddecimalnotation
<value>Themaximumnumberofroutesreceivedbyaneighbor,
therangeis1-4294967295,andthedefaultvalueis
4294967295
<threshold-value>Generateanalarmwhenthenumberofthereceived
routesreachestothethresholdvalue,theunitis%.
drop-routesDroptherouteswhenthenumberofthereceivedroutes
exceedsthethresholdvalue
<time>Theconnectionwillbedisconnectedwhenthenumberof
thereceivedroutesexceedsthethresholdvalue,andset
upneighborhoodafterwaitingaspeciedtime.Theunitis
minute,therangeis1-30000
warning-onlyPrintthealarmwhenthenumberofthereceivedroutes
exceedsthethresholdvalue
CongurationExample
AsshowninFigure5-11,S1canreceive10routesadvertisedbyS2atmost,anditwill
droproutesifmorethan10routesarereceived.S2canreceive20routesadvertised
byS1,andneighborhoodwillbedisconnectedandsetupagainafter10minutesif
morethan20routesadvertisedbyS1.
5-31
SJ-20150114102049-003|2015-01-15(R1.0)ZTEProprietaryandCondential