R0106-HP MSR Router Series Layer 3 - IP Services Configuration Guide(V7)

249
Configuration procedure
You must configure the DHCPv6 server before configuring the DHCPv6 client. For information about
configuring the DHCPv6 server, see "Configuring the DHCPv6 server."
# Co
nfigure an IPv6 address for GigabitEthernet 2/1/1 that connects to the DHCPv6 server.
<Router> system-view
[Router] interface gigabitethernet 2/1/1
[Router-GigabitEthernet2/1/1] ipv6 address 1::2/48
# Configure GigabitEthernet 2/1/1 to support DHCPv6 rapid prefix assignment. Enable the DHCPv6
client to assign an ID to the obtained IPv6 prefix and create a dynamic DHCPv6 option group for saving
configuration parameters.
[Router-GigabitEthernet2/1/1] ipv6 dhcp client pd 1 rapid-commit option-group 1
[Router-GigabitEthernet2/1/1] quit
Verifying the configuration
# Display DHCPv6 client information. The output shows that the DHCPv6 client has obtained an IPv6
prefix and other configuration parameters from the DHCPv6 server.
[Router] display ipv6 dhcp client
GigabitEthernet2/1/1:
Type: Stateful client requesting prefix
State: OPEN
IAID: 0xf0019
Client DUID: 00030001000fe2ff0000
Preferred server:
Reachable via address: FE80::200:5EFF:FE0A:2303
Server DUID: 00030001000fe20a0a00
Prefix: 12:34::/32
Preferred lifetime 90 sec, valid lifetime 90 sec
T1 45 sec, T2 72 sec
Will expire on Feb 4 2013 at 15:37:20 (80 seconds left)
DNS server addresses:
2000::FF
Domain name:
example.com
SIP server addresses:
2:2::4
SIP server domain names:
bbb.com
# Display information about the dynamic IPv6 prefix. The output shows that the client has obtained an
IPv6 prefix.
[Router] display ipv6 prefix 1
Number: 1
Type : Dynamic
Prefix: 12:34::/32
Preferred lifetime 90 sec, valid lifetime 90 sec
# Display information about the dynamic DHCPv6 option group. The output shows that the client has
created a dynamic DHCPv6 option group for saving configuration parameters.
[Router] display ipv6 dhcp option-group 1