ip dhcp

This topic explains the commands that enable or disable the DHCP client for receiving an IP address.

Syntax

CODE
ip dhcp
no ip dhcp

Parameter

None.

Default

The DHCP client is disabled.

Mode

Global Configuration

Usage

Use the ip dhcp command to enable the DHCP client to let the switch receive an IP address from a DHCP server.

Use the no ip dhcp command to disable the DHCP client so that you can set a static IP address.

Example

This example shows how to enable the DHCP client:

CODE
Switch(config)# ip dhcp