283
Configuration procedure
1.
Configure IPv6 addresses for interfaces and IPv4 addresses for loopback interfaces. (Details not
shown.)
2.
Configure IBGP and EBGP connections and advertise network routes through IPv6 BGP:
# Configure Router A.
<RouterA> system-view
[RouterA] bgp 100
[RouterA-bgp] router-id 1.1.1.1
[RouterA-bgp] peer 100::2 as-number 200
[RouterA-bgp] address-family ipv6
[RouterA-bgp-ipv6] peer 100::2 enable
[RouterA-bgp-ipv6] network 1:: 64
[RouterA-bgp-ipv6] network 100:: 96
[RouterA-bgp-ipv6] quit
[RouterA-bgp] quit
# Configure Router B
<RouterB> system-view
[RouterB] bgp 200
[RouterB-bgp] router-id 2.2.2.2
[RouterB-bgp] peer 100::1 as-number 100
[RouterB-bgp] peer 101::1 as-number 200
[RouterB-bgp] address-family ipv6
[RouterB-bgp-ipv6] peer 100::1 enable
[RouterB-bgp-ipv6] peer 101::1 enable
[RouterB-bgp-ipv6] peer 101::1 next-hop-local
[RouterB-bgp-ipv6] network 100:: 96
[RouterB-bgp-ipv6] network 101:: 96
[RouterB-bgp-ipv6] quit
[RouterB-bgp] quit
# Configure Router C.
<RouterC> system-view
[RouterC] bgp 200
[RouterC-bgp] router-id 3.3.3.3
[RouterC-bgp] peer 101::2 as-number 200
[RouterC-bgp] peer 102::2 as-number 200
[RouterC-bgp] address-family ipv6
[RouterC-bgp-ipv6] peer 101::2 enable
[RouterC-bgp-ipv6] peer 102::2 enable
[RouterC-bgp-ipv6] network 101:: 96
[RouterC-bgp-ipv6] network 102:: 96
# Configure Router D.
<RouterD> system-view
[RouterD] bgp 200
[RouterD-bgp] router-id 4.4.4.4
[RouterD-bgp] peer 102::1 as-number 200
[RouterD-bgp] address-family ipv6
[RouterD-bgp-ipv6] peer 102::1 enable