247
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
ipv6 dhcp server forbidden-address
Use ipv6 dhcp server forbidden-address to exclude specified IPv6 addresses from dynamic
allocation.
Use undo ipv6 dhcp server forbidden-address to remove the configuration.
Syntax
ipv6 dhcp server forbidden-address start-ipv6-address [ end-ipv6-address ]
undo ipv6 dhcp server forbidden-address start-ipv6-address [ end-ipv6-address ]
Default
Except for the DHCPv6 server address, all IPv6 addresses in a DHCPv6 address pool are
assignable.
Views
System view
Predefined user roles
network-admin
Parameters
start-ipv6-address: Specifies the start IPv6 address.
end-ipv6-address: Specifies the end IPv6 address, which cannot be lower than start-ipv6-address. If
you do not specify an end IPv6 address, only the start IPv6 address is excluded from dynamic
allocation. If you specify an end IPv6 address, the IP addresses from start-ipv6-address to
end-ipv6-address are all excluded from dynamic allocation.