To do...
Display DHCPv6 client statistics
Display the DUID of the local
device
Clear DHCPv6 client statistics
Stateless DHCPv6 configuration example
Network requirements
As shown in
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
Configure Switch B
1.
# Enable the IPv6 packet forwarding function.
<SwitchB> system-view
[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
Configure Switch A
2.
# Enable the IPv6 packet forwarding function.
<SwitchA> system-view
[SwitchA] ipv6
# Enable stateless IPv6 address autoconfiguration on VLAN-interface 2.
[SwitchA] interface vlan-interface 2
Use the command...
display ipv6 dhcp client statistics [ interface
interface-type interface-number ] [ | { begin |
exclude | include } regular-expression ]
display ipv6 dhcp duid [ | { begin | exclude |
include } regular-expression ]
reset ipv6 dhcp client statistics [ interface
interface-type interface-number ]
Figure
58, through stateless DHCPv6, Switch A obtains the DNS server address, domain
137
Remarks
Available in any view
Available in any view
Available in user view