dhcpv6 duid

Function

The dhcpv6 duid command configures a DHCP Unique Identifier (DUID) for a DHCPv6 device.

The undo dhcpv6 duid command deletes the DUID configured for a DHCPv6 device.

By default, a DHCPv6 device does not have a DUID.

Format

dhcpv6 duid { duid-value | llt }

undo dhcpv6 duid

Parameters

Parameter Description Value
duid-value

Specifies a DUID.

The value is a string of 8 to 28, not case-sensitive characters, spaces not supported in hexadecimal notation.

llt

Indicates that a DUID is generated using DUID-LLT mode.

-

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
dhcp write

Usage Guidelines

Usage Scenario

A DUID uniquely identifies a DHCPv6 device. Each DHCPv6 client or server must have a DUID. The server's DUID is carried in the Server Identifier option in DHCPv6 messages, and the client's DUID is carried in the Client Identifier option in DHCPv6 messages. A DHCPv6 server and a client use DUIDs to identify each other.

The DUID is optional for DHCPv6 relay agents. The DUID of a DHCPv6 relay agent is carried in the Remote-Id option. The DHCPv6 server identifies relay agents based on their DUIDs carried in the Remote-Id option.

To configure a DUID or configure the DUID generation mode, run the dhcpv6 duid command.

DUID-LLT: The DUID is generated based on the device's link-layer address plus time. The link-layer address can belong to any network interface connected to the device. The device must store the DUID in stable storage and must continue to use this DUID even if the network interface used to generate the DUID is removed.

Configuration Impact

Changing the DUID of a DHCPv6 client may affect the authentication and lease renewal of online users.

If the dhcpv6 duid command is run more than once, the latest configuration overrides the previous one.

Precautions

In dual-device hot backup scenarios, the two devices automatically generate DUIDs for DHCPv6 users who go online through RUI interfaces.

Example

# Configure the DUID generation mode as DUID-LLT.
<HUAWEI> system-view
[~HUAWEI] dhcpv6 duid llt
# Configure the DUID as 0CC084D303000912.
<HUAWEI> system-view
[~HUAWEI] dhcpv6 duid 0CC084D303000912
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >