Use this command to set the community when all match clauses match for this route map.
as:community | Specifies the AS number, followed by a colon (:), followed by the community number to set if all match clauses match for this route map. |
defined-community | There are predefined community values defined in RFC 1997 and RFC 3765 that are supported by the community field such as:
|
remove-all | Specifies that the action is to remove all communities from the route. |
remove-specific | Specifies that the action is to remove all matching communities from the route. |
set-specific | Specifies that the action is to append the specified community to the route. |
remove-all-and-set | Specifies that the action is to replace any existing communities in the route with the specified community |
None.
BGP route map configuration.
The default value for the set community command is no community is set.
The no set community command resets the community to no community is set when all match clauses match for this route map.
This example shows how to append the community value 100:100 to BGP routes matching prefix list named permit100:
System(su)->configure System(su-config)->route-map bgp bgprm1 permit System(su-config-route-map-bgp)->match prefix-list permit100 System(su-config-route-map-bgp)->set community 100:100 set-specific System(su-config-route-map-bgp)->
This example shows how to append the well-known NO_PEER community (RFC-3765) to BGP routes matching prefix list named permit200:
System(su)->configure System(su-config)->route-map bgp bgprm1 permit System(su-config-route-map-bgp)->match prefix-list permit200 System(su-config-route-map-bgp)->set community NO_PEER set-specific System(su-config-route-map-bgp)->