[Dnsmasq-discuss] Using dnsmasq to issue IP addresses based on MAC
address ranges
Jeff Croft
jeffc at truste.com
Sat Apr 18 00:31:20 BST 2009
Hello --
I'm using dnsmasq v2.41 to issue addresses in two different networks.
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.
I'm using the following config lines:
dhcp-range=net:vmiphys,172.16.1.50,172.16.200.250,255.255.0.0,12h
dhcp-range=net:vmivirt,172.17.0.50,172.17.200.250,255.255.0.0,12h
dhcp-host=*:*:*:*:*:*,net:vmiphys
dhcp-host=00:50:56:00:*:*,net:vmivirt
which I had hoped would do what I described above.
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:
DHCPDISCOVER(eth0) 169.254.34.228 00:50:56:00:00:d7 no address available
and the virtual machine doesn't get an IP address.
Any suggestions?
Thanks much for some great software.
Jeff Croft
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20090417/bf265d4e/attachment.htm
More information about the Dnsmasq-discuss
mailing list