To modify the communities attribute of matching routes, use the set community command in Route Map Configuration mode. The set community command can be used to assign communities to routes originated through BGP‘s network and redistribute commands, and to set communities on routes received from a specific neighbor or advertised to a specific neighbor. It can also be used to remove all communities from a route.
To remove a subset of the communities on a route, use the command set comm-list delete.
Format | set community {community-number [additive] | none} |
Mode | Route Map Configuration |
Parameter | Description |
---|---|
community-number | One to sixteen community numbers, either as a 32-bit integers or in AA:NN format. Communities are separated by spaces. The well-known communities no advertise and no-export are also accepted. |
additive | (Optional) Communities are added to those already attached to the route. |
none | (Optional) Removes all communities from matching routes. |