Creating an IP Community List for BGP

You can use the ip community-list command to create a community list for BGP and control access to it. The list name can be up to 32 characters long.

A route can belong to any number of communities, so a community list can have many entries comprising many communities. You can specify one or more community values when you create a community list. A clause in a route map that includes a list that has more than one value matches only a route that has all the values; that is, the multiple values are logically joined by an AND operator. You can specify community values with a number or a regular expression.

To create a community list for BGP and assign the created community list to a route-map:

Use the no ip community-list command to remove the specified community list, including all list entries.

Related Documentation