BGP Configuration Commands
XSR CLI Reference Guide 6-107
Syntax of the “no” Form
Thenoformofthiscommandremovesthecommmunitylistnumber:
no community-list community-list-number
Mode
Globalconfiguration:XSR(config)#
Example
ThisexampleconfiguresIPcommunitylist88.Thecommunitynumbersspecifiedinthelistare
2000,3000,and4000inthefirst,second,andthirdinstanceofthecommand,respectively.Thislist
canbereferencedwithinthematch community commandthatispartofaroutemapcontrolling
BGProutingbasedonthecommunityattribute.Thematchwillseekupdatesthatinclude
communitynumbers2000,3000,or4000.
XSR(config)#ip community-list 88 permit 2000
XSR(config)#ip community-list 88 permit 3000
XSR(config)#ip community-list 88 permit 4000
network
ThiscommandspecifiesthelistofnetworksfortheBGProutingprocess.Networkscanbe
learnedfromconnectedroutesorviadynamicrouting.TheBGPprocessmustbenotifiedaboutthe
networksitwillroutewhichconoccursviamanualinjectionofroutesintotheBGPprocesswith
thenetworkcommand.RoutesoriginatedbyBGPviathenetworkcommandhavetheirorigin
codesettoIGP.
NetworknumbersthatareinjectedintoBGPbymeansofthenetworkcommandmustalready
existintheIProutingtableontherouterasstatic,directlyconnected,ordynamicallyderived
routes.Ifnetworknumbersdonotalreadyexist,theywillnotbeplacedintotheBGPtable,even
thoughtheywillappearintheroutersconfiguration.
Syntax
network network-number [mask network-mask]
community-number Communitynumberasitwasdefinedforthisrouterviatheset
communitycommand.Validvaluesare:
Range:1to4,294,967,200.
aa:nn:ASnumber,Communitynumber.
internet:theInternetcommunity.
noexport:thecommunityroutewillnotbeadvertisedtoanEBGPpeer.
noadvertise:theroutewillnotbeadvertisedtoanypeer.
network-number NetworkthatBGPadvertises.
mask Usedwhenanetworkmaskisexplicitlyspecifiedforthenetwork
number.Withoutthenetworkmaskbeingspecified,adefaultclassful
maskisassumed.