Pool/Scope or subnet with PXE boot options?
Ashmath Khan
hashmat.email at gmail.com
Wed Oct 14 13:42:37 UTC 2009
Hello,
I have a similar one:
class "rule1" {
match if substring (option dhcp-client-identifier, 0, 5) = 01:00:19:7d:72;
}
subnet 192.168.1.0 netmask 255.255.255.0 {
pool {
option time-offset -12345;
option boot-size 65000;
range 192.168.1.66;
allow members of "rule1";
}
default-lease-time 86500;
max-lease-time 86500;
option routers 192.168.1.254;
option domain-name-servers 192.168.1.254;
}
=> The issue here is even though i see a dhcp offer message, it doesn't have
time-offset and boot-size options in it. what is wrong here ? and what is
the correct way to have the conf file ? Actually i want option time-offset
and boot-size to be sent as part of offer message. I do see routers and
domain-name-servers as part of offer message.
thanks
Ashmath
On Fri, Oct 9, 2009 at 8:58 PM, Jason Gerfen <jason.gerfen at scl.utah.edu>wrote:
> Do any of you currently utilize this feature in your dhcpd.conf? If so
> could I perhaps get a syntax example?
>
> The reason I am asking is because I currently maintain a project over at
> sourceforge.net that allows for administrators to manage their dhcpd.conf
> through a series of forms under an authenticated website (
> http://phpdhcpadmin.sourceforge.net) and was recently asked to incorporate
> this functionality outside of the "group" definition for static hosts.
>
> My assumption for a correct syntax would be something like the two
> following examples for subnet declarations or for pool declarations:
>
> subnet 192.168.15.0 netmask 255.255.255.0 {
> option domain-name-servers 197.168.15.2, 197.168.18.2;
> option routers 192.168.15.1;
> option ip-forwarding off;
> filename "pxelinux.0";
> next-server 192.168.15.3;
> }
>
> pool {
> option domain-name-servers 192.168.15.2, 192.168.16.2;
> option routers 192.168.15.1;
> range 192.168.15.10 192.168.15.255;
> option ip-forwarding on;
> option broadcast-address 192.168.15.0;
> option ntp-servers time.domain.com;
> default-lease-time 1800;
> min-lease-time 700;
> max-lease-time 3200;
> filename "pxelinux.0";
> next-server 192.168.15.3;
> }
>
> Any help and specifically examples are appreciated.
>
>
> Bruce Hudson wrote:
>
>>
>>
>>> a. How does a client request those options?
>>> b. I thought all client within the defined scope would receive those
>>> options.
>>>
>>>
>>
>> Client requests include a "parameter request list" to ask for the
>> options it wants and knows how to deal with. Since it is possible for
>> options to run out of room, the server provides those options in the
>> order requested. It can provide more options if required but this will
>> normally require special configuration.
>>
>> Of course, the "next-server" and "filename" options are fixed fields
>> rather than using vendor space so this does not apply to them
>> specifically.
>> They should always be included. In general though, as Glen said, a client
>> is only given the options requested.
>>
>>
>>
>>
>>> c. Wouldn't any client act on the next-server option?
>>>
>>>
>>
>> How a client responds to anything is largely undefined. Certainly
>> including a "next-server" will not force a client to run something like
>> tftp to download a file on its own; at least not in general. --
>> Bruce A. Hudson | Bruce.Hudson at Dal.CA
>> ITS, Networks and Systems |
>> Dalhousie University |
>> Halifax, Nova Scotia, Canada | (902) 494-3405
>> _______________________________________________
>> dhcp-users mailing list
>> dhcp-users at lists.isc.org
>> https://lists.isc.org/mailman/listinfo/dhcp-users
>>
>>
>
>
> --
> Jason Gerfen
> Systems Administration/Web application development
> jason.gerfen at scl.utah.edu
>
> Marriott Library
> Lab Systems PC
> 295 South 1500 East
> Salt Lake City, Utah 84112-0806
> Ext 5-9810
>
>
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20091014/5532de15/attachment-0001.html>
More information about the dhcp-users
mailing list