2 examples 2: configure bgp aggregation, 3 examples 3: configure bgp community attributes – PLANET XGS3-24040 User Manual
Page 323

Chapter 39 BGP
39-17
The configurations of SwitchD are as following:
SwitchD(config)#router bgp 200
SwitchD(config-router-bgp)#network 13.0.0.0
SwitchD(config-router-bgp)#neighbor 12.1.1.2 remote-as 200
SwitchD(config-router-bgp)#neighbor 13.1.1.3 remote-as 200
SwitchD(config-router-bgp)#exit
Presently, the connection between SwitchB and SwitchA is EBGP, and other connections with SwitchC and
SwitchD are IBGP. SwitchB and SwitchD may have BGP connection without physical connection. But there is
a precondition that these two switches must have reachable route to each other. This route can be attained
through static route or IGP.
39.3.2 Examples 2: configure BGP aggregation
In this sample, configure route aggregation. Firstly, enable command redistribute to redistribute static route to
BGP route table:
SwitchB(config)#ip route 193.0.0.0/24 11.1.1
SwitchB(config)#router bgp 100
SwitchB(config-router-bgp)#redistribute static
When there is at least one route affiliated to the specified range, the following configuration will create an
aggregation route in the BGP route table. The aggregation route will be regarded as the AS from itself. More
detailed route information about 193.0.0.0 will be announced.
SwitchB(config#router bgp 100
SwitchB(config-router-bgp)#aggregate 193.0.0.0/16
At the same time, the aggregation command above can be modified as following, then this switch only
announce aggregation route 193.0.0.0 and forbid to announce more specified route to all the neighbors.
SwitchB(config-router-bgp)#aggregate 193.0.0.0/16 summary-only
39.3.3 Examples 3: configure BGP community attributes
In the following sample, “route map set-community” is used for the outgoing update to neighbor 16.1.1.6. By
accessing to route in table 1 to configure special community value to “1111”, other can be announced
normally.