ip address dhcp
To acquire an IP address on an interface from the DHCP, use the ip address dhcpcommand in interface
configuration mode. To remove any address that was acquired, use the no form of this command.
ip address dhcp [client-id interface-type number] [hostname hostname]
no ip address dhcp [client-id interface-type number] [hostname hostname]
Syntax Description
(Optional) Specifies the client identifier. By default,
the client identifier is an ASCII value. The client-id
interface-type numberoption sets the client identifier
to the hexadecimal MAC address of the named
interface.
client-id
(Optional) Interface type. For more information, use
the question mark (?) online help function.
interface-type
(Optional) Interface or subinterface number. For more
information about the numbering syntax for your
networking device, use the question mark (?) online
help function.
number
(Optional) Specifies the hostname.hostname
(Optional) Name of the host to be placed in the DHCP
option 12 field. This name need not be the same as
the hostname entered in global configuration mode.
hostname
Command Default
The hostname is the globally configured hostname of the device. The client identifier is an ASCII value.
Command Modes
Interface configuration (config-if)
Command History
ModificationRelease
This command was introduced.12.1(2)T
This command was modified. The client-idkeyword and interface-type
numberargument were added.
12.1(3)T
This command was modified. The hostnamekeyword and hostnameargument
were added. The behavior of the client-id interface-type numberoption changed.
See the “Usage Guidelines” section for details.
12.2(3)
Command Reference, Cisco IOS XE Everest 16.5.1a (Catalyst 3650 Switches)
166
ip address dhcp