Administrator Guide

Layer 2 Switching Commands 504
ip address dhcp (Interface Configuration)
Use the ip address dhcp command in Interface (VLAN) Configuration mode
to enable the DHCPv4 client on an interface.
Syntax
ip address dhcp
no ip address dhcp
Default Configuration
DHCPv4 is disabled by default on routing interfaces.
Command Mode
Interface (VLAN) Configuration mode
User Guidelines
This command only applies to routing interfaces. When DHCP is enabled on
a routing interface, the system automatically deletes all manually configured
IPv4 addresses on the interface.
The command
no ip address
removes the interface’s primary address
(Manual/DHCP) including the secondary addresses, if configured, and sets
the Interface method to
None
.
The command
no ip address dhcp
removes the interface’s primary address
only if configured through DHCP and sets the interface method to
None
.
It does not remove a manually configured address.
In addition to leasing an IP address and subnet mask, the DHCP client may
learn the following parameters from a DHCP server:
The IPv4 address of a default gateway. If the device learns different default
gateways on different interfaces, the system uses the first default gateway
learned. The system installs a default route in the routing table, with the
default gateway’s address as the next hop address. This default route has a
preference of 254.
The IPv4 address of a DNS server. The DNS client stores each DNS server
address in its server list.
2CSNXXX_SWUM204.book Page 504 Monday, January 25, 2016 1:25 PM