[Dnsmasq-discuss] converting ISC dhcpd.conf to dnsmasq

Michael michael at kmaclub.com
Mon May 12 16:45:13 UTC 2014


Hello,

i am trying to convert my existing isc dhcp service to dnsmasq.

The only issue I am having is with netbooting.

For isc dhcp, I have a few entries like:
host mythbed {
         hardware ethernet bc:ee:7b:25:3b:15;
         fixed-address mythbed;
         if exists user-class and option user-class = "iPXE" {
                 #filename "http://minimyth/ipxe/mythbed";
                 filename "http://minimyth2/conf/mythbed/mythbed.ipxe";
         } else{
                 filename "ipxe.pxe";
         }
         default-lease-time 604800;
         max-lease-time 1209600;
}
host mythliv {
         hardware ethernet 38:60:77:9c:6b:1d;
         fixed-address mythliv;
         if exists user-class and option user-class = "iPXE" {
                 filename "http://minimyth2/conf/mythliv/mythliv.ipxe";
         } else {
                 filename "ipxe.pxe";
         }
}

I have been trying to translate this into dnsmasq, but not having much luck.

Something like this will let one host boot:

dhcp-match=set:ipxe,175 # iPXE sends a 175 option
dhcp-host=bc:ee:7b:25:3b:15,mythbed
dhcp-boot=tag:!ipxe,ipxe.pxe
dhcp-boot=tag:ipxe,http://minimyth2/conf/mythbed/mythbed.ipxe

But adding:
dhcp-host=bc:ee:7b:25:3b:15,mythbed
dhcp-boot=tag:!ipxe,ipxe.pxe
dhcp-boot=tag:ipxe,http://minimyth2/conf/mythbed/mythbed.ipxe


causes the options for the first to get overwritten.

Could someone give me an example of how to only supply  pxe options 
requested, if it is a certain host/mac, boot ipxe the first time, and 
then pass a URL to ipxe on the next request?

I tried using multiple tags but either that isn't allowed or I didn't 
use them correctly.

Any help would be much appreciated.

Michael




More information about the Dnsmasq-discuss mailing list