Chapter5BGPConguration
Theaboveexampleshowsthatthenetworksegment18.0.0.0/8existsinBGProuting
tablealready.Thenexthopaddressistheinterface192.168.2.1ofS2.
lRedistributingRoutesbyredistributeCommand
IGPneedstobeconguredonrouteralready.
FulldynamicinjectionhastobechosentoadvertiseBGProuteswhentherearelots
ofrouteentriesandaggregationisnotconvenient.
Whentherearelotsofrouteentriesandaggregationisnotconvenient,useredistrib
utecommandtoredistributeoneormoreIGPprotocol(RIP ,OSPFandIS-IS)routes
toBGP .
MakesurethatIGPdoesnotredistributetherouteslearntbyBGPtoBGPagain.Use
filtercommandtoavoidloopbackifitisnecessary.
ToredistributeroutesonZXR105900E,performthefollowingsteps.
StepCommandFunction
1ZXR10(config)#routerbgp<as-number>ThisentersBGProute
congurationmodeand
speciesASnumberof
router.
2ZXR10(config-bgp)#redistributeospf-int<id>[metric|
route-map<map-tag>]
Thisredistributestheroutes
learnedbyotherrouting
protocoltoBGProutingtable.
Descriptionsoftheparametersusedbycommandsareshownbelow.
ParameterDescription
<protocol>Thenameofotherprotocols,connected,staticandrip,
ospf-intandospf-ext,isis-1,isis-2andisis-1-2
<metric-value>Metricvalueoftheredistributedroutes.Usedefaultvalue
ifitisnotspecied.Therangeis0-4294967295.
<map-tag>Thenameofroutemappingoftheredistributedroute,the
lengthis1-31characters.
CongurationExample
AsshowninFigure5-7,S2runsOSPFasIGPprotocol.Itisrequiredthatredistribute
allOSPFroutinginformationofS2toBGP .
5-19
SJ-20150114102049-003|2015-01-15(R1.0)ZTEProprietaryandCondential