Route Map Commands
XSR CLI Reference Guide 6-111
Syntax of the “no” Form
Thenoformofthiscommandremovesthepatchlistnumber:
no match as-path path-list-number
Mode
Routemapconfiguration:XSR(config-route-map)#
Example
ThisexamplesetsthematchaspathinthecontextofconfiguringaroutemapandaspathACL33.
XSR(config)#route-map 1 permit 1
XSR(config-route-map)#match as-path 33
XSR(config-route-map)#set local-preference 300
XSR(config-route-map)#exit
XSR(config)#ip as-path access-list 33 permit “.* 550 .*”
Routemap1isconfiguredwiththeoptionalpermitkeywordandsequencenumber1.Ifthese
valuesareomitted,aroutemapwilldefaulttothepermitkeywordandsequencenumber10.
Afterroutemap1isdefinedviathe route-mapcommand,youenterthematch as-path
commandwhichreferencesaspathaccesslist33‐thelastconfigurationstatementintheexample.
ASpathaccesslist33endswitharegularexpression“.*550.*”,indicatingamatchwilloccurifthe
as_pathvariableinaBGPupdatemessagecontainsASnumber550.
Ifamatchoccurs,thentheset local-preferencecommandsetsthelocalpreferenceattribute
forthematchingBGPupdatesto300,overridingthedefaultvalueof100.Arouteflaggedwitha
higherlocalpreferencevalueismorepreferabletoaroutewithalowerlocalpreference.
Consequently,theroutespassingthroughAS550becomemorepreferabletootherroutesforthe
samedestinations.

match community-list

ThiscommandmatchesthecommunityattributeinaBGProutingupdatemessagewiththe
valuesofthecommunityattributeidentifiedthroughthecommunityaccesslist.
Aroutemustmatchatleastonematchstatementofa route-map command.Ifaroutedoesnot
matchanymatchstatements,therouteisnotadvertisedonoutboundroutemapsandisnot
acceptedoninboundroutemaps.
Syntax
match community-list community-list-number
Syntax of the “no” Form
Thenoformofthiscommandremovesthecommunitylistnumber:
no match community-list community-list-number
community-list-number CommunityACLtomatchbynumber,rangingfrom1to199.