< Home

dhcpv6 client pd

Function

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.

Format

dhcpv6 client pd prefix-name [ hint ipv6-prefix/ipv6-prefix-length ] [ rapid-commit ] [ unicast-option ]

undo dhcpv6 client pd

Parameters

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.

-

Views

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

Default Level

2: Configuration level

Usage Guidelines

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

  1. IPv6 functions have been enabled globally using the ipv6 command in the system view.
  2. IPv6 functions have been enabled on interfaces using the ipv6 enable command in the interface view.
  3. The IPv6 link-local address has been configured using the ipv6 address auto link-local, or ipv6 address ipv6-address link-local command in the interface view. Or the IPv6 global unicast IPv6 address has been configured using the ipv6 address { ipv6-address prefix-length | ipv6-address/prefix-length } command in the interface view.

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.

Example

# Configure the DHCPv6 PD client to obtain IPv6 address prefix using stateless DHCPv6 address autoconfiguration on the interface VLANIF100.
<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
# Configure the DHCPv6 PD client to obtain IPv6 address prefix using stateless DHCPv6 address autoconfiguration on the interface GE0/0/1.
<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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >