release dhcp

To immediately release the DHCP lease obtained for an IP address from a DHCP server and assigned to the specified interface, use the command release dhcp in Privileged EXEC Mode. The current lease assigned to that interface is terminated manually. The lease is terminated to reset the DHCP client which faces connectivity problem. The DHCP lease provided by the DHCP server represents the time interval till which the DHCP client can use the assigned IP address.

release dhcp

release dhcp
{ {cpu0 } { | vlan } { <vlan-id (1-4094)> } { | <interface-type> } { <interface-id>} } { }

Parameters

Parameter Type Description
cpu0   Enter to release the DHCP lease for the management interface.
vlan   Enter to configure release of the DHCP lease for a specified VLAN.
<vlan-id (1-4094)> Integer Enter a VLAN ID for the DHCP lease to be released. This is a unique value that represents the specific VLAN created. This value ranges from 1 to 4094.
<interface-type>   Enter to specify the type of interface for the DHCP lease to be released. The interface can be:
  • gigabitethernet – A version of LAN standard architecture that supports data transfer up to 1 Gigabit per second.
  • extreme-ethernet – A version of Ethernet that supports data transfer up to 10 Gigabits per second. This Ethernet supports only full duplex links.
<interface-id>   Enter to configure release of the DHCP lease for the specified interface identifier. This is a unique value that represents the specific interface. This value is a combination of slot number and port number separated by a slash. For example: 0/1 represents that the slot number is 0 and port number is 1

Mode

Privileged EXEC Mode

Prerequisites

This command executes successfully only if the VLAN interfaces and router ports are in BOUND state (that is, IP address is dynamically acquired from DHCP server and an active lease is bound to the interface). The port should have been configured as router port for dynamically acquiring an IP address from DHCP server.

Examples

iS5Comm# release dhcp vlan 1