Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Sep 1999 16:16:05 -0700
From:      "David O'Brien" <obrien@NUXI.com>
To:        Mike Smith <mike@smith.net.au>
Cc:        config@FreeBSD.ORG, small@FreeBSD.ORG
Subject:   Re: Odd idea
Message-ID:  <19990903161605.B55391@dragon.nuxi.com>
In-Reply-To: <199909032244.PAA01768@dingo.cdrom.com>
References:  <19990903153932.A55391@dragon.nuxi.com> <199909032244.PAA01768@dingo.cdrom.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990903161605.B55391>