ipv6 dhcp server apply pool
Use ipv6 dhcp server apply pool to apply a DHCPv6 address pool to an interface.
Use undo ipv6 dhcp server apply pool to remove the DHCPv6 address pool from the interface.
Syntax
ipv6 dhcp server apply pool pool-name [ allow-hint | preference preference-value | rapid-commit ] *
undo ipv6 dhcp server apply pool
Default
No address pool is applied to an interface.
Views
Interface view
Predefined user roles
network-admin
Parameters
pool-name: Specifies a DHCPv6 address pool by its name, a case-insensitive string of 1 to 63 characters.
allow-hint: Enables desired address/prefix assignment.
preference preference-value: Specifies the server preference in Advertise messages, in the range of 0 to 255. The default value is 0. A greater value specifies a higher preference.
rapid-commit: Enables rapid address/prefix assignment involving two messages.
Usage guidelines
Upon receiving a DHCPv6 request, the DHCPv6 server selects an IPv6 address or prefix from the address pool applied to the receiving interface. If no address pool is applied, the server selects an IPv6 address or prefix from a global address pool that matches the IPv6 address of the receiving interface or the DHCPv6 relay agent.
The allow-hint keyword enables the server to assign the desired address or prefix to the client. If the desired address or prefix does not exist or is already assigned to another client, the server assigns a free address or prefix. If allow-hint is not specified, the server ignores the desired address or prefix, and assigns a free address or prefix.
Only one address pool can be applied to an interface. If you use the command multiple times, the most recent configuration takes effect.
A non-existing address pool can be applied to an interface, but the server cannot assign any prefix, address, or other configuration information from the address pool until the address pool is created.
Examples
# Apply address pool 1 to VLAN-interface 2, configure the address pool to support desired address/prefix assignment and address/prefix rapid assignment, and set the preference to 255.
<Sysname> system-view [Sysname] interface vlan-interface 2 [Sysname-Vlan-interface2] ipv6 dhcp server apply pool 1 allow-hint preference 255 rapid-commit
Related commands
display ipv6 dhcp server
ipv6 dhcp pool
ipv6 dhcp select