![Cisco Nexus 3548 series Command Reference Manual Download Page 249](http://html.mh-extra.com/html/cisco/nexus-3548-series/nexus-3548-series_command-reference-manual_2609162249.webp)
229
Cisco Nexus 3548 Switch NX-OS Unicast Routing Command Reference
OL-27852-01
Chapter Unicast Routing Commands
match extcommunity
match extcommunity
To match a Border Gateway Protocol (BGP) extended community in a route map, use the
match
extcommunity
command. To remove the match from the route map, use the
no
form of this command.
match extcommunity
name
[...
name
] [
exact-match
]
no match extcommunity
name
[...
name
] [
exact-match
]
Syntax Description
]
Command Default
No community list is matched by the route map.
Command Modes
Route-map configuration mode
Command History
Usage Guidelines
A route map can have several parts. Any route that does not match at least one
match
command in the
route map is ignored; that is, the route is not advertised for outbound route maps and is not accepted for
inbound route maps. If you want to modify some particular data, you must configure a second route-map
section with an explicit match specified.
Matching that is based on the extended community list number is one of the types of
match
commands
applicable to BGP.
This command requires the LAN Enterprise Services license.
Examples
This example shows how to match two BGP extended community lists:
switch#
configure terminal
switch(config)#
route-map test2
switch(config-route-map)#
match extcommunity bgpLocal bgpRemote
switch(config-route-map)#
This example shows that the routes that match the extended community list bgpLocal change from
nontransitive to transitive:
switch#
configure terminal
switch(config)#
ip extcommunity-list standard bgpLocal permit generic nontransitive 1.9
switch(config)#
route-map deletCommunity
switch(config-route-map)#
match extcommunity bgpLocal exact-match
name
One or more extended community list names. The name can be any
alphanumeric string up to 63 characters. You can configure a maximum
of 32 community lists.
exact-match
(Optional) Indicates that an exact match is required. All of the
communities and only those extended communities specified must be
present.
Release
Modification
5.0(3)A1(1)
This command was introduced.