BGP Set Commands
XSR CLI Reference Guide 6-115
Syntax of the “no” Form
ThenoformofthiscommandremovestheASpathvalue:
no set as-path
Mode
Routemapconfiguration:XSR(config-route-map)#
Example
Thefollowingexampleconfigurestheaspathvalueinthecontextofconfiguringaroutemapand
thematchcommand.Thematch as-pathcommandreferencesASpathaccesslist37which
identifiestheBGProutingupdatestowhichtheset as-pathcommandwillapply.
Inthiscase,matchclauseʺ.*ʺwillmatchallroutes.Relevantupdateswillhaveoneinstanceofthe
ASnumber100prependedintotheirASpathvariable.AssumingthatalloftheBGProute
selectioncriteriaremainthesame,therouteswiththefewestASnumbersintheASpathvariable
willbechosenasthebestroutestotheidentifieddestinations.IfmorethanoneASpathistobe
prepended,thenthestringshouldbesurroundedbyquotes.
XSR(config)#ip as-path access-list 37 permit ".*"
XSR(config)#route-map 1 permit 1
XSR(config-route-map)#match as-path 37
XSR(config-route-map)#set as-path prepend 100
XSR(config-route-map)#set as-path prepend "100 100"

set community

ThiscommandspecifiesthecommunityattributeinaBGProutingupdatemessage.Besurethata
matchclausehasbeenspecified.
Acommunityisagroupofdestinationswhichsharethecommunityattribute.ABGPspeakercan
usethecommunityattributetocontrolwhichroutingdataitacceptsordistributestoneighbors.A
BGPspeakercanappendthecommunityattributetoroutesitreceivesthatdonotalreadyhavethe
attribute.
Syntax
set community {community-number | aa:nn | additive | internet | local-AS | no-
advertise | no-export | none}
as-path-string TheASpathlistwhichwillbeprependedtotheASpathattributeofthe
routethatmatchestheroutemap.Theaspathlistrepresentsoneormore
validASnumbersthatarespecifiedasanintegerbetween1and65535.
community-number Thecommunitynumber.Range:1to4,294,967,295.
aa:nn Communitynumberintheformataa:nnwhereaa identifiestheASandnn
thecommunitywithintheAS.Range:1to65,535.
additive Addsthecommunitytoexistingcommunities.
internet Established Internetcommunity.