ip dhcp-client enable

Enables DHCP client.
Syntax
ip dhcp-client enable
no ip dhcp-client enable
Modes

Global configuration mode

Interface configuration mode

Usage Guidelines

You can enable this command on a switch in global configuration mode. On routers, you can enable this command in interface configuration mode.

The no form of the command is not supported for Virtual Ethernet (VE) interfaces.

The no form of the command disables the DHCP client.

Examples

The following example enables the DHCP client for a switch.

device# configure terminal
device(config)# ip dhcp-client enable

The following example enables the DHCP client for a router.

device# configure terminal
device(config)# interface ethernet 1/1/1
device(config-if-e1000-1/1/1)# ip dhcp-client enable

On a router, enter the ip dhcp-client enable command to re-enable the DHCP client.

device(config-if-ve1)# ip dhcp-client enable
History
Release version Command history
08.0.61 Example for enabling DHCP client on VE was added.
09.0.00 The no form of the command is not supported for VE interfaces.