One extreme workaround is to use the OpenBSD port of ISC dhcpd 3.1.0 (in the 4.3 ports repository )

If you do, you can declare custom option values symbolically, like this:

                option openbsd-install-script code 225 = text ;

and then later:

                option openbsd-install-script 
"http://www/config/custom-install.sh";;

You also need to make sure that your dhcp client is requesting the option values you care about, see /etc/dhclient.conf

In a recent email to [EMAIL PROTECTED], Nick Bender stated:

Note that if you use the stock dhcpd you need to be running a version built after 10-sep-2008 as there was a bug in dhcpd which caused unreliable handling
        of dhcp option numbers greater than 63.
So this might be related to your problem as well.

On Oct 9, 2008, at 11:38 AM, Beto wrote:

Hi,
I got a new machine to become my new server, so I installed OpenBSD 4.3
stable and all services thar run on the old machine.
The older one runs OpenBSD 4.2 stable upgraded from OpenBSD 4.1 stable, everything works fine including dhcpd that pass some special options that
says to System Imager Client  which server to search for.
On the new machine with the same configuration file, it does not work. The System Imager clients did not get the values, I think it is not passed. All
the default information are passed.
I recompiled again my userland to try to solve this, but it not works.

Below my configuration file:

#       $OpenBSD: dhcpd.conf,v 1.1 1998/08/19 04:25:45 form Exp $
#
# DHCP server options.
# See dhcpd.conf(5) and dhcpd(8) for more information.
#


       option  domain-name "ncd.org.br";
       option  impress-servers 192.168.1.252;
       option  time-servers 192.168.1.254;
       default-lease-time 86400;
       max-lease-time 90000;

       subnet 192.168.1.0 netmask 255.255.255.0 {
               deny unknown-clients;
               option  domain-name-servers 192.168.1.254, 172.20.2.31,
172.20.2.126, 172.20.2.10;
               server-identifier 192.168.1.252;
               option routers 192.168.1.254;

               # Servidor System Imager
               option  option-100 "192.168.1.252";
               option  option-140 "192.168.1.252";
               option  option-144 "n";

               next-server 192.168.1.252;
               filename  "pxelinux.bin";

               range 192.168.1.1 192.168.1.24;
               range 192.168.1.251 192.168.1.251;

               #Clientes

               host ncd01 { hardware ethernet 00:0B:E0:J6:1C:FE;
                       fixed-address 192.168.1.1;
                       option host-name "ncd01";}

               .
               .
               .
           (Other clients)
   }


Any idea , how to solve this?
Thanks in advance.

Reply via email to