DNSmasq - assign dhcp-range for mac addresses?

busch09

Regular Contributor
Hi,

I want to assign my virtual machines to a certain dhcp range.
I have been playing around with dnsmasq.conf.add but cant get it to work.

This is what i took from the dnsmasq man page:

dhcp-host=00:15:23:*:*:*,net:VM
dhcp-host=2a:11:11:*:*:*,net:VM
dhcp-range=red,192.168.0.50,192.168.0.150
Does anyone know how to do this properly?

thans
chris
 

PeterV

Regular Contributor
Hi,

I want to assign my virtual machines to a certain dhcp range.
I have been playing around with dnsmasq.conf.add but cant get it to work.

This is what i took from the dnsmasq man page:

dhcp-host=00:15:23:*:*:*,net:VM
dhcp-host=2a:11:11:*:*:*,net:VM
dhcp-range=red,192.168.0.50,192.168.0.150
Does anyone know how to do this properly?

thans
chris
I don't tested it, but, as I can understand, you have to tag the hosts, and after apply the range on appropriate tag
Similar like:
dhcp-host=00:15:23:*:*:*,set:vmnet
dhcp-range=tag:vmnet,192.168.0.50,192.168.0.150
 

busch09

Regular Contributor
Solved it:

dhcp-host=02:11:32:*:*:*,2m,set:vmnet
dhcp-host=00:15:5D:*:*:*,2m,set:vmnet
dhcp-host=9C:8E:CD:*:*:*,2m,set:ipcam
dhcp-host=60:38:E0:*:*:*,2m,set:wemo

dhcp-range=tag:lan,192.168.1.200,192.168.1.254,255.255.255.0,2m
dhcp-range=tag:lankids,192.168.1.220,192.168.1.229,255.255.255.0,2m
dhcp-range=tag:vmnet,192.168.1.130,192.168.1.160,255.255.255.0,2m
dhcp-range=tag:ipcam,192.168.1.170,192.168.1.199,255.255.255.0,2m
dhcp-range=tag:wemo,192.168.1.20,192.168.1.39,255.255.255.0,2m
 

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top