netbooting Apple Xserves, not working since dhcp version 3.0pl1-9a

Glenn Satchell Glenn.Satchell at uniq.com.au
Thu Aug 16 14:52:46 UTC 2007


The undocumented change is to the source code for 3.0pl1. Do you have
or can you get the source for that version (with the changes). Look in
the file common/tables.c amd find "struct option dhcp_options". Lookin
this table for the mac-xxx commands. Make a note of the option number,
eg:

static struct option dhcp_options[] = {
        { "subnet-mask", "I",                   &dhcp_universe,   1, 1 },
        { "time-offset", "l",                   &dhcp_universe,   2, 1 },
        { "routers", "IA",                      &dhcp_universe,   3, 1 },

routers is option 3. For newer version of dhcpd you don't need to hack
the source, you can add the definitions in dhcpd.conf. Say the option
for mac-version is 125. In your dhcpd.conf create an entry:

option mac-version code 125 = integer 8;
option mac-version 0;

The details are in the dhcp-options man page, search for DEFINING NEW OPTIONS.

If you don't have access to the hacked source, then all is not lost.
You could capture some dhcp network traffic and get the option numbers
that way.  Same deal as far as adding the entries to dhcpd.conf.

regards,
-glenn

>Date: Thu, 16 Aug 2007 08:26:28 -0600
>From: Aaron Johnson <ajohnson at terrasoftsolutions.com>
>To: dhcp-users at isc.org
>Subject: netbooting Apple Xserves, not working since dhcp version 3.0pl1-9a
>
>All,
>I have several Apple PPC64 Xserves I have been able to netboot with dhcp 
>version 3.0pl1-9a but with any new version I try dhcp won't even start  
>I get the following error in /var/log/messages (this was with dhcp 
>version 3.0.3-28)
>
>Aug 16 14:21:52 localhost dhcpd: dhcpd startup failed
>Aug 16 14:21:59 localhost dhcpd: /etc/dhcpd.conf line 5: unknown option 
>dhcp.mac-version
>Aug 16 14:21:59 localhost dhcpd: option mac-version 0:
>Aug 16 14:21:59 localhost dhcpd:        ^
>Aug 16 14:21:59 localhost dhcpd: /etc/dhcpd.conf line 6: unknown option 
>dhcp.mac-user-name
>Aug 16 14:21:59 localhost dhcpd: option mac-user-name "netboot"
>Aug 16 14:21:59 localhost dhcpd:        ^
>Aug 16 14:21:59 localhost dhcpd: Configuration file errors encountered 
>-- exiting
>
>
>The relavent psrt of my /etc/dhcp.conf file is:
>
>allow bootp;
>ddns-update-style interim;
>default-lease-time 30000000000;
>option mac-version 0:0:0:0;
>option mac-user-name "netboot";
>
>subnet 192.168.200.0 netmask 255.255.255.0 {
>option routers                  192.168.200.172;
>option subnet-mask              255.255.255.0;
>filename                        "yhpc-ppc64.img";
>next-server                       192.168.200.172;
>allow bootp;
>range dynamic-bootp             192.168.200.100 192.168.200.199;
>}
>
>
>
>I have also tried upgrading to dhcp 3.0.6, 3.1.0, and 4.0.0 without any 
>success.  I have looking through all the man pages for all version and 
>the change log neither one says anything about needing to change the 
>"option mac-..." lines for the newer versions, I was hoping someone 
>could help me figure out this un-documented change.
>
>Aaron
>


More information about the dhcp-users mailing list