clear ip dhcp bindings

Unanswered Question
Mar 18th, 2009
User Badges:

"clear ip dhcp binding a.b.c.d-Clears an automatic address binding from the DHCP server database"



does this force the host to lose its IP

address and request a new ip via dhcp?



  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 4.5 (2 ratings)
Loading.
nygenxny123 Thu, 03/19/2009 - 09:12
User Badges:

really?


I issued a


clear ip dhcp binding *


command and i was still able to

ping hosts who learned their ip's from dhcp

Leonardo Oliveira Tue, 06/15/2010 - 08:23
User Badges:
  • Silver, 250 points or more
  • Events Top Contributors,

    External, 2014

/* Style Definitions */ table.MsoNormalTable {mso-style-name:"Tabela normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;}

Router# clear ip dhcp binding {address | *}

Deletes an automatic address binding from the DHCP database. Specifying the address argument clears the automatic binding for a specific (client) IP address, whereas specifying an asterisk (*) clears all automatic bindings.

Edison Ortiz Tue, 06/15/2010 - 09:46
User Badges:
  • Super Bronze, 10000 points or more
  • Hall of Fame,

    Founding Member

It will clear the dynamic bindings at the server but the server won't inform the client to clear its IP Address. To clear the IP address at the client, you must issue IPCONFIG /Release followed by IPCONFIG /Renew (if running a Windows Machine).


Regards,


Edison

pauldaniels Thu, 12/08/2011 - 10:43
User Badges:

Would it be correct to say that performing a shut, no shut on the interface would cause the client to lose its address and need to send a new dhcp request?

Or would the client (a Windows machine, for example) be able to continue using the old lease?

Geoff Griffin Thu, 06/05/2014 - 18:30
User Badges:

Better late than never.

 

I had an issue just today whereas the dns servers that we point to were changed, I updated the static DNS on the router (and the dhcp pools) and was forced to clear the client DHCP lease.

The command to clear the client leases is:

clear ip dhcp pool <NAME> binding *

Hope this helps anyone with the same problem.

 

- Geoff

 

gondelach Wed, 06/14/2017 - 05:35
User Badges:

No it doesn't. The command is for loosing the bindings, the clients don't know and you have to wait for a new dhcp packet from the client.


I was looking how to do a new dhcp request from the cisco itself, so when one of the cisco interfaces is configured as a dhcp client.

Then this is what you need, from enable mode just type:

release dhcp Fa0/1

renew dhcp Fa0/1

where Fa0/1 should be replaced with your interface.


A shut and no shut of the interface will have the same affect.


Did you still need the answer after 8 years? ;-)


Actions

This Discussion