346 DHCP Management Interface Commands
release dhcp
Use the release dhcp command in Privileged EXEC mode to force the
DHCPv4 client to release a leased address.
Syntax
release dhcp
interface-id
Parameter Description
Default Configuration
This command has no default configuration.
Command Mode
Privileged EXEC
User Guidelines
The DHCP client sends a DHCP RELEASE mess age 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 Config) command on page 505 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:
Interface does not have a DHCP-originated address.
The release dhcp option is applicable only for routing interfaces and not for
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.
renew dhcp show dhcp lease
Parameter Description
interface-id Any valid VLAN interface. See Interface Naming Conv entions
for interface representation.
2CSPC4.XCT-SWUM2XX1.book Page 346 Monday, October 3, 2011 11:05 AM