Bgp community configuration, Network requirements, Configuration procedure – H3C Technologies H3C S12500 Series Switches User Manual
Page 269

253
Network NextHop MED LocPrf PrefVal Path/Ogn
*> 8.1.1.0/24 0.0.0.0 0 0 i
*> 9.1.1.0/24 3.1.1.1 0 0 65009i
*> 3.1.2.1 0 0 65009i
{
The route 9.1.1.0/24 has two next hops, 3.1.1.1 and 3.1.2.1, both of which are marked with a
greater-than sign (>), indicating they are the best routes.
{
By using the display ip routing-table command, you can find two routes to 9.1.1.0/24: one with
next hop 3.1.1.1 and output interface VLAN-interface 200, the other with next hop 3.1.2.1 and
output interface VLAN-interface 300.
BGP community configuration
Network requirements
As shown in
, EBGP runs between Switch B and Switch A, and between Switch B and Switch
C. Configure No_Export community attribute on Switch A to make routes from AS 10 not advertised by
AS 20 to any other AS.
Figure 90 Network diagram
Configuration procedure
1.
Configure IP addresses for interfaces. (Details not shown.)
2.
Configure EBGP:
# Configure Switch A.
[SwitchA] bgp 10
[SwitchA-bgp] router-id 1.1.1.1
[SwitchA-bgp] peer 200.1.2.2 as-number 20
[SwitchA-bgp] network 9.1.1.0 255.255.255.0
[SwitchA-bgp] quit
# Configure Switch B.
[SwitchB] bgp 20
[SwitchB-bgp] router-id 2.2.2.2
[SwitchB-bgp] peer 200.1.2.1 as-number 10