R3303-HP HSR6800 Routers Layer 3 - IP Routing Configuration Guide
253
# Configure Router C.
<RouterC> system-view
[RouterC] bgp 65009
[RouterC-bgp] router-id 3.3.3.3
[RouterC-bgp] peer 3.1.2.2 as-number 65008
[RouterC-bgp] peer 2.2.2.2 as-number 65009
[RouterC-bgp] peer 2.2.2.2 connect-interface loopback 0
[RouterC-bgp] network 9.1.1.0 24
[RouterC-bgp] quit
[RouterC] ip route-static 2.2.2.2 32 9.1.1.1
# Display the BGP routing table on Router A.
[RouterA] display bgp routing-table
Total Number of Routes: 3
BGP Local router ID is 1.1.1.1
Status codes: * - valid, ^ - VPNv4 best, > - 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.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
{ T h e o u t p u t s h o w s t w o v a l i d r o u t e s t o d e s t i n a t i o n 9.1.1. 0 / 24 : t h e r o u t e w i t h n e x t h o p 3.1.1.1 i s
marked with a greater-than sign (>), indicating it is the best route; the route with next hop 3.1.2.1
is marked with only an asterisk (*), indicating it is a valid route, but not the best.
{ By using the display ip routing-table command, you can find only one route to 9.1.1.0/24 with
next hop 3.1.1.1 and outbound interface S2/2/0.
3. Configure load balancing:
Because Router A has two routes to reach AS 65009, configuring load balancing over the two
BGP routes on Router A can improve link utilization.
# Configure Router A.
[RouterA] bgp 65008
[RouterA-bgp] balance 2
[RouterA-bgp] quit
4. Verify the configuration:
# Display the BGP routing table on Router A.
[RouterA] display bgp routing-table
Total Number of Routes: 3
BGP Local router ID is 1.1.1.1
Status codes: * - valid, ^ - VPNv4 best, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete