Releasing and renewing a DHCP lease
To release or renew a DHCP lease for an interface:
Use the release dhcp command to release a DHCP lease for an interface. This
●
effectively releases the client IP address, and no IP address is allocated to the specified
interface.
G350-001(super)# release dhcp FastEthernet 10/2
Done!
Use the renew dhcp command to renew a DHCP lease for an interface. This is
●
effectively a request to renew an existing IP address, or the start of a new process of
allocating a new IP address.
G350-001(super)# renew dhcp FastEthernet 10/2
Done!
A message appears displaying the IP address and mask assigned by the DHCP server:
Interface FastEthernet 10/2 assigned DHCP address 193.172.104.161, mask
255.255.255.0
Maintaining DHCP client
You can use the following show commands to display the DHCP client configuration:
Use the show ip dhcp-client command to show the configuration of the DHCP
●
client.
Use the show ip dhcp-client statistics command to show the DHCP client
●
statistics counters.
Use the clear ip dhcp-client statistics command to clear the DHCP client
●
statistics counters.
Configuring DHCP client
Issue 1.1 June 2005
99