χ Tue, 13.08.2002, Χ 20:00, Mike Makonnen ΞΑΠΙΣΑΜ: > On Mon, 12 Aug 2002 12:40:20 +0400 > "Vladimir B. Grebenschikov" <[EMAIL PROTECTED]> wrote: > > > > > Hi > > > > There is patch to teach rcNG do not try dhcp on not-connected ethernet. > > > > simply put > > ifconfig_fxp0="dhcp-if-carrier" > > into rc.conf > > > > It will be interested to somebody > > > > Theoretically there are another solution for problem - add new key to > > dhclient - check interface media before broadcasting. > > Yes, there is a simple solution: adjust the timeout in dhclient.conf.
It is not solution - it is workaround - I do not wand any dhcp activity if I have no media (say in car) And dhclient in case of failure of detecting network address will install lask seen one, with last seen default gateway and I will get very long timeout while any of my apps will try to reach network instead of instant 'no route to host' > I will quote David Malone from PR conf/38559: > <<<< > I would have said that it would be a bug not to do DHCP if the > interface has been configured for it and might upset people who > want to be able to plug the network cable in at a more leasurely > pace when they boot their laptops. > > It also means that dhclient won't be able to use a lease listed in > its lease file, even if that lease is valid and the hub/switch/access > point you're connected to happens to be temporally down or out of > range. > > I'd suggest that you try reducing the timeouts if the long timeout > isn't suitable for your setup. See the timeing options in dhclient.conf > man page. > >>>> > > > Cheers, > Mike. > > > > > -- > > Vladimir B. Grebenschikov > > [EMAIL PROTECTED], SWsoft, Inc. > > -- Vladimir B. Grebenschikov [EMAIL PROTECTED], SWsoft, Inc. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message