212
Figure 79 Network diagram
Procedure
You must configure the DHCPv6 server before configuring the DHCPv6 client. For information about
configuring the DHCPv6 server, see "Configuring the DHCPv6 server."
# Configure an IPv6 address for VLAN-interface 2 that is connected to the DHCPv6 server.
<Switch> system-view
[Switch] interface vlan-interface 2
[Switch-Vlan-interface2] ipv6 address 1::2/48
# Configure VLAN-interface 2 as a DHCPv6 client for IPv6 address and prefix acquisition. Specify
IDs for the dynamic IPv6 prefix and dynamic DHCPv6 option group, and configure the client to
support rapid address and prefix assignment.
[Switch-Vlan-interface2] ipv6 dhcp client stateful prefix 1 rapid-commit option-group 1
[Switch-Vlan-interface2] quit
Verifying the configuration
# Verify that the DHCPv6 client has obtained an IPv6 address, an IPv6 prefix, and other configuration
parameters from the DHCPv6 server.
[Switch] display ipv6 dhcp client
Vlan-interface2:
Type: Stateful client requesting address and prefix
State: OPEN
Client DUID: 0003000100e002000000
Preferred server:
Reachable via address: FE80::2E0:1FF:FE00:18
Server DUID: 0003000100e001000000
IA_NA: IAID 0x00000642, T1 50 sec, T2 80 sec
Address: 1:1::2/128
Preferred lifetime 100 sec, valid lifetime 200 sec
Will expire on Mar 27 2014 at 08:02:00 (199 seconds left)
IA_PD: IAID 0x00000642, T1 50 sec, T2 80 sec
Prefix: 12:34::/48
Preferred lifetime 100 sec, valid lifetime 200 sec
Will expire on Mar 27 2014 at 08:02:00 (199 seconds left)
DNS server addresses:
2000::FF
Domain name:
example.com