Re: dhcp-client cleanup



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..?
.



Relevant Pages

  • Re: Cant change my internal and external ip addresses
    ... > Renew means renew the lease, the IP address will not necessarily change. ... I tough that ipconfig /renew would just give me a brand new ip ... This is because the dhcp server will assign the firt available ip ...
    (comp.security.firewalls)
  • Re: dhcp-client cleanup
    ... The client normally doesn't release the current lease as it is not ... The -r flag explicitly releases the current lease, ... even a cursory glance at the output of "strings $(which dhclient)" did not provide a clue as to what this thing is.. ... they are used until either they expire or the DHCP server ...
    (comp.os.linux.networking)
  • Re: dhclient in 6.0
    ... Not really, no, except when DHCP options appear to turn off IPv4LL, or ... I think it's pretty obvious you have a rogue client ... if there was a prior lease matching the ... Ironically, ISC DHCP was built from this mindset, from what I read. ...
    (freebsd-stable)
  • RE: Random DHCP disconnects
    ... Is the 192.168.1.2 the IP Address that you client machine is requesting. ... The message indicates that the DHCP does not like this lease request by the ... Force the NIC on the DHCP Server to a specific Duplex and Speed. ...
    (microsoft.public.windows.server.networking)
  • Re: dhclient in 6.0
    ... if no lease can be obtained. ... I think it's pretty obvious you have a rogue client ... machine in the DHCP dynamic pool range for whatever reasons... ... currently exist any unbounded buffer utilizations. ...
    (freebsd-stable)