To configure a Dynamic Host Configuration Protocol (DHCP) for IPv6 server configuration information pool and enter DHCP for
IPv6 pool configuration mode, use the ipv6
dhcp
pool command in global configuration mode. To delete a DHCP for IPv6 pool, use the no form of this command.
ipv6 dhcp pool poolname
no ipv6 dhcp pool poolname
Syntax Description
poolname
|
User-defined name for the local prefix pool. The pool name can be a symbolic string (such as "Engineering") or an integer
(such as 0).
|
Command Default
DHCP for IPv6 pools are not configured.
Command Modes
Global configuration (config)
Command History
Release
|
Modification
|
Cisco IOS XE Everest 16.5.1a
|
This command was introduced.
|
Usage Guidelines
Use the ipv6
dhcp
pool command to create a DHCP for IPv6 server configuration information pool. When the ipv6
dhcp
pool command is enabled, the configuration mode changes to DHCP for IPv6 pool configuration mode. In this mode, the administrator
can configure pool parameters, such as prefixes to be delegated and Domain Name System (DNS) servers, using the following
commands:
-
address
prefix
IPv6-prefix
[lifetime {valid-lifetime
preferred-lifetime | infinite }] sets an address prefix for address assignment. This address must be in hexadecimal, using 16-bit values between colons.
-
link-address
IPv6-prefix
sets a link-address IPv6 prefix. When an address on the incoming interface or a link-address in the packet matches the specified
IPv6-prefix, the server uses the configuration information pool. This address must be in hexadecimal, using 16-bit values
between colons.
-
vendor-specific
vendor-id
enables DHCPv6 vendor-specific configuration mode. Specify a vendor identification number. This number is the vendor IANA
Private Enterprise Number. The range is 1 to 4294967295. The following configuration command is available:
- suboption
number sets vendor-specific suboption number. The range is 1 to 65535. You can enter an IPv6 address, ASCII text, or a hex string
as defined by the suboption parameters.

Note
|
The hex value used under the suboption keyword allows users to enter only hex digits (0-f). Entering an invalid hex value does not delete the previous configuration.
|
Once the DHCP for IPv6 configuration information pool has been created, use the ipv6
dhcp
server command to associate the pool with a server on an interface. If you do not configure an information pool, you need to use
the ipv6
dhcp
server
interface configuration command to enable the DHCPv6 server function on an interface.
When you associate a DHCPv6 pool with an interface, only that pool services requests on the associated interface. The pool
also services other interfaces. If you do not associate a DHCPv6 pool with an interface, it can service requests on any interface.
Not using any IPv6 address prefix means that the pool returns only configured options.
The link-address command allows matching a link-address without necessarily allocating an address. You can match the pool from multiple relays
by using multiple link-address configuration commands inside a pool.
Since a longest match is performed on either the address pool information or the link information, you can configure one
pool to allocate addresses and another pool on a subprefix that returns only configured options.
Examples
The following example specifies a DHCP for IPv6 configuration information pool named cisco1 and places the router in DHCP
for IPv6 pool configuration mode:
Device(config)# ipv6 dhcp pool cisco1
Device(config-dhcpv6)#
The following example shows how to configure an IPv6 address prefix for the IPv6 configuration pool cisco1:
Device(config-dhcpv6)# address prefix 2001:1000::0/64
Device(config-dhcpv6)# end
The following example shows how to configure a pool named engineering with three link-address prefixes and an IPv6 address
prefix:
Device# configure terminal
Device(config)# ipv6 dhcp pool engineering
Device(config-dhcpv6)# link-address 2001:1001::0/64Device(config-dhcpv6)# link-address 2001:1002::0/64Device(config-dhcpv6)# link-address 2001:2000::0/48Device(config-dhcpv6)# address prefix 2001:1003::0/64
Device(config-dhcpv6)# end
The following example shows how to configure a pool named 350 with vendor-specific options:
Device# configure terminal
Device(config)# ipv6 dhcp pool 350
Device(config-dhcpv6)# vendor-specific 9
Device(config-dhcpv6-vs)# suboption 1 address 1000:235D::1Device(config-dhcpv6-vs)# suboption 2 ascii "IP-Phone"
Device(config-dhcpv6-vs)# end