Operation Manual – IPv4 Routing
H3C S5500-EI Series Ethernet Switches
Chapter 5 BGP Configuration
5-49
[SwitchB] bgp 65009
[SwitchB-bgp] default med 100
# Display the routing table on Switch A.
[SwitchA] display bgp routing-table
Total Number of Routes: 3
BGP Local router ID is 1.1.1.1
Status codes: * - valid, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete
Network NextHop MED LocPrf PrefVal Path/Ogn
*> 8.0.0.0 0.0.0.0 0 0 i
*> 9.1.1.0/24 200.1.2.1 0 0 65009i
* 200.1.1.1 100 0 65009i
From the above information, you can find the route with the next hop 200.1.2.1 is the
best route, because its MED (0) is smaller than the MED (100) of the other route with
the next hop 200.1.1.1 (Switch B).
5.10.4 BGP Community Configuration
I. Network requirements
Switch B establishes EBGP connections with Switch A and C. Configure No_Export
community attribute on Switch A to make routes from AS 10 not advertised by AS 20 to
any other AS.
II. Network diagram
Figure 5-19
Network diagram for BGP community configuration