Adds a community set clause to the route map.
set community community-number [additive | none | no-export | no-advertise | local-as]
community-number
Identifies a community number. Valid values are integer from 1 to 4294967200.
no-export
All routes received carrying this value are not advertised outside a BGP confederation boundary.
no-advertise
All routes received carrying this value are not advertised to other BGP peers.
additive
Adds the community to the already existing communities
none
Removes the community attribute from route prefixes that pass the route-map.
local-as
All routes received carrying this value are not advertised outside the local autonomous system.
Use the route-map command to create a route map. Use the various match and set commands to define
the conditions for redistributing routes between protocols or instances of the same protocol.
A community is a group of destinations which share the community attribute.
A BGP speaker can use the community attribute to control which routing information it accepts or
distributes to neighbors. A BGP speaker can append the community attribute to routes it receives that
do not already have the attribute.
Factory Default: No communities attributes defined.
Command Mode: Route map configuration.
Example 1:
In the following example, the set community command specifies that routes that
pass as-path access list 3 have their community attribute set to 108:
route-map community108 permit 10
match as-path 3
set community 108
!
ip as-path access-list 3 permit 1.1.1.1
Example 2:
In the following example, the set community command specifies that routes that
pass as-path access list 3 have community set to no-export and are not advertised to any EBGP peers.
route-map no-export permit 10
match as-path 3
set community no-export
ip as-path access-list 3 permit 2.2.2.2
Here is what is needed in order to advertise these route-map’s within bgp with
set community to take effect.
router bgp 100
neighbor 1.1.1.1 send-community
neighbor 1.1.1.1 route-map community108 out
!
!
router bgp 100
neighbor 2.2.2.2 send-community
neighbor 2.2.2.2 route-map no-export out
Comments
(There are currently no comments for this post.)