match community-list

Syntax

match community-list <COMMUNITY-LIST-NAME> [exact-match]

no match community-list <COMMUNITY-LIST-NAME> [exact-match]

Description

Matches the community number attribute of the route with one, or more regular expressions in the community-list.

The no form of this command restores the default behavior of not matching the community number attribute of the route.

Command context

config-route-map

Parameters

<COMMUNITY-LIST-NAME>

Specifies the name of the community-list to match the community number attribute of the route.

[exact-match]

Indicates that the community number attribute must match exactly with the expressions in the community-list. However, the order of the communities in the community-list is of no significance.

Authority

Administrators

Example

Configuring a match clause in the route map to match the community list:

switch(config)# ip community-list standard CommLst 101:41 permit 12:201
switch(config)# route-map GlobalMap permit seq 11
switch(config-route-map-GlobalMap-11)# match community-list CommLst