ipv6 dhcp server apply pool
Syntax
ipv6 dhcp server apply pool pool-number [ allow-hint | preference preference-value | rapid-commit ] *
undo ipv6 dhcp server apply pool
View
Interface view
Default level
2: System level
Parameters
pool-number: Specifies an address pool number.
allow-hint: Configure the server to support desired prefix assignment. If this keyword is not specified, the server does not support assignment of desired prefixes.
preference preference-value: Specifies the server priority in Advertise messages, in the range of 0 to 255. The default value is 0. A higher value indicates a higher priority.
rapid-commit: Configure the server to support rapid prefix assignment. If this keyword is not specified, the server does not support rapid prefix assignment.
Description
Use ipv6 dhcp server apply pool to apply a DHCPv6 address pool to the interface.
Use undo ipv6 dhcp server apply pool to remove the configuration.
No address pool is applied to an interface by default.
Upon receiving a request from a DHCPv6 client on an interface, the DHCPv6 server selects a prefix from the address pool applied to the interface and assigns it to the client.
With the allow-hint keyword specified, the server assigns the desired prefix to the requesting client. If the desired prefix is not included in the assignable prefix pool of the interface, or is already assigned to another client, the server ignores the desired prefix and assigns the client a prefix from the idle prefixes.
An interface cannot serve as a DHCPv6 server and DHCPv6 relay agent at the same time. Hewlett Packard Enterprise recommends that you do not enable the DHCPv6 server and DHCPv6 client on the same interface.
You can apply a non-existing address pool to an interface. However, the server cannot assign any prefix or other configuration information from the address pool until the address pool is created.
You cannot modify the address pool applied to an interface or parameters such as the server priority by using the ipv6 dhcp server apply pool command. You need to remove the applied address pool before you can apply another address pool to the interface or modify parameters such as the server priority.
NOTE: Only one address pool can be applied to an interface. | ||
Examples
# Apply prefix pool 1 to VLAN-interface 2, configure the server to support desired prefix assignment and rapid prefix assignment, and set the highest priority of 255.
<Sysname> system-view [Sysname] interface vlan-interface 2 [Sysname-Vlan-interface2] ipv6 dhcp server apply pool 1 allow-hint preference 255 rapid-commit