Subject: Re: dhclient and backgrounding
To: Manuel Bouyer <bouyer@antioche.eu.org>
From: Steven M. Bellovin <smb@cs.columbia.edu>
List: tech-net
Date: 11/15/2006 10:51:51
On Wed, 15 Nov 2006 16:32:27 +0100, Manuel Bouyer <bouyer@antioche.eu.org>
wrote:

> On Wed, Nov 15, 2006 at 04:07:56PM +0100, Zafer Aydogan wrote:
> > hello list,
> > 
> > does dhclient do no backgrounding ?
> > I mean, if I turn on my computer (dhclient=yes) and forget to turn on
> > my switch, which is connected to my router, who has a dhcp server, I
> > do not get a lease when I turn it back on afterwards.
> > 
> > I thought, that dhclient would sit and wait until it notices the dhcp
> > server is back up and then requests a lease so that I can get an IP
> > Adresss, but nothing happens.
> > 
> > The dhclient process is still alive and the only way I know to
> > workaround this is to pkill dhclient and restart dhclient.
> > 
> > Am I missing something ?
> 
> >From what I remember dhclient finally gets an IP, but you have to wait several
> minutes (10 to 15 maybe). But this was several releases ago ...
> 
See the dhclient.conf man page -- you can change 'retry' (and some other
timer-related options) to change that behavior.

		--Steven M. Bellovin, http://www.cs.columbia.edu/~smb