Verification – H3C Technologies H3C SecPath F1000-E User Manual
Page 99
3
# Enable the router to send RA messages.
[Router-GigabitEthernet0/1] undo ipv6 nd ra halt
Step2
Configure the device
# Enable the IPv6 packet forwarding function.
[Device] ipv6
# Enable stateless IPv6 address autoconfiguration on GigabitEthernet 0/1.
[Device] interface gigabitethernet 0/1
[Device -GigabitEthernet0/1] ipv6 address auto
With this command executed, if GigabitEthernet 0/1 has no IPv6 address configured, the device will
automatically generate a link-local address, and send a router solicitation (RS) message, requesting the
gateway (the router) to reply with an RA message immediately.
Verification
After receiving an RA message with the M flag set to 0 and the O flag set to 1, the device automatically
enables stateless DHCPv6.
# Use the display ipv6 dhcp client command to view the current client configuration information. If
the client successfully obtains configuration information from the server, the following information will be
displayed.
[Device-GigabitEthernet0/1] display ipv6 dhcp client interface gigabitethernet 0/1
GigabitEthernet0/1 is in stateless DHCPv6 client mode
State is OPEN
Preferred Server:
Reachable via address : FE80::213:7FFF:FEF6:C818
DUID : 0003000100137ff6c818
DNS servers : 1:2:3::5
1:2:4::7
Domain names : abc.com
Sysname.com
# Use the display ipv6 dhcp client statistics command to view the current client statistics.
[Device-GigabitEthernet0/1] display ipv6 dhcp client statistics
Interface : GigabitEthernet0/1
Packets Received : 1
Reply : 1
Advertise : 0
Reconfigure : 0
Invalid : 0
Packets Sent : 5
Solicit : 0
Request : 0
Confirm : 0
Renew : 0
Rebind : 0
Information-request : 5
Release : 0
Decline : 0