H3C S7500E Series Ethernet Switches Operation Manual

Operation Manual – IPv4 Routing
H3C S7500E Series Ethernet Switches Chapter 5 BGP Configuration
5-48
*> 8.0.0.0 0.0.0.0 0 0 i
*> 9.1.1.0/24 200.1.1.1 0 0 65009i
*> 200.1.2.1 0 0 65009i
The route 9.1.1.0/24 has two next hops 200.1.1.1 and 200.1.2.1, and both are the
optimal.
4) Configure MED
# Configure the default MED of Switch B.
[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.9.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.