Chapter5BGPConguration
Forexample,usenetwork18.0.0.0255.0.0.0inBGP.Thenetworksegments18.0.0.0/8,
18.1.0.0/16and18.2.0.0/24areaddedtoBGProutingtable.Ifthesenetwork
segmentsandsubnetworksdonotexistinroutingtable,thennorouteisinjectedto
BGProutingtable.InordertocooperatewithBGProuteadvertisement,itisrequired
thatconguresomestaticroutespointingtoloopbackaddressonrouter.
ItisnotablethatnotallroutesinjectedtoBGProutingtablecanbeadvertised.It
relatestoBGProutelteringorroutingpolicy.
InBGP ,usenetworkcommandtoadvertiseknownnetworktorouter.Theknown
networkcanbelearnedbydirect-connectedroute,staticrouteanddynamicroute.
TheusageofnetworkinBGPisdifferenttothatofinIGP .
StepCommandFunction
1ZXR10(config)#routerbgp<as-number>ThisstartsBGPprocessand
speciestheASnumberof
router.
2ZXR10(config-bgp)#network<ip-address><net-mask>[r
oute-map<map-tag>]
Thisoutputstheroutestobe
advertisedtoBGProuting
table.
Theroutesarelearntfrom
thedirect-connectedroute,
dynamicroutingselectionand
staticroute.
CongurationExample
AsshowninFigure5-6,S2runsOSPFasIGPprotocol.S2requiresthatadvertise
thenetworksegment18.0.0.0/8advertisedbyOSPFtoBGP .
Figure5-6UsenetworkCommandtoAdvertiseBGPRoute
5-17
SJ-20150114102049-003|2015-01-15(R1.0)ZTEProprietaryandCondential