245
{
Temporary address assignment
—The server selects addresses from the temporary
address range specified by the
temporary address range
command. If no temporary
address range is specified in the address pool, the DHCPv6 server cannot assign
temporary addresses to clients.
Configuration guidelines
•
You can specify only one non-temporary address range and one temporary address range in an
address pool.
•
The address ranges specified by the
address range
and
temporary address range
commands must be on the subnet specified by the
network
command. Otherwise, the
addresses are unassignable.
•
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.
•
An IPv6 address can be bound to only one DHCPv6 client. You cannot modify bindings that
have been created. To change the binding for a DHCPv6 client, you must delete the existing
binding first.
•
Only one subnet can be specified in an address pool. If you use the
network
command multiple
times in a DHCPv6 address pool, the most recent configuration takes effect. If you use this
command to specify only new lifetimes, the settings do not affect existing leases. The IPv6
addresses assigned after the modification will use the new lifetimes.
Configuration procedure
To configure IPv6 address assignment:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
(Optional.) Specify the IPv6
addresses excluded from
dynamic assignment.
ipv6 dhcp server
forbidden-address
start-ipv6-address
[
end-ipv6-address
]
[
vpn-instance
vpn-instance-name
]
By default, all IPv6 addresses
except for the DHCPv6 server's
IP address in a DHCPv6 address
pool are assignable.
If the excluded IPv6 address is in
a static binding, the address still
can be assigned to the client.
To exclude multiple IPv6 prefix
ranges, repeat this step.
3.
Create a DHCPv6 address
pool and enter its view.
ipv6 dhcp pool
pool-name
By default, no DHCPv6 address
pool is configured.
4.
Specify an IPv6 subnet for
dynamic assignment.
network
prefix
/
prefix-length
[
preferred-lifetime
preferred-lifetime
valid-lifetime
valid-lifetime
]
By default, no IPv6 address
subnet is specified.
You cannot use this command to
configure the same subnet in
different address pools.
5.
(Optional.) Specify a
non-temporary IPv6 address
range.
address range
start-ipv6-address
end-ipv6-address
[
preferred-lifetime
preferred-lifetime
valid-lifetime
valid-lifetime
]
By default, no non-temporary
IPv6 address range is specified,
and all unicast addresses on the
subnet are assignable.