< Home

dhcpv6 duid

Function

The dhcpv6 duid command configures a DUID for the DHCPv6 device.

By default, the device generates a DUID based on the link-layer (LL) address.

Format

dhcpv6 duid { ll | llt | duid }

Parameters

Parameter

Description

Value

ll

Configures the device to generate a DUID based on the link-layer address (MAC address).

-

llt

Configures the device to generate a DUID based on the link-layer address (MAC address) plus time.

-

duid

Specifies the DUID of the device.

The value is a hexadecimal string with an even number (in the range of 8 to 28) of characters. The value contains only combinations of digits 0 to 9, uppercase letters A to F, and lowercase letters a to f.

Views

System view

Default Level

3: Management level

Usage Guidelines

A DUID identifies a DHCPv6 device. Each DHCPv6 server or client has a unique DUID. Servers use DUIDs to identify clients and clients use DUIDs to identify servers. When this command is run, a new DUID is stored in the :/dhcp/dhcp-duid.txt file of the storage device. You can run the display dhcpv6 duid command to check the DUID of the device.

Example

# Configure the device to generate a DUID based on the link-layer address.

<HUAWEI> system-view
[HUAWEI] dhcpv6 duid ll
Warning: The DHCP unique identifier should be globally-unique and stable. Are you sure to change it? [Y/N]y 
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >