244
Configuration procedure
To configure IPv6 prefix assignment:
Step Command Remarks
1. Enter system view.
system-view
N/A
2. (Optional.) Specify the
IPv6 prefixes excluded
from dynamic
assignment.
ipv6 dhcp server forbidden-prefix
start-prefix/prefix-len
[ end-prefix/prefix-len ] [
vpn-instance
vpn-instance-name ]
By default, no IPv6 prefixes in
the prefix pool are excluded from
dynamic assignment.
If the excluded IPv6 prefix is in a
static binding, the prefix still can
be assigned to the client.
To exclude multiple IPv6 prefix
ranges, repeat this step.
3. Create a prefix pool.
ipv6 dhcp prefix-pool
prefix-pool-number
prefix
prefix/prefix-len
assign-len
assign-len
[
vpn-instance
vpn-instance-name ]
This step is required for dynamic
prefix assignment.
By default, no prefix pool is
configured.
4. Create a DHCPv6
address pool and enter
its view.
ipv6 dhcp pool
pool-name
By default, no DHCPv6 address
pool is configured.
5. Specify an IPv6 subnet
for dynamic
assignment.
network
prefix/prefix-length
[
preferred-lifetime
preferred-lifetime
valid-lifetime
valid-lifetime ]
By default, no IPv6 subnet is
specified for dynamic
assignment.
6. Configure static prefix
assignment, dynamic
prefix assignment, or
both.
• Configure a static prefix binding:
static-bind prefix prefix/prefix-len
duid duid [ iaid iaid ]
[ preferred-lifetime
preferred-lifetime valid-lifetime
valid-lifetime ]
• Apply the prefix pool to the address
pool:
prefix-pool prefix-pool-number
[ preferred-lifetime
preferred-lifetime valid-lifetime
valid-lifetime ]
By default, static or dynamic
prefix assignment is not
configured for an address pool.
To add multiple static IPv6 prefix
bindings, use the
static-bind
prefix
command multiple times.
Configuring IPv6 address assignment
Use one of the following methods to configure IPv6 address assignment:
• Configure a static IPv6 address binding in an address pool.
If you bind a DUID and an IAID to an IPv6 address, the DUID and IAID in a request must match
those in the binding before the DHCPv6 server can assign the IPv6 address to the requesting
client. If you only bind a DUID to an IPv6 address, the DUID in a request must match the DUID
in the binding before the DHCPv6 server can assign the IPv6 address to the requesting client.
• Specify a subnet and address ranges in an address pool.
{ Non-temporary address assignment—The server selects addresses from the
non-temporary address range specified by the address range command. If no
non-temporary address range is specified, the server selects addresses on the subnet
specified by the network command.