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".
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. |
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/dhcp-client.options file. By default, the storage device needs to provide more than 80-byte storage space. You can run the more dhcp/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.