Stateless dhcpv6 configuration example, Network requirements, Configuration procedure – H3C Technologies H3C S10500 Series Switches User Manual
Page 148

137
To do…
Use the command…
Remarks
Display DHCPv6 client statistics
display ipv6 dhcp client statistics [ interface
interface-type interface-number ] [ | { begin |
exclude | include } regular-expression ]
Available in any view
Display the DUID of the local
device
display ipv6 dhcp duid [ | { begin | exclude |
include } regular-expression ]
Available in any view
Clear DHCPv6 client statistics
reset ipv6 dhcp client statistics [ interface
interface-type interface-number ]
Available in user view
Stateless DHCPv6 configuration example
Network requirements
As shown in
, through stateless DHCPv6, Switch A obtains the DNS server address, domain
name, and other information from the server.
Switch B acts as the gateway to send RA messages periodically.
Figure 58 Stateless DHCPv6 configuration
Configuration procedure
1.
Configure Switch B
# Enable the IPv6 packet forwarding function.
[SwitchB] ipv6
# Configure the IPv6 address of VLAN-interface 2.
[SwitchB] interface vlan-interface 2
[SwitchB-Vlan-interface2] ipv6 address 1::1 64
# Set the O flag in the RA messages to 1.
[SwitchB-Vlan-interface2] ipv6 nd autoconfig other-flag
# Enable Switch B to send RA messages.
[SwitchB-Vlan-interface2] undo ipv6 nd ra halt
2.
Configure Switch A
# Enable the IPv6 packet forwarding function.
[SwitchA] ipv6
# Enable stateless IPv6 address autoconfiguration on VLAN-interface 2.
[SwitchA] interface vlan-interface 2