Configuration procedure
Configure Switch A as a DHCPv6 relay agent:
# Enable the IPv6 packet forwarding function.
<SwitchA> system-view [SwitchA] ipv6
# Configure the IPv6 addresses of VLAN-interface 2 and VLAN-interface 3, respectively.
[SwitchA] interface vlan-interface 2 [SwitchA-Vlan-interface2] ipv6 address 2::1 64 [SwitchA-Vlan-interface2] quit [SwitchA] interface vlan-interface 3 [SwitchA-Vlan-interface3] ipv6 address 1::1 64
# Enable DHCPv6 relay agent and specify the DHCPv6 server address on VLAN-interface 3.
[SwitchA-Vlan-interface3] ipv6 dhcp relay server-address 2::2
Configure Switch A as a gateway:
# Enable Switch A to send RA messages and turn on the M and O flags.
[SwitchA-Vlan-interface3] undo ipv6 nd ra halt [SwitchA-Vlan-interface3] ipv6 nd autoconfig managed-address-flag [SwitchA-Vlan-interface3] ipv6 nd autoconfig other-flag