The dhcp client class-id command sets the Option60 field in the DHCP request packet sent by the DHCP client.
The undo dhcp client class-id command deletes the configured Option60 field in the DHCP request packet sent by the DHCP client.
By default, no Option60 field is configured.
Parameter | Description | Value |
---|---|---|
class-id |
Indicates the value of the Option60 field. |
The value is a string of 1 to 64 case-sensitive characters. |
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.
After you run the dhcp client class-id class-id command in the VLANIF interface view, the device that functions as the DHCP client fills the set Option60 in the DHCP request packet on the VLANIF interface.
# Set the class-id of a DHCP client to huawei on VLANIF100.
<HUAWEI> system-view [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] dhcp client class-id huawei
# Set the class-id of a DHCP client to huawei on GE0/0/1.
<HUAWEI> system-view [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] undo portswitch [HUAWEI-GigabitEthernet0/0/1] dhcp client class-id huawei