< Home

dhcp client class-id (system view)

Function

The dhcp client class-id command is used to set the Option60 field in the DHCP request packet sent by the DHCP client.

The undo dhcp client class-id command is used to restore the default value of the Option60 field.

By default, the default value of the Option60 field depends on the device type, which is "huawei Device Model".

Format

dhcp client class-id class-id

undo dhcp client class-id

Parameters

Parameter Description Value

class-id

Indicates the value of the Option60 field.

The value is a string of 1 to 64 case-sensitive characters.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

The DHCP server identifies the devices according to the Option60 field in the DHCP request packet. You can run the dhcp client class-id class-id command to customize the Option60 field in the DHCP request packet sent from the DHCP client.

Configuration information of the Option60 field is saved in the storage device:/dhcp-client.options file. By default, the storage device needs to provide more than 80-byte storage space. You can run the more dhcp-client.options command in the user view to check configuration information of the Option60 field.

After you run the dhcp client class-id class-id command in the system view, the device that functions as the DHCP client fills the set Option60 in the DHCP request packet sent from all of the interfaces.

Example

# Set the class-ID of a DHCP client to huawei.

<HUAWEI> system-view
[HUAWEI] dhcp client class-id huawei
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >