match extcommunity

Matches an extended community list in a route-map instance.

Syntax

match extcommunity number
no match extcommunity

Command Default

BGP extended community access list names are not matched.

Parameters

name

Extended community list number. Values range from 1 through 99.

Modes

Route-map configuration mode.

Usage Guidelines

Enter no match extcommunity to remove the community match statement from the configuration file.

You can configure up to five match extcommunity directives within a single stanza.

Examples

To configure a route map that matches on extended community ACL 1.

device# configure terminal
device(config)# ip extcommunity-list 1 permit 123:2
device(config)# route-map extComRmap permit 10
device(config-route-map-extComRmap/permit/10)# match extcommunity 1