Re: dhcp-client cleanup
- From: cga <cga2001@xxxxxxxxx>
- Date: Sat, 25 Feb 2006 21:47:11 -0500
Bit Twister wrote:
On Sat, 25 Feb 2006 19:39:58 -0500, cga wrote:
How can I use dhclient (or another tool) to force the expiration/renewal of my current dhcp lease..? Windows 98' provides this functionality via winipcfg but I could not find anything similar mentioned in the dhclient man page. The objective is to start afresh from a "clean" environment.
You could just delete the dhclient*.leases file, and restart the
network. For me it would be
rm /var/lib/dhcp/dhclient-eth1.leases
service network restart
hmm.. that would reset the client system to its original state but the dhcp server system.. depending on how it is configured would still retain the lease information.. and might refuse to give me another lease because it thinks I already have one (?) And since I have no access to my ISP's dhcp server configuration I cannot verify the above assumption.
Of course it might depend on what distribution you are running on.
Debian sarge and etch. The sarge system has never had any problems connecting. The etch system, otoh, practically never connects successfully.. Except that the other day I left it up overnight.. ran dhclient manually in the morning and immediately obtained a lease.. eth0 and the route table were correctly configured and I was able to go online. So my guess since I had changed nothing in my setup is that for some reason my isp's dhcp server having heard nothing from me for a number of hours decided to reclaim my lease.
This is all guesswork as I have really no knowledge of dhcp.. but I would imagine that the server would keep track of which machines/nic's he has already provided with and ip address and might would turn down a new request from a machine with a currently active lease..
And that would explain why I am practically never able to bring up the connection.
Does this make any sense..?
.
- Follow-Ups:
- Re: dhcp-client cleanup
- From: Bit Twister
- Re: dhcp-client cleanup
- References:
- dhcp-client cleanup
- From: cga
- Re: dhcp-client cleanup
- From: Bit Twister
- dhcp-client cleanup
- Prev by Date: Re: are online companies breaking password manager?
- Next by Date: Re: dhcp-client cleanup
- Previous by thread: Re: dhcp-client cleanup
- Next by thread: Re: dhcp-client cleanup
- Index(es):
Relevant Pages
|