248
• Only one address pool can be applied to an interface. If you use the ipv6 dhcp server apply
pool command multiple times, the most recent configuration takes effect.
Configuration procedure
To configure the DHCPv6 server on an interface:
Step Command Remarks
1. Enter system view.
system-view
N/A
2. Enter interface view.
interface
interface-type
interface-number
N/A
3. Enable the DHCPv6
server on the interface.
ipv6 dhcp select server
By default, the interface discards
DHCPv6 packets from DHCPv6
clients.
4. Configure an
address/prefix
assignment method.
• Configure global address
assignment:
ipv6 dhcp server { allow-hint |
preference preference-value |
rapid-commit } *
• Apply a DHCPv6 address pool to
the interface:
ipv6 dhcp server apply pool
pool-name [ allow-hint |
preference preference-value |
rapid-commit ] *
By default, desired
address/prefix assignment and
rapid assignment are disabled,
and the default preference is 0.
Setting the DSCP value for DHCPv6 packets sent
by the DHCPv6 server
The DSCP value of a packet specifies the priority level of the packet and affects the transmission
priority of the packet.
To set the DSCP value for DHCPv6 packets sent by the DHCPv6 server:
Step Command Remarks
1. Enter system view.
system-view
N/A
2. Set the DSCP value for
DHCPv6 packets sent by the
DHCPv6 server.
ipv6 dhcp dscp
dscp-value
By default, the DSCP value in DHCPv6
packets sent by the DHCPv6 server is 56.
Configuring DHCPv6 binding auto backup
The auto backup function saves DHCPv6 bindings to a backup file, and allows the DHCPv6 server to
download the bindings from the backup file at the server reboot. The bindings include the lease
bindings and conflicted IPv6 addresses. They cannot survive a reboot on the DHCPv6 server.
The DHCPv6 server does not provide services during the download process. If a connection error
occurs during the process and cannot be repaired in a short amount of time, you can terminate the
download operation. Manual interruption allows the DHCPv6 server to provide services without
waiting for the connection to be repaired.