288
Configuration procedure
1.
Configure IP addresses for interfaces. (Details not shown.)
2.
Configure BGP connections:
# Configure Router A.
<RouterA> system-view
[RouterA] bgp 100
[RouterA-bgp] router-id 1.1.1.1
[RouterA-bgp] peer 192.1.1.2 as-number 200
[RouterA-bgp] address-family ipv4 unicast
[RouterA-bgp-ipv4] peer 192.1.1.2 enable
# Inject network 20.0.0.0/8 to the BGP routing table.
[RouterA-bgp-ipv4] network 20.0.0.0
[RouterA-bgp-ipv4] quit
[RouterA-bgp] quit
# Configure Router B.
<RouterB> system-view
[RouterB] bgp 200
[RouterB-bgp] router-id 2.2.2.2
[RouterB-bgp] peer 192.1.1.1 as-number 100
[RouterB-bgp] peer 193.1.1.1 as-number 200
[RouterB-bgp] address-family ipv4 unicast
[RouterB-bgp-ipv4] peer 192.1.1.1 enable
[RouterB-bgp-ipv4] peer 193.1.1.1 enable
[RouterB-bgp-ipv4] peer 193.1.1.1 next-hop-local
[RouterB-bgp-ipv4] quit
[RouterB-bgp] quit
# Configure Router C.
<RouterC> system-view
[RouterC] bgp 200
[RouterC-bgp] router-id 3.3.3.3
[RouterC-bgp] peer 193.1.1.2 as-number 200
[RouterC-bgp] peer 194.1.1.2 as-number 200
[RouterC-bgp] address-family ipv4 unicast
[RouterC-bgp-ipv4] peer 193.1.1.2 enable
[RouterC-bgp-ipv4] peer 194.1.1.2 enable
[RouterC-bgp-ipv4] quit
[RouterC-bgp] quit
# Configure Router D.
<RouterD> system-view
[RouterD] bgp 200
[RouterD-bgp] router-id 4.4.4.4
[RouterD-bgp] peer 194.1.1.1 as-number 200
[RouterD-bgp] address-family ipv4 unicast
[RouterD-bgp-ipv4] peer 194.1.1.1 enable
[RouterD-bgp-ipv4] quit
[RouterD-bgp] quit