Verifying the configuration – H3C Technologies H3C S12500 Series Switches User Manual
Page 194

180
[Switch] ipv6
[Switch] ipv6 dhcp server enable
# Configure IPv6 addresses for interfaces VLAN-interface 2 and VLAN-interface 3.
[Switch] interface vlan-interface 2
[Switch-Vlan-interface2] ipv6 address 1:2::1/32
[Switch-Vlan-interface2] quit
[Switch] interface vlan-interface 3
[Switch-Vlan-interface3] ipv6 address 1:3::1/32
[Switch-Vlan-interface3] quit
# Create address pool 1, specify subnet 1:2::/32 in the address pool, and set the subnet preferred
lifetime to one day and valid lifetime to three days.
[Switch] ipv6 dhcp pool 1
[Switch -dhcp6-pool-1] network 1:2::/32 preferred-lifetime 86400 valid-lifetime 259200
[Switch -dhcp6-pool-1] quit
# Create address pool 2, specify subnet 1:3::/32 in the address pool, and set the subnet preferred
lifetime to one day and valid lifetime to three days.
[Switch] ipv6 dhcp pool 2
[Switch -dhcp6-pool-2] network 1:3::/32 preferred-lifetime 86400 valid-lifetime 259200
[Switch -dhcp6-pool-2] quit
# Enable the DHCPv6 server, desired address assignment and rapid address assignment on interface
VLAN-interface 2, without applying any address pool.
[Switch] interface vlan-interface 2
[Switch-Vlan-interface2] ipv6 dhcp server allow-hint rapid-commit
[Switch-Vlan-interface2] quit
# Enable the DHCPv6 server, desired address assignment and rapid address assignment on interface
VLAN-interface 3, without applying any address pool.
[Switch] interface vlan-interface 3
[Switch-Vlan-interface3] ipv6 dhcp server allow-hint rapid-commit
[Switch-Vlan-interface3] quit
Verifying the configuration
# Display DHCPv6 server configuration information on VLAN-interface 2 and VLAN-interface 3.
[Switch] display ipv6 dhcp server interface Vlan-interface 2
Using pool: 1
Preference value: 0
Allow-hint: Enabled
Rapid-commit: Enabled
[Switch] display ipv6 dhcp server interface Vlan-interface 3
Preference value: 0
Allow-hint: Enabled
Rapid-commit: Enabled
# Display information about address pool 1.
[Switch] display ipv6 dhcp pool 1
Pool: 1
Network: 1:2::/32
Preferred lifetime 86400, valid lifetime 259200