The dhcpv6 client pd command configures the DHCPv6 PD client function.
The undo dhcpv6 client pd command disables the DHCPv6 PD client function.
By default, the DHCPv6 PD client function is disabled.
dhcpv6 client pd prefix-name [ hint ipv6-prefix/ipv6-prefix-length ] [ rapid-commit ] [ unicast-option ]
undo dhcpv6 client pd
Parameter |
Description |
Value |
---|---|---|
prefix-name |
Specifies the name of an IPv6 address prefix name. |
The value is a string of 1 to 63 case-sensitive characters without spaces. |
hint ipv6-prefix/ipv6-prefix-length |
Specifies the required IPv6 address prefix and prefix length. |
ipv6-prefix: The value has 128 bits. It is represented as eight groups of four hexadecimal digits with the groups being separated by colons, in the format of X:X:X:X:X:X:X:X. ipv6-prefix-length: The value is an integer that ranges from 1 to 128. |
rapid-commit |
Indicates that the DHCPv6 PD client requests an IPv6 address prefix using the two-message exchange. |
- |
unicast-option |
Indicates that the DHCPv6 PD client requests an IPv6 address prefix using the unicast mode. |
- |
VLANIF interface view, Eth-Trunk interface view, GE interface view, XGE interface view, MultiGE interface view, MultiGE sub-interface view, 25GE interface view, 40GE interface view, 100GE interface view, Eth-Trunk sub-interface view, GE sub-interface view, XGE sub-interface view, 25GE sub-interface view, 40GE sub-interface view, 100GE sub-interface view
Usage Scenario
The dhcpv6 client pd command is used on the DHCPv6 PD client. After the dhcpv6 client pd is executed on the device that functions as a DHCPv6 PD client, the device requests an IPv6 address prefix in the DHCPv6 mode. The requested prefix is bound to the configured prefix name. You can specify the hint ipv6-prefix/ipv6-prefix-length parameter to set the required IPv6 address prefix and prefix length.
Prerequisites
Configuration Precautions
When configuring the DHCPv6 PD client function, you cannot set prefix-name to a, au, aut, or auto. These prefix names cannot be applied to interfaces.
<HUAWEI> system-view [HUAWEI] ipv6 [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] ipv6 enable [HUAWEI-Vlanif100] ipv6 address auto link-local [HUAWEI-Vlanif100] dhcpv6 client pd huawei
<HUAWEI> system-view [HUAWEI] ipv6 [HUAWEI] interface gigabitethernet0/0/1 [HUAWEI-GigabitEthernet0/0/1] undo portswitch [HUAWEI-GigabitEthernet0/0/1] ipv6 enable [HUAWEI-GigabitEthernet0/0/1] ipv6 address auto link-local [HUAWEI-GigabitEthernet0/0/1] dhcpv6 client pd huawei