16-9
Configuration procedure
1) 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 1 and VLAN-interface 2 respectively.
[SwitchA] interface vlan-interface 2
[SwitchA-Vlan-interface2] ipv6 address 2::1 64
[SwitchA-Vlan-interface2] quit
[SwitchA] interface vlan-interface 1
[SwitchA-Vlan-interface1] ipv6 address 1::1 64
# Enable DHCP relay agent and specify the DHCPv6 server address on VLAN-interface 1.
[SwitchA-Vlan-interface1] ipv6 dhcp relay server-address 2::2
2) Configure Switch A as a gateway
# Enable Switch A to send RA messages and set the “M” and “O” flags.
[SwitchA-Vlan-interface1] undo ipv6 nd ra halt
[SwitchA-Vlan-interface1] ipv6 nd autoconfig managed-address-flag
[SwitchA-Vlan-interface1] ipv6 nd autoconfig other-flag
3) Verify the configuration
# After completing the above configurations, display DHCPv6 server address information on Switch A.
[SwitchA-Vlan-interface1] display ipv6 dhcp relay server-address all
Interface: Vlan1
Server address(es) Output Interface
2::2
# Display packet statistics on the DHCPv6 relay agent.
[SwitchA-Vlan-interface1] display ipv6 dhcp relay statistics
Packets dropped : 0
Error : 0
Excess of rate limit : 0
Packets received : 14
SOLICIT : 0
REQUEST : 0
CONFIRM : 0
RENEW : 0
REBIND : 0
RELEASE : 0
DECLINE : 0
INFORMATION-REQUEST : 7
RELAY-FORWARD : 0
RELAY-REPLY : 7
Packets sent : 14
ADVERTISE : 0
RECONFIGURE : 0
REPLY : 7
RELAY-FORWARD : 7
RELAY-REPLY : 0