Configuring acquisition of configuration parameters except IP addresses and prefixes
About acquisition of configuration parameters except IP addresses and prefixes
When a DHCPv6 client has obtained an IPv6 address and prefix, you can configure the following methods for the client to obtain other network configuration parameters:
Execute the ipv6 address auto command to enable an interface to automatically generate an IPv6 global unicast address and a link-local address. Then stateless DHCPv6 will be triggered when the M flag is set to 0 and the O flag is set to 1 in a received RA message. For more information about the commands, see Layer 3—IP services Command Reference.
Executing the ipv6 dhcp client stateless enable command on an interface to enable the interface to act as a DHCPv6 client to obtain configuration parameters from a DHCPv6 server.
If you execute both the ip address auto and ipv6 dhcp client stateless enable commands, the interface acts as follows:
Generate a global unicast address and a link-local address.
Obtain other configuration parameters from a DHCPv6 server.
Procedure
Enter system view.
system-view
Enter interface view.
interface interface-type interface-number
Configure the interface to support stateless DHCPv6. Choose the options to configure as needed:
Enable stateless IPv6 address autoconfiguration:
ipv6 address auto
Configure the client to obtain network parameters from DHCPv6 servers:
ipv6 dhcp client stateless enable
By default, the interface does not support stateless DHCPv6.