Configuring stateless DHCPv6

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter VLAN interface view.

interface interface-type interface-number

N/A

3. Configure the interface to support stateless DHCPv6.

  • Enable stateless IPv6 address autoconfiguration:ipv6 address auto

  • Enable stateless DHCPv6:ipv6 dhcp client stateless enable

By default, the interface does not support stateless DHCPv6.

You can perform both tasks.

If you use only the ipv6 address auto command, make sure the M flag is set to 0 and the O flag is set to 1 in the RA message. Otherwise, stateless DHCPv6 cannot be triggered.