265
Configuring IPv6 prefix acquisition
Step Command Remarks
1. Enter system view.
system-view
N/A
2. Enter interface view.
interface
interface-type
interface-number
N/A
3. Configure the interface to
use DHCPv6 to obtain an
IPv6 prefix and other
configuration parameters.
ipv6 dhcp client pd
prefix-number [
option-group
group-number |
rapid-commit
] *
By default, the interface does not
use DHCPv6 for IPv6 prefix
acquisition.
Configuring IPv6 address and prefix acquisition
Step Command Remarks
1. Enter system view.
system-view
N/A
2. Enter interface view.
interface
interface-type
interface-number
N/A
3. Configure the interface to
use DHCPv6 to obtain an
IPv6 address, an IPv6 prefix,
and other configuration
parameters.
ipv6 dhcp client stateful prefix
prefix-number [
option-group
option-group-number |
rapid-commit
] *
By default, the interface does not
use DHCPv6 for IPv6 address and
prefix acquisition.
Configuring stateless DHCPv6
Step Command Remarks
1. Enter system view.
system-view
N/A
2. Enter 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.
Setting the DSCP value for DHCPv6 packets sent
by the DHCPv6 client
The DSCP value of a packet specifies the priority level of the packet and affects the transmission
priority of the packet.