match community-list


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

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


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




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


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.


Administrators or local user group members with execution rights for this command.


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