Defining a community ACL
A BGP community ACL can be configured, and BGP community attributes set in a route
map instance.
- Enter the
configure terminalcommand to access global configuration mode. - Enter the
ip community-list extendedcommand using the permit keyword to configure a BGP community ACL. - Enter the
route-mapname command to create and define a route map and enter route map configuration mode. - Enter the
match communitycommand and specify a community list name. - Enter the
set communitycommand to set the BGP community attributes. - Enter the
exitcommand to return to global configuration mode. - Enter the
route-mapname command to define a route map and enter route map configuration mode. - Enter the
set communitycommand to set the BGP community attributes.
The following example configures a BGP community ACL and sets the BGP community attributes in a route map instance.
device# configure terminal device(config)# ip community-list extended 1 permit ^[1-2]23 device(config)# route-map ComRmap permit 10 device(config-route-map-ComRmap)# match community 1 device(config-route-map-ComRmap)# set community 323:1 additive device(config-route-map-ComRmap)# exit device(config)# route-map sendComRmap permit 10 device(config-route-map-sendComRmap)# set community 3:3