H3C Technologies H3C S12500 Series Switches User Manual
Page 154
141
403B
Configuration considerations
To configure the DHCPv6 server:
•
Create a prefix pool.
To assign prefixes in the range of 2001:0410::/48 to 2001:0410:FFFF::/48, specify a prefix
2001:0410::/32 and specify the assigned prefix length as 48 in the pool.
•
Create an address pool.
Specify a subnet where the IPv6 address of the server interface connecting the clients resides.
•
Configure a static prefix binding, apply the prefix pool, and configure other configuration
parameters in the address pool.
•
Enable the DHCPv6 server on the interface that connects the clients.
Figure 56 Network diagram
404B
Configuration procedure
# Configure the IPv6 address of VLAN-interface 2.
<Switch> system-view
[Switch] interface vlan-interface 2
[Switch-Vlan-interface2] ipv6 address 1::1/64
[Switch-Vlan-interface2] quit
# Create prefix pool 1, and specify the prefix 2001:0410::/32 with the assigned prefix length being 48.
[Switch] ipv6 dhcp prefix-pool 1 prefix 2001:0410::/32 assign-len 48
# Create address pool 1.
[Switch] ipv6 dhcp pool 1
# In address pool 1, configure subnet 1::/64 where VLAN interface-2 resides.
[Switch-dhcp6-pool-1] network 1::/64
# Apply prefix pool 1 to address pool 1, and set the preferred lifetime to one day, and the valid lifetime
to three days.
[Switch-dhcp6-pool-1] prefix-pool 1 preferred-lifetime 86400 valid-lifetime 259200
# In address pool 1, bind prefix 2001:0410:0201::/48 to the client DUID 00030001CA0006A40000,
and set the preferred lifetime to one day, and the valid lifetime to three days.
[Switch-dhcp6-pool-1] static-bind prefix 2001:0410:0201::/48 duid 00030001CA0006A40000
preferred-lifetime 86400 valid-lifetime 259200
# Configure the DNS server address 2:2::3.
[Switch-dhcp6-pool-1] dns-server 2:2::3