Users Guide

Layer 3 Routing Commands 1285
match extcommunity
Use the match extcommunity command to match BGP extended community
list attributes. Use the no form of this command to remove the match
extcommunity from the configuration and BGP extended community list
attribute entry.
NOTE: This command is effective only if BGP is running on the router.
Syntax
match extcommunity standard-list
no match extcommunity standard-list
standard-list
—A standard list identifier that identifies one or more permit
or deny groups of extended communities. The range if from 0–100.
Default Configuration
BGP extended community list attributes are not matched.
Command Mode
Route Map Configuration mode
User Guidelines
The match extcommunity command is used to configure match clauses that
use extended community attributes in route maps. All the standard rules of
match and set clauses apply to the configuration of extended community
attributes.
Command History
Introduced in version 6.3.0.1 firmware.
Example
The following example shows that the routes that match extended
community list 10 will set the additional route target attribute to 10:10.
(R1)(config)# ip extcommunity-list 10 permit rt 1:1
(R1)(config)# route-map SEND_OUT permit 10
(R1)(config-route-map)# match extcommunity 10
(R1)(config-route-map)# set extcommunity rt 10:10 additive