Setting a BGP Community Attribute to a List of Community Numbers
You can use the set community command to set the community attribute in BGP updates. You can specify a community list number in the range 1–4,294,967,295 or in the new community format of AA:NN, or you can specify one of the following well-known communities:
- local-as—Prevents advertisement outside the local AS
- no-advertise—Prevents advertisement to any peer
- no-export—Prevents advertisement beyond the BGP confederation boundary
Alternatively, you can use the list keyword to specify the name of a community list that you previously created with the ip community-list command. You can use this command with inbound, outbound, and redistribution route maps.
You can use the none keyword to remove the community attribute from a route.
To set the community attribute in BGP updates:
- Issue the set community command in Route Map Configuration mode.
Use the no version to remove the set clause from a route map.