ip dhcp client hostname

Last Updated : May 11, 2021 |
Specifies the client host name for the DHCP client. Use no ip dhcp client hostname to restore the default value, which is the Branch Gateway’s hostname.
Prolog information

Syntax

[no] ip dhcp client hostname host-name

Parameters

Parameter
Description
Possible Values
Default Value
host-name
The host name
string, 1-80 bytes
The device hostname

User level

read-write

Context

interface: VLAN, FastEthernet

Example

To specify the client host name as Gateway1:
Gxxx-001(config-if:FastEthernet 10/3)#ip dhcp client hostname Gateway1