Cisco Small Business 300 1.1 Series Administration Manual page 479

Managed switch
Table of Contents

Advertisement

IP Addressing Commands
78-20269-01 Command Line Interface Reference Guide
Syntax
ip address dhcp
no ip address dhcp
Parameters
No parameters
Command Mode
Interface Configuration (Ethernet, VLAN, Port-channel) mode. It cannot be
configured for a range of interfaces (range context).
User Guidelines
The ip address dhcp command allows any interface to dynamically learn its IP
address by using the DHCP protocol.
DHCP client configuration on an interface implicitly removes the static IP address
configuration on the interface.
If the device is configured to obtain its IP address from a DHCP server, it sends a
DHCPDISCOVER message to provide information about itself to the DHCP server
on the network.
If the ip address dhcp command is used with or without the optional keyword, the
DHCP option 12 field (host name option) is included in the DISCOVER message. By
default, the host name specified in the option 12 field is the globally configured
device host name.
The no ip address dhcp command releases any IP address that was acquired, and
sends a DHCPRELEASE message.
Example
The following example acquires an IP address for gi16 from DHCP.
Console(config)#
interface gi16
Console(config-if)#
ip address dhcp
35
480

Advertisement

Table of Contents
loading

Table of Contents