2.1.12. ip dhcp

Syntax

ip dhcp

no ip dhcp

Parameter

Default

Default DHCP client is disabled.

Mode

Global Configuration

Usage

Use ip dhcp command to enabled dhcp client to get IP address from remote DHCP server. Use “no ip dhcp” command to disabled dhcp client and use static ip address.

Example

This example shows how to enable dhcp client.

Switch(config)# ip dhcp

This example shows how to show current dhcp client state of the switch.

Switch# show ip dhcp
DHCP Status : enabled