Route Map Commands
6-112 Configuring the Border Gateway Protocol
Mode
Routemapconfiguration:XSRA(config-route-map)#
Default
Nomatchbasedoncommunitylist
Example
Thefollowingexampleconfiguresthematchcommunityvalueinthecontextofconfiguringa
routemapnamed1andcommunitylist77onXSRAandXSRB:
RouterAconfiguration:
XSRA(config)#route-map 1 permit 1
XSRA(config-route-map)#match community 77
XSRA(config-route-map)#set local-preference 500
XSRA(config-route-map)#exit
XSRA(config)#ip community-list 77 permit 300:22
RouterBconfiguration:
XSRB(config)#route-map 1 permit 1
XSRB(config-route-map)#match community 77
XSRB(config-route-map)#set local-preference 200
XSRB(config-route-map)#exit
XSRB(config)#ip community-list 77 permit 300:22
XSRAandXSRBareborderrouterswithinthesameAS.Thecommunityisidentifiedbyname
300:22.Thenumericformataa:nn,whereaaandnnrepresenttwobytenumbers,isoneofthe
allowableformatsforcommunitynames.BGPupdatesmatchingcommunityname300:22are
assignedahigherlocalpreferenceonXSRA(500)thanonXSRB(200).ThismakesXSRAthe
preferableexitpointfromthisASforthenetworksthathavebeengroupedunderthecommunity
name300:22.Usetheset communitycommandtoassigncommunitynames.

match metric

ThiscommandmatchestheMEDattributeinaBGProutingupdatemessage.Aroutemustmatch
atleastonematchstatementofaroute-map command.Ifaroutedoesnotmatchanymatch
statements,therouteisnotadvertisedonoutboundroutemapsandisnotacceptedoninbound
routemaps.
Syntax
match metric metric-value
Syntax of the “no” Form
Thenoformofthiscommandremovesthematchmetricvalue:
no match metric metric-value
metric-value MEDvaluetomatch,rangingfrom0to2147483647.