dhcpv6 server (interface view)
Function
The dhcpv6 server command enables the DHCPv6 server function on an interface.
The undo dhcpv6 server command disables the DHCPv6 server function on an interface.
By default, the DHCPv6 server function on an interface is disabled.
Format
dhcpv6 server pool-name [ allow-hint | preference preference-value | rapid-commit | unicast ] *
undo dhcpv6 server
Parameters
Parameter |
Description |
Value |
---|---|---|
pool-name |
Specifies the name of the DHCPv6 address pool configured on an interface. |
The value is a string of 1 to 31 characters without spaces. The value contains digits, letters, underscores (_), and dots (.). |
allow-hint |
Specifies the DHCPv6 server to allocate addresses, prefixes, and prefix lengths based on the DHCPv6 client requests. If the allow-hint parameter is specified, the server preferentially allocates addresses, prefixes, and prefix lengths based on the client requests. If the address, prefix, and prefix length requested by a client are not within the address pool or have been allocated to another client, the server ignores the client request and allocates another available address, prefix, and prefix length to the client. |
- |
preference preference-value |
Specifies the priority of the DHCPv6 server carried in the Advertise message sent by the DHCPv6 server. The DHCPv6 client chooses to obtain an IP address or prefix from the DHCPv6 server with the highest priority based on the server priority carried in the Advertise message. |
The value is an integer that ranges from 0 to 255. The default value is 0. A larger value indicates a higher priority of the DHCPv6 server. |
rapid-commit |
Configures the DHCPv6 server to support fast address prefix allocation. |
- |
unicast |
Specifies the unicast communication between the DHCPv6 client and DHCPv6 server during IPv6 address lease. |
- |
Usage Guidelines
Usage Scenario
The dhcpv6 server command is used on DHCP servers. If an IPv6 address pool is referenced by an interface, the interface assigns addresses or address prefixes in the address pool to clients after receiving the DHCPv6 Request messages.
Prerequisites
DHCP functions have been enabled globally using the dhcp enable command.
IPv6 functions have been enabled globally using the ipv6 command.
IPv6 functions have been enabled using the ipv6 enable command in the interface view.
Precautions
- The DHCPv6 client function, DHCPv6 relay function, and DHCPv6 server function cannot be enabled on the same interface simultaneously.
- Only one ipv6 address pool can be referenced by an interface.
- If the ipv6 address pool referenced by the interface does not exist, the DHCPv6 server function does not take effect.