The dhcp client client-id command configures an identifier for a DHCP client.
The undo dhcp client client-id command restores the default identifier of a DHCP client.
By default, the identifier of a DHCP client is the client's MAC address.
Parameter |
Description |
Value |
---|---|---|
client-id |
Specifies the identifier of a DHCP client. |
The value is a string of 2 to 64 case-sensitive characters without spaces. |
The dhcp client client-id command configures an identifier for a DHCP client. The identifier is encapsulated into a DHCP Request message. When a DHCP client requests an IP address from a DHCP server, the DHCP server obtains the identifier of the DHCP client and assigns an IP address to the DHCP client with the specified identifier.
# Set the identifier of the DHCP client to huawei_client on VLANIF100.
<HUAWEI> system-view [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] dhcp client client-id huawei_client
<HUAWEI> system-view [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] undo portswitch [HUAWEI-GigabitEthernet0/0/1] dhcp client client-id huawei_client