282
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 that 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 that Router A can access the intranet
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 load balancing on Router A.
Configuration procedure
1.
Configure IP addresses for interfaces. (Details not shown.)
2.
Configure BGP connections:
# 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] address-family ipv4 unicast
[RouterA-bgp-ipv4] peer 3.1.1.1 enable
[RouterA-bgp-ipv4] peer 3.1.2.1 enable
[RouterA-bgp-ipv4] network 8.1.1.1 24
[RouterA-bgp-ipv4] quit
[RouterA-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] address-family ipv4 unicast
[RouterB-bgp-ipv4] peer 3.1.1.2 enable
[RouterB-bgp-ipv4] peer 3.3.3.3 enable
[RouterB-bgp-ipv4] network 9.1.1.0 24
[RouterB-bgp-ipv4] quit
[RouterB-bgp] quit
[RouterB] ip route-static 3.3.3.3 32 9.1.1.2
# 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] address-family ipv4 unicast