[Dnsmasq-discuss] Using dnsmasq to issue IP addresses based on MAC address ranges

richardvoigt at gmail.com richardvoigt at gmail.com
Sat Apr 18 02:26:50 BST 2009


Does the dnsmasq host OS have an address in the 172.17.0.0 range statically
configured on the interface where the requests arrive?

On Fri, Apr 17, 2009 at 11:31 PM, Jeff Croft <jeffc at truste.com> wrote:

>  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/16addresses. 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/16network, 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
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20090418/34759f9d/attachment.htm


More information about the Dnsmasq-discuss mailing list