The IPv6 local address pool for DHCP is an object that contains information about prefix configuration parameters and guidelines that govern the assignment of these prefixes to requesting routers. If you configured an interface for prefix delegation, the prefix assigned to that interface takes precedence over the prefix or range of prefixes configured at the router level in an IPv6 local pool.
To configure an IPv6 local address pool to be used for DHCPv6 prefix delegation:
![]() |
Note: You must enable the IPv6 local address pool feature to be able to configure IPv6 local address pools. |
In this case, the starting and ending prefixes of the range are implicitly specified. In this example, the start of the range is 2002:2002::/48 and the end of the range is 2002:2002:ffff::/48. All prefixes assigned from this range have 48 as the prefix length.
In this case, the starting and ending prefixes of the range are explicitly specified. In the preceding example, a prefix range is configured with 16 prefixes that can be allocated to clients. All prefixes assigned from this range have 56 as the prefix length. When you specify the prefix range in this way, you must ensure that the starting and ending prefixes are of the same length.
![]() |
Note: The preferred lifetime must be less than or equal to the valid lifetime. |
In this example, the preferred lifetime is set to 1 day, 2 hours, 3 minutes, and 4 seconds. Because the valid lifetime is not configured, the default value of 1 day is assigned.
In this example, the period for which the prefix remains valid indefinitely for the requesting router to use after it has been delegated by the DHCPv6 server. In this case, the preferred lifetime is set to 1 day by default.
If the DNS server is not configured in the IPv6 local address pool, the DNS server configured on the DHCPv6 local server is used to delegate prefixes. However, if DNS servers are configured both in the IPv6 local pool and on the DHCPv6 local server, the values configured in the IPv6 local pool take precedence.
- host1(config-v6-local)#dns-domain-search test1.com
- host1(config-v6-local)#dns-domain-search test2.com
You can configure one domain name per line. Enter the command on separate lines to configure additional domain names.
In this example, all prefixes between the starting prefix of the range, 5005:5005:2::/48, and the ending prefix of the range, 5005:5005:a::/48 are excluded from allocation to clients.
- host1(config)#aaa domain-map westford.com
- host1(config-domain-map)#ipv6-prefix-pool-name
local_addr_pool
For more information about mapping domain names to the IPv6 local address pool, see ipv6-prefix-pool-name.
If you a configure a very large prefix range in an IPv6 local address pool, the number of prefixes that can be used from that range by DHCPv6 clients is limited to 1048576.
Consider the following example in which an IPv6 local address pool, largePrefixRange, is configured. The prefix range is specified by the starting prefix and its length as 3003:3003::/32.
- host1(config)#ipv6 local pool largePrefixRange
- host1(config-v6-local)#prefix 3003:3003::/32
64
- host1(config-v6-local)#end
The Total field of the output of the following show ipv6 local pool largePrefixRange and show ipv6 local pool commands indicates the number of prefixes that can be allocated to DHCPv6 clients: 1048756.
host1#show ipv6 local pool largePrefixRange
Pool : largePrefixRange
-----------------------
Utilization : 0
Start End Total In Use
------------------------- ------------------------- ------- -------
3003:3003::/64 3003:3003:ffff:ffff::/64 1048576 0
Preferred Valid
Start Exclude Util Lifetime Lifetime
------------------------- ------- ---- ---------- ----------
3003:3003::/64 0 0 1 day 1 day
host1#show ipv6 local pool
IPv6 Local Address Pools
------------------------
Pool Start End
---------------- ------------------------- -------------------------
largePrefixRange 3003:3003::/64 3003:3003:ffff:ffff::/64
Pool Total In Use
---------------- ------- -------
largePrefixRange 1048576 0