Date: Mon, 28 Jul 2003 11:41:11 -0700 (PDT) From: Nate Lawson <nate@root.org> To: Robert Watson <rwatson@FreeBSD.org> Cc: src-committers@FreeBSD.org Subject: Re: cvs commit: src/etc/defaults rc.conf src/etc/rc.d dhclient Message-ID: <20030728113909.C53096@root.org> In-Reply-To: <Pine.NEB.3.96L.1030728084636.56734D-100000@fledge.watson.org> References: <Pine.NEB.3.96L.1030728084636.56734D-100000@fledge.watson.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 28 Jul 2003, Robert Watson wrote: > On Mon, 28 Jul 2003, Martin Blapp wrote: > > > Forgive me for not having time to go read the dhclient details, but > > > unfortunately I'm a bit pressed for time this morning. I just wanted to > > > confirm that dhclient gives a "first reasonable try" if the link is up in > > > this situation, rather than immediately backgrounding, since some services > > > will behave poorly if they don't find IP addresses, etc. Ie., this > > > operates like the NFS mount background option: "If at first you don't > > > succeed, try again on your *own* time". > > > > > > The services I have in mind are, indeed, network file system mounting, > > > sandboxed named, sendmail, and third party applications that like to bind > > > each IP address manually rather than use INADDR_ANY. > > > > and natd (where I've fixed the rc script to work with the dhclient case) > > > > The problem here is that a box not connected to lan with dhcp hangs till > > you press CTRL C. > > Well, or a minute or two, but I agree that in the notebook disconnected > from a network case, that's not much fun. There is no reason to wait if there is no network link. If configuring via dhclient and no link on that interface, there is no way you are getting a lease, no matter how long you wait. It's better to go into the background if there is no link. If there is a link, the normal dhcp timeouts should be honored and dhclient should not allow booting to continue until it is done with the protocol. -Nate
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030728113909.C53096>