R3303-HP 6600/HSR6600 Routers Layer 3 - IP Routing Configuration Guide

252
BGP load balancing configuration
Network requirements
As shown in Figure 75, all routers run BGP, and Router A resides in AS 65008, and Router B and Router
C reside in AS 65009. EBGP runs between Router A and Router B, and between Router A and Router C.
IBGP runs between Router B and Router C. Configure two routes on Router A for load balancing.
Figure 75 Network diagram
Configuration procedure
1. Configure IP addresses for interfaces. (Details not shown.)
2. Configure BGP connections:
{ On Router A, establish EBGP connections with Router B and Router C, respectively; configure
B G P t o a d ve r t i s e n e t w o r k 8 .1.1.0 / 24 t o R o u t e r B and Router C, so Router B and Router C can
access the internal network connected to Router A.
{ On Router B, establish an EBGP connection with Router A and an IBGP connection with Router
C; configure BGP to advertise network 9.1.1.0/24 to Router A, so Router A can access the
intranet through Router B; configure a static route to interface loopback 0 on Router C (or use a
routing protocol like OSPF) to establish the IBGP connection.
{ On Router C, establish an EBGP connection with Router A and an IBGP connection with Router
B; configure BGP to advertise network 9.1.1.0/24 to Router A, so Router A can access the
internal network through Router C; configure a static route to interface loopback 0 on Router B
(or use another protocol like OSPF) to establish the IBGP connection.
# Configure Router A.
<RouterA> system-view
[RouterA] bgp 65008
[RouterA-bgp] router-id 1.1.1.1
[RouterA-bgp] peer 3.1.1.1 as-number 65009
[RouterA-bgp] peer 3.1.2.1 as-number 65009
[RouterA-bgp] network 8.1.1.1 24
[RouterA-bgp] quit
# Configure Router B.
<RouterB> system-view
[RouterB] bgp 65009