ip community-list
Syntax
ip community-list standard <COMM-LIST-NAME> <DESCRIPTION> [seq <SEQ>] {permit | deny} <COMMUNITY-NUMBER>
no ip community-list standard <COMM-LIST-NAME> <DESCRIPTION> [seq <SEQ>] {permit | deny} <COMMUNITY-NUMBER>
Description
Configures a community list to match a specific community number attribute. Community-list is a named list of regular expressions. They are used to match the community number attributes in the routes for inclusion in, or exclusion from route policies. The sequence number is optional and is autogenerated whenever it is not explicitly mentioned. All community-list rules with the same name are grouped.
The
no
form of this command removes the community list configuration.
Command context
config
Parameters
<COMM-LIST-NAME>
Specifies the name of the community list that matches community number of a route.
<DESCRIPTION>
Specifies the description of the community list. Maximum character limit is 80.
seq <SEQ>
Specifies the order of reference of the regular expression rules.
{permit | deny}
Specifies whether the route is available for further processing when there is a match.
<COMMUNITY-NUMBER>
Specifies the community number. The community number must be in AA: NN format or from the list of well-known community.
Authority
Administrators
Examples
Configuring a community list with sequence numbering:
switch(config)# ip community-list standard CommLst seq 5 permit 101:41
Configuring a community list without sequence numbering:
switch(config)# ip community-list standard CommLst no-export permit