Configuration Condition
None
Create a DHCPv6 Address Pool
A DHCPv6 server needs to select and allocate IPv6 addresses and other parameters from a DHCPv6 address pool. Therefore, a DHCPv6 address pool must be created for the DHCPv6 server.
Table 6-2 Creating a DHCPv6 Address Pool
Step
|
Command
|
Description
|
Enter the global configuration mode.
|
configure terminal
|
-
|
Create one DHCPv6 address pool and enter the DHCPv6 configuration mode
|
ipv6 dhcp pool pool-name [ vrf vrf-name ]
|
Mandatory
By default, the system does not create the DHCPv6 address pool.
|
-
Address pools fall into two types: Network and Range. The two types of address pools can be configured respectively through the network and range commands.
Configure an IPv6 Address Range
On a DHCPv6 server, each DHCPv6 address pool must be configured with an IPv6 address range to allocate IPv6 addresses to DHCPv6 clients.
Table 6-3 Configuring an IPv6 Address Range
Step
|
Command
|
Description
|
Enter the global configuration mode.
|
configure terminal
|
-
|
Enter the DHCPv6 configuration mode
|
ipv6 dhcp pool pool-name [ vrf vrf-name ]
|
-
|
Configure an IPv6 address range for an address pool of the Network type.
|
network ipv6-address/prefix-length
|
Optional.
By default, an IPv6 address range is not configured for an address pool.
|
Configure an IPv6 address range for an address pool of the Range type. |
range low-ipv6-address high-ipv6-address prefix-length |
Optional.
By default, an IPv6 address range is not configured for an address pool.
|
-
Modify the type of the address pool from network to range (or from range to network). If the new address range intersects with the old address range, the command line will prompt the user whether to perform the operation. If yes, it will delete the address configuration (static binding) and dynamic lease related to the address pool; if the actual effective range of the new address includes the actual effective range of the old address, the address pool reserves the relevant address configuration (static binding) under the address pool. But dynamic leases are deleted.
Configure a DNS Server Address
On a DHCPv6 server, you can configure the DNS server address respectively for each DHCPv6 address pool. When a DHCPv6 server allocates an IPv6 address for a DHCPv6 client, it also sends the DNS server address to the client.
When the DHCPv6 client starts dynamic domain name resolution, it queries the DNS server.
Table 6-4 Configuring a DNS Server Address
Step
|
Command
|
Description
|
Enter the global configuration mode.
|
configure terminal
|
-
|
Enter the DHCPv6 configuration mode
|
ipv6 dhcp pool pool-name [ vrf vrf-name ]
|
-
|
Configure a DNS server address
|
dns-server { ipv6-address&<1-8> | autoconfig }
|
Mandatory.
By default, the DNS server address is not configured.
|
Configure the Lease of an IPv6 Address
The IPv6 address that the DHCPv6 server allocates to the DHCPv6 client has a lease.
After the lease expires, the server will take back the allocated IPv6 address. If the DHCPv6 client wants to continue to use the IPv6 address, it must have the IPv6 address lease updated.
On the DHCPv6 server, you can configure an IPv6 address lease for each DHCPv6 address pool.
Table 6-5 Configuring the Lease of an IPv6 Address
Step
|
Command
|
Description
|
Enter the global configuration mode.
|
configure terminal
|
-
|
Enter the DHCPv6 configuration mode
|
ipv6 dhcp pool pool-name [ vrf vrf-name ]
|
-
|
Configure the lease of the IPv6 address
|
lease preferred-lifetime preferred-lifetime valid-lifetime valid-lifetime
|
Mandatory
By default, the preferred-lifetime is 604800 (sevent days), and valid-lifetime is 2592000s (30 days).
|
Configure IPv6 to Bind with DUID, IAID
Configure IPv6 to bind with client DUID and IAID. When specifying the client of DUID and IAID to request for allocating the IPv6 address to the DHCPv6 server, the DHCPv6 server will allocate the IPv6 address it binds to. As long as the DIID and IAID of the client remain unchanged, the IPv6 address acquired by the client from the server is the same every time.
Table 6-6 Configure Ipv6 to bind with DUID, IAID
Step
|
Command
|
Description
|
Enter the global configuration mode.
|
configure terminal
|
-
|
Enter the DHCPv6 configuration mode
|
ipv6 dhcp pool pool-name [ vrf
vrf-name ]
|
-
|
Configure Ipv6 to bind with DUID, IAID
|
bind ipv6-address duid duid [ iaid iaid ]
|
Mandatory
By default, do not configure IPv6 to bind with DUID, IAID.
|
-
The command is valid only for the Range and Network address pools.
- When configuring the static binding of the same duid and iaid, the address pool permits binding five IPv6 addresses.
- When the configured static binding only specifies duid, not specifying iaid, the address pool only permits binding one IPv6 address.