Administrator Guide

Layer 2 Switching Commands 328
Default Configuration
This command has no default configuration.
Command Mode
Privileged Exec
User Guidelines
The DHCP client sends a DHCP RELEASE message telling the DHCP
server that it no longer needs the IP address, and that the IP address can be
reassigned to another client. The interface method does not change and will
still be DHCP even after issuing this command. To lease an IP address again,
issue either the renew dhcp
interface-id
command below or
ip address dhcp
(Interface Configuration)
command on page 504 in interface mode. If the
IPv4 address on the interface was not assigned by DHCP, then the command
fails and displays the following error message:
The release dhcp option is applicable only for routing interfaces and not for
the Out-of-Band port. Use the
ip address (Out-of-Band)
none
command on
the Out-of-Band interface to clear a DHCP-acquired address.
Example
console#release dhcp vlan2
renew dhcp
Use the renew dhcp command in Privileged Exec mode to force the DHCP
client to immediately renew an IPv4 address lease.
Syntax
renew dhcp {
interface-id
| out-of-band}
interface-id
—Any valid routing interface. See Interface Naming
Conventions for interface representation.
out-of-band
—Keyword to identify the out-of-band interface. The DHCP
client renews the leased address on this interface.
Default Configuration
This command has no default configuration.
2CSNXXX_SWUM204.book Page 328 Monday, January 25, 2016 1:25 PM