Chapter5BGPConguration
S2(config)#exit
S2(config)#routerbgp65001
S2(config-bgp)#neighbor1.1.1.1remote-as65000
S2(config-bgp)#redistributeospf-extmetric5
S2(config-bgp)#redistributeconnected
S2(config)#exit
lConguringRouteAggregation
Topreventrouteblackhole,aggregatetherouteswiththesamemaskonrouterin
routeaggregationconguration.
BGPprotocolaggregatesthelearntroutestoarouteforadvertisement.Thus,route
entriescanbereducedalotinroutingtable.
Tocongurerouteaggregation,performthefollowingsteps.
StepCommandFunction
1ZXR10(config)#routerbgp<as-number>ThisstartsBGPprocessand
speciestheASnumberof
router.
2ZXR10(config-bgp)#aggregate-address<ip-address><n
et-mask>[count<count>][as-set][summary-only][strict][su
bnet]<ip-address><net-mask>
Thiscreatesanaggregated
policyinBGProutingtable.
Descriptionsoftheparametersusedbycommandsareshownbelow.
ParameterDescription
<ip-address>Theaggregationnetworktobeaggregated,indotted
decimalnotation
<net-mask>Theaggregationmasktobegenerated,indotteddecimal
notation
<count>Thenumberofsub-networks,therangeis0-255,andthe
defaultvalueis1.
as-setSetpathinformation
summary-onlyFilterthespecialroutesfromupdates
strictAccordingtoRFC1771,onlytherouteswhichtheattributes
ofMEDandNEXT_HOParethesamerespecivetilycan
beaggregated.Ifthecommandisusedwithoutstrict,do
notconsiderMEDandNEXT_HOPattributes.
CongurationExample
1.RouteAggregationConguration
5-21
SJ-20150114102049-003|2015-01-15(R1.0)ZTEProprietaryandCondential