prefix-pool
Use prefix-pool to apply a prefix pool to a DHCPv6 address pool, so the DHCPv6 server can dynamically select a prefix from the prefix pool for a client.
Use undo prefix-pool to remove the prefix pool.
Syntax
prefix-pool prefix-pool-number [ preferred-lifetime preferred-lifetime valid-lifetime valid-lifetime ]
undo prefix-pool prefix-pool-number
Default
No prefix pool is applied to a DHCPv6 address pool.
Views
DHCPv6 address pool view
Predefined user roles
network-admin
mdc-admin
Parameters
prefix-pool-number: Specifies a prefix pool by its number in the range of 1 to 128.
preferred-lifetime preferred-lifetime: Sets the preferred lifetime in the range of 60 to 4294967295 seconds. The default value is 604800 seconds (7 days).
valid-lifetime valid-lifetime: Sets the valid lifetime in the range of 60 to 4294967295 seconds. The default value is 2592000 seconds (30 days). The valid lifetime must be longer than or equal to the preferred lifetime.
Usage guidelines
Only one prefix pool can be applied to an address pool.
You can apply a prefix pool that has not been created to an address pool. The setting takes effect after the prefix pool is created.
To modify the prefix pool in a DHCPv6 address pool, execute the undo prefix-pool command to remove the prefix pool, and then execute the prefix-pool command.
Examples
# Apply prefix pool 1 to address pool 1, and use the default preferred lifetime and valid lifetime.
<Sysname> system-view [Sysname] ipv6 dhcp pool 1 [Sysname-dhcp6-pool-1] prefix-pool 1
# Apply prefix pool 2 to address pool 2, and set the preferred lifetime to one day and the valid lifetime to three days.
<Sysname> system-view [Sysname] ipv6 dhcp pool 2 [Sysname-dhcp6-pool-2] prefix-pool 2 preferred-lifetime 86400 valid-lifetime 259200
Related commands
display ipv6 dhcp pool
ipv6 dhcp prefix-pool