F3215-HP Load Balancing Module Network Management Configuration Guide-6PW101
292
{ On Router B, establish an EBGP connection with LB and an IBGP connection with Router A;
configure BGP to advertise network 9.1.1.0/24 to LB, so LB can access the intranet through
Router B; configure a static route to interface loopback 0 on Router A (or use a routing protocol
like OSPF) to establish the IBGP connection.
{ On Router A, establish an EBGP connection with LB and an IBGP connection with Router B;
configure BGP to advertise network 9.1.1.0/24 to LB, so LB can access the internal network
through Router A; configure a static route to interface loopback 0 on Router B (or use another
protocol like OSPF) to establish the IBGP connection.
# Configure LB.
<LB> system-view
[LB] bgp 65008
[LB-bgp] router-id 1.1.1.1
[LB-bgp] peer 3.1.1.1 as-number 65009
[LB-bgp] peer 3.1.2.1 as-number 65009
[LB-bgp] network 8.1.1.1 24
[LB-bgp] quit
# Configure Router B.
<RouterB> system-view
[RouterB] bgp 65009
[RouterB-bgp] router-id 2.2.2.2
[RouterB-bgp] peer 3.1.1.2 as-number 65008
[RouterB-bgp] peer 3.3.3.3 as-number 65009
[RouterB-bgp] peer 3.3.3.3 connect-interface loopback 0
[RouterB-bgp] network 9.1.1.0 24
[RouterB-bgp] quit
[RouterB] ip route-static 3.3.3.3 32 9.1.1.2
# Configure Router A.
<RouterA> system-view
[RouterA] bgp 65009
[RouterA-bgp] router-id 3.3.3.3
[RouterA-bgp] peer 3.1.2.2 as-number 65008
[RouterA-bgp] peer 2.2.2.2 as-number 65009
[RouterA-bgp] peer 2.2.2.2 connect-interface loopback 0
[RouterA-bgp] network 9.1.1.0 24
[RouterA-bgp] quit
[RouterA] ip route-static 2.2.2.2 32 9.1.1.1
# Display the BGP routing table on LB.
[LB] 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