Figure 78 Network diagram
Configuration procedure
1.
Configure IPv6 addresses for interfaces. (Details not shown.)
2.
Configure OSPFv3 in AS 200 to ensure connectivity among Switch B, Switch C and Switch D.
(Details not shown.)
3.
Configure BGP connections:
# Configure Switch A to establish EBGP sessions with Switch B and Switch C, and advertise
network 1::/64.
<SwitchA> system-view
[SwitchA] bgp 100
[SwitchA] router-id 1.1.1.1
[SwitchA-bgp] peer 3001::2 as-number 200
[SwitchA-bgp] peer 2001::2 as-number 200
[SwitchA-bgp] address-family ipv6 unicast
[SwitchA-bgp-ipv6] peer 3001::2 enable
[SwitchA-bgp-ipv6] peer 2001::2 enable
[SwitchA-bgp-ipv6] network 1:: 64
[SwitchA-bgp-ipv6] quit
[SwitchA-bgp] quit
# Configure Switch B to establish an EBGP session with Switch A, and an IBGP session with Switch
D.
<SwitchB> system-view
[SwitchB] bgp 200
[SwitchB] router-id 2.2.2.2
[SwitchB-bgp] peer 3001::1 as-number 100
[SwitchB-bgp] peer 3002::2 as-number 200
[SwitchB-bgp] address-family ipv6 unicast
[SwitchB-bgp-ipv6] peer 3001::1 enable
[SwitchB-bgp-ipv6] peer 3002::2 enable
[SwitchB-bgp-ipv6] peer 3002::2 next-hop-local
[SwitchB-bgp-ipv6] quit
305