< Home

ipv6 address auto dhcp

Function

The ipv6 address auto dhcp command enables an interface to obtain IPv6 addresses and other configuration parameters using stateful DHCPv6 address autoconfiguration.

The undo ipv6 address auto dhcp command disables an interface from obtaining IPv6 addresses and other configuration parameters using stateful DHCPv6 address autoconfiguration.

By default, the interface is disabled from obtaining IPv6 addresses and other configuration parameters using stateful DHCPv6 address autoconfiguration.

Format

ipv6 address auto dhcp [ hint ipv6-address ] [ rapid-commit ] [ unicast-option ]

undo ipv6 address auto dhcp

Parameters

Parameter Description Value

hint ipv6-address

Specifies the IPv6 address applied by a DHCPv6 client.

The total length is 128 bit, which is divided into eight groups. The 16 bits of each group are represented by four hexadecimal characters. The format is X:X:X:X:X:X:X:X.

rapid-commit

Specifies that a DHCPv6 client applies for an IPv6 address using two-message exchange.

-

unicast-option

Specifies that a DHCPv6 client applies for an IPv6 address using a unicast option.

-

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

After you run the ipv6 address auto dhcp [ rapid-commit ] command on the device that functions as a DHCPv6 client, the client uses stateful DHCPv6 address autoconfiguration to obtain IPv6 addresses and other configuration parameters, such as addresses of the DNS and SNTP servers, from the DHCPv6 server.

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.
  4. The interface has been configured to automatically learn the IPv6 default route using the ipv6 address auto global default command in the interface view.

Precautions

The DHCPv6 server assigns an IPv6 address and other configuration parameters to a DHCPv6 client using two-message exchange only when two-message exchange is configured on both the server and client. If two-message exchange is not configured on the server or client, the server assigns an IPv6 address and other configuration parameters to the client using four-message exchange. Two-message exchange applies to the scenarios with one DHCPv6 server, while four-message exchange applies to the scenarios with multiple DHCPv6 servers.

Example

# Configure the interface VLANIF100 to obtain IPv6 addresses and other configuration parameters from the DHCPv6 server using DHCPv6 stateful address autoconfiguration.

<HUAWEI> system-view
[HUAWEI] ipv6
[HUAWEI] interface vlanif 100
[HUAWEI-Vlanif100] ipv6 enable
[HUAWEI-Vlanif100] ipv6 address auto link-local
[HUAWEI-Vlanif100] ipv6 address auto dhcp
# Configure the interface GE0/0/1 to obtain IPv6 addresses and other configuration parameters from the DHCPv6 server using DHCPv6 stateful address autoconfiguration.
<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] ipv6 address auto dhcp
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >