From owner-freebsd-current Wed Aug 14 0: 3:59 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0156537B400 for ; Wed, 14 Aug 2002 00:03:57 -0700 (PDT) Received: from vbook.express.ru (asplinux.ru [195.133.213.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1615943E6E for ; Wed, 14 Aug 2002 00:03:56 -0700 (PDT) (envelope-from vova@express.ru) Received: from vova by vbook.express.ru with local (Exim 3.36 #1) id 17esBy-0000Fx-00; Wed, 14 Aug 2002 11:03:42 +0400 Subject: Re: rcNG and dhcp From: "Vladimir B. " Grebenschikov To: Mike Makonnen Cc: "current@freebsd.org" In-Reply-To: <20020813223451.0e39200b.makonnen@pacbell.net> References: <1029141620.800.14.camel@vbook.express.ru> <20020813090036.090538bf.makonnen@pacbell.net> <1029256599.741.18.camel@vbook.express.ru> <20020813223451.0e39200b.makonnen@pacbell.net> Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable X-Mailer: Ximian Evolution 1.0.7 Date: 14 Aug 2002 11:03:42 +0400 Message-Id: <1029308622.736.18.camel@vbook.express.ru> Mime-Version: 1.0 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG =F7 Wed, 14.08.2002, =D7 09:34, Mike Makonnen =CE=C1=D0=C9=D3=C1=CC: > On Tue, 13 Aug 2002 20:36:39 +0400 > "Vladimir B. Grebenschikov" wrote: >=20 > >=20 > > > Yes, there is a simple solution: adjust the timeout in dhclient.conf. > >=20 > > It is not solution - it is workaround=20 > > - 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 ge= t > > very long timeout while any of my apps will try to reach network > > instead of instant 'no route to host' > > >=20 > Then, bring the interface down manually (it's even easier now that > you can insert your own script in the rc boot process). I am not being > flippant. Of course I can patch my rc.d/network1 manually or/and add number of "smart" scripts, but I simply wants to share solution with other people. > Your suggestion, while it solves your problem, would create a problem=20 > for others (re-read the quote). Why it will create problems for others ? You need explicitly ask for feature: ifconfig_fxp0=3D"dhcp-if-carrier" if you will use old-style: ifconfig_fxp0=3D"dhcp" nothing will changed in dhcp behavior My personal opinion - best choice add key to dhclient - which do not ever try to send requests or record leases in case of no carrier on media and do not stop boot process in this case. Some times ago I have patch dhclient for this, but I am not satisfied with the patch, so do not send it to anybody. =20 > Cheers, > Mike Makonnen >=20 --=20 Vladimir B. Grebenschikov vova@sw.ru, SWsoft, Inc. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message