ip dhcp

Syntax

ip dhcp

Description

Enables the DHCP client on the management interface enabling the interface to automatically obtain an IP address from a DHCP server on the network. By default, the DHCP client is enabled.

Command context

config-if-mgmt

Authority

Administrators or local user group members with execution rights for this command.

Examples

This example enables the DHCP client on the management interface.

switch(config)# interface mgmt
switch(config-if-mgmt)# ip dhcp
switch(config-if-mgmt)# no shutdown
If the interface is not enabled, you can enable it by entering the no shutdown command.