189
<SwitchB> system-view
[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> system-view
[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
IAID: 0xf0019
Client DUID: 00030001000fe2ff0000
Preferred server:
Reachable via address: FE80::213:7FFF:FEF6:C818
Server DUID: 0003000100137ff6c818
DNS server addresses:
1:2:4::5
1:2:4::7
Domain name:
abc.com
# Display the DHCPv6 client statistics.
[SwitchA-Vlan-interface2] display ipv6 dhcp client statistics
Interface : Vlan-interface2
Packets received : 1
Reply : 1
Advertise : 0
Reconfigure : 0
Invalid : 0
Packets sent : 5
Solicit : 0
Request : 0
Renew : 0