R3303-HP HSR6800 Routers Layer 3 - IP Services Configuration Guide

178
[Router-dhcp6-pool-1] network 1:2::/32 preferred-lifetime 86400 valid-lifetime 259200
[Router-dhcp6-pool-1] quit
# Create address pool 2, specify subnet 1:3::/32 in the address pool, and set the preferred lifetime to
one day and valid lifetime to three days.
[Router] ipv6 dhcp pool 2
[Router-dhcp6-pool-2] network 1:3::/32 preferred-lifetime 86400 valid-lifetime 259200
[Router-dhcp6-pool-2] quit
# Enable the DHCPv6 server, desired address assignment, and rapid address assignment on interface
GigabitEthernet 2/1/1.
[Router] interface gigabitethernet 2/1/1
[Router-GigabitEthernet2/1/1] udno ipv6 nd ra halt
[Router-GigabitEthernet2/1/1] ipv6 dhcp server apply pool 1 allow-hint rapid-commit
[Router-GigabitEthernet2/1/1] quit
# Enable the DHCPv6 server, desired address assignment, and rapid address assignment on interface
GigabitEthernet 2/1/2.
[Router] interface gigabitethernet 2/1/2
[Router-GigabitEthernet2/1/2] udno ipv6 nd ra halt
[Router-GigabitEthernet2/1/2] ipv6 dhcp server apply pool 2 allow-hint rapid-commit
[Router-GigabitEthernet2/1/2] quit
Verifying the configuration
# Display the DHCPv6 server configuration information on GigabitEthernet 2/1/1 and GigabitEthernet
2/1/2.
[Router] display ipv6 dhcp server interface gigabitethernet 2/1/1
Preference value: 0
Allow-hint: Enabled
Rapid-commit: Enabled
[Router] display ipv6 dhcp server interface gigabitethernet 2/1/2
Preference value: 0
Allow-hint: Enabled
Rapid-commit: Enabled
# Display information about address pool 1.
[Router] display ipv6 dhcp pool 1
Pool: 1
Network: 1:2::/32
Preferred lifetime 86400, valid lifetime 259200
# Display information about address pool 2.
[Router] display ipv6 dhcp pool 2
Pool: 2
Network: 1:3::/32
Preferred lifetime 86400, valid lifetime 259200
# After Host A and Host B have obtained IPv6 addresses, display the IPv6 address binding information
on the DHCPv6 server.
[Router] display ipv6 dhcp server ip-in-use all
Total number = 2
Address Type Pool Expiration time
1:2::2 Auto(C) 1 Jul 10 2011 19:45:01