Stateless dhcpv6 configuration example, Network requirements, Configuration procedure – H3C Technologies H3C S5560 Series Switches User Manual
Page 210: Verifying the configuration

195
Stateless DHCPv6 configuration example
Network requirements
As shown in
, configure VLAN-interface 2 on Switch A to use stateless DHCPv6 to obtain
configuration parameters except IPv6 address and IPv6 prefix. Switch B acts as the gateway and
advertises RA messages periodically.
Figure 77 Network diagram
Configuration procedure
You must configure the DHCPv6 server first before configuring the DHCPv6 client. For information about
configuring DHCPv6 server, see "
1.
Configure the gateway Switch B.
# Configure an IPv6 address for VLAN-interface 2.
[SwitchB] interface vlan-interface 2
[SwitchB-Vlan-interface2] ipv6 address 1::1 64
# Set the O flag in RA messages to 1.
[SwitchB-Vlan-interface2] ipv6 nd autoconfig other-flag
# Allow the interface to advertise RA messages.
[SwitchB-Vlan-interface2] undo ipv6 nd ra halt
2.
Configure the DHCPv6 client Switch A.
# Enable stateless IPv6 address autoconfiguration on VLAN-interface 2.
[SwitchA] interface vlan-interface 2
[SwitchA-Vlan-interface2] ipv6 address auto
With stateless IPv6 address autoconfiguration enabled, but no IPv6 address configured for
VLAN-interface 2, Switch A automatically generates a link local address. It sends an RS message
to Switch B to request configuration information for IPv6 address generation. Upon receiving the
RS message, Switch B sends back an RA message. After receiving an RA message with the M flag
set to 0 and the O flag set to 1, Switch A performs stateless DHCPv6 to get other configuration
parameters.
Verifying the configuration
# Display the DHCPv6 client information for VLAN-interface 2.
[SwitchA-Vlan-interface2] display ipv6 dhcp client interface vlan-interface 2
Vlan-interface2:
Type: Stateless client
State: OPEN