ip address dhcp

Last Updated : May 10, 2021 |

Enables IP address negotiation using DHCP. Use no ip address dhcp to disable IP address negotiation using DHCP.

The ip address dhcp command can be used on FastEthernet and VLAN interfaces.

You cannot configure both ip address dhcp and keepalive-track (object tracking) on the WAN FastEthernet interface. You cannot configure both ip address dhcp and keepalive-icmp (extended keepalive) on the WAN FastEthernet interface. You cannot configure both ip address dhcp and ip address negotiated (PPP/IPCP address negotiation) on the WAN FastEthernet interface.

You can run ip address dhcp as many times as desired to re-initiate DHCP address negotiation. Whenever you change the value of a DHCP client parameter (such as client-id, client hostname), run ip address dhcp again to re-initiate DHCP address negotiation using the new values.

Syntax

[no] ip address dhcp

User level

read-write

Context

interface: VLAN, FastEthernet (L2-L3)

Example

To enable IP address negotiation via DHCP:

Gxxx-001(config-if:FastEthernet )#ip address dhcp