User's Manual

Table Of Contents
472
Users Manual of CS-6306R
RTE configuration:
interface vlan110
ip address 5.0.0.2 255.0.0.0
!
router bgp 65020
bgp confederation identifier 200
bgp confederation peers 65010
neighbor 5.0.0.1 remote-as 65010 /*RTA EBGP*/
45.4.4.9 Example for route map using BGP community attribute
In the following example, the command route map set-community is used to update the outgoing routes of
neighbor 171.69.232.50. The special community attribute value no-export can be set through the route of the
access list aaa. Other routes perform normal broadcast. The special community attribute value automatically
prevents the BGP session sponsor in AS200 from broadcasting the route to the outside of the autonomous
system.
router bgp 100
neighbor 171.69.232.50 remote-as 200
neighbor 171.69.232.50 send-community
neighbor 171.69.232.50 route-map set-community out
!
route-map set-community 10 permit
match ip address aaa
set community no-export
!
route-map set-community 20 permit
In the following example, the command route map set-community is used to update the outgoing routes of
neighbor 171.69.232. 90. Set the current value to the community attribute value 200. Other routes performs
normal broadcast.
route-map bgp 200
neighbor 171.69.232.90 remote-as 100
neighbor 171.69.232.90 send-community
neighbor 171.69.232.90 route-map set-community out
!
route-map set-community 10 permit
match as-path test1
set community-additive 200 200
!
route-map set-community 20 permit
match as-path test2
!