From owner-freebsd-config Fri Sep 3 16:16:50 1999 Delivered-To: freebsd-config@freebsd.org Received: from relay.nuxi.com (nuxi.cs.ucdavis.edu [169.237.7.38]) by hub.freebsd.org (Postfix) with ESMTP id CA7CF14BE4; Fri, 3 Sep 1999 16:16:42 -0700 (PDT) (envelope-from obrien@NUXI.com) Received: from dragon.nuxi.com (iras-3-24.ucdavis.edu [169.237.17.24]) by relay.nuxi.com (8.9.3/8.9.3) with ESMTP id QAA48626; Fri, 3 Sep 1999 16:16:15 -0700 (PDT) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.9.3/8.9.1) id QAA55735; Fri, 3 Sep 1999 16:16:05 -0700 (PDT) (envelope-from obrien) Date: Fri, 3 Sep 1999 16:16:05 -0700 From: "David O'Brien" To: Mike Smith Cc: config@FreeBSD.ORG, small@FreeBSD.ORG Subject: Re: Odd idea Message-ID: <19990903161605.B55391@dragon.nuxi.com> Reply-To: obrien@NUXI.com References: <19990903153932.A55391@dragon.nuxi.com> <199909032244.PAA01768@dingo.cdrom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre1i In-Reply-To: <199909032244.PAA01768@dingo.cdrom.com> X-Operating-System: FreeBSD 4.0-CURRENT Organization: The NUXI BSD group X-PGP-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Keyid: 34F9F9D5 Sender: owner-freebsd-config@FreeBSD.ORG Precedence: bulk > At least in theory if the loader is able to pull the DHCP config off, > it can pass the relevant lease details on to the kernel, which can be > used to seed dhclient. Actually you wouldn't pass them to the kernel (which knows nothing of DHCP). I think it would be better to just configure things for normal DHCP and let ``dhclient'' request a lease in the normal way. I can't think of how to start ``dhclient'' and keep it from asking for a new lease (which is what you would need to do here). While you could pass the data from the loader into /var/db/dhclient.leases. This file is used if `dhclient' can't get a response from the DHCP server. lease { interface "fxp0"; fixed-address 169.237.7.195; option subnet-mask 255.255.255.0; option routers 169.237.7.254; option domain-name-servers 169.237.250.250; option host-name "erebus.cs.ucdavis.edur"; option domain-name "cs.ucdavis.edu"; option broadcast-address 169.237.7.255; option dhcp-lease-time 600; option dhcp-message-type 5; option dhcp-server-identifier 169.237.7.38; renew 3 1999/8/11 02:10:40; rebind 3 1999/8/11 02:14:25; expire 3 1999/8/11 02:15:40; } > For now, suffice to say that I expect to add DHCP if for no other > reason than that's all that PXE supports. If that's what they do, my would be that they query to get the initial data, and then let the OS do its normal DHCP client processing. If so then this makes your job easier as you don't have to worry about passing the data out of the loader. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-config" in the body of the message