<HTML>
<HEAD>
<TITLE>Using dnsmasq to issue IP addresses based on MAC address ranges</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hello --<BR>
<BR>
I’m using dnsmasq v2.41 to issue addresses in two different networks.<BR>
<BR>
What I want is for physical machines to be issued addresses in 172.16.0.0/16 and for VMware virtual machines to get 172.17.0.0/16 addresses. I’ve forced all the VMware instances to have MAC addresses which start with 00:50:56:00.<BR>
<BR>
I’m using the following config lines:<BR>
<BR>
dhcp-range=net:vmiphys,172.16.1.50,172.16.200.250,255.255.0.0,12h<BR>
dhcp-range=net:vmivirt,172.17.0.50,172.17.200.250,255.255.0.0,12h<BR>
dhcp-host=*:*:*:*:*:*,net:vmiphys<BR>
dhcp-host=00:50:56:00:*:*,net:vmivirt<BR>
<BR>
which I had hoped would do what I described above.<BR>
<BR>
What happens, however, is that any machine with a MAC address which does not match 00:50:56:00:*:* receives an address in the 172.16.0.0/16 network, but any machine matching 00:50:56:00:*:* causes dnsmasq to issue an error like this:<BR>
<BR>
DHCPDISCOVER(eth0) 169.254.34.228 00:50:56:00:00:d7 no address available<BR>
<BR>
and the virtual machine doesn’t get an IP address.<BR>
<BR>
Any suggestions?<BR>
<BR>
Thanks much for some great software.<BR>
<BR>
Jeff Croft<BR>
</SPAN></FONT>
</BODY>
</HTML>