Configuring the DHCPv6 server on an interface

About configuring the DHCPv6 server on an interface

Enable the DHCP server and configure one of the following address/prefix assignment methods on an interface:

If you configure both methods on an interface, the DHCPv6 server uses the specified address pool for address assignment without performing global address assignment.

Restrictions and guidelines

Procedure

  1. Enter system view.

    system-view

  2. Enter interface view.

    interface interface-type interface-number

  3. Enable the DHCPv6 server on the interface.

    ipv6 dhcp select server

    By default, the interface does not act as a DHCP server or a DHCP relay agent, and discards DHCPv6 packets from DHCPv6 clients.

  4. Configure an assignment method.

    • Configure global address assignment.

      ipv6 dhcp server { allow-hint | preference preference-value | rapid-commit } *

      By default, desired address/prefix assignment and rapid assignment are disabled, and the default preference is 0.

    • Apply a DHCPv6 address pool to the interface.

      ipv6 dhcp server apply pool pool-name [ allow-hint | preference preference-value | rapid-commit ] *