More than one DHCP ranges in the same network segment

I think you can generate via template-custom

mkdir -p /etc/e-smith/templates-custom/etc/dnsmasq.conf
cd /etc/e-smith/templates-custom/etc/dnsmasq.conf

vi 31dhcp

dhcp-range=LanAssignedToDHCPRange,First.IP.Of.Range,Last.IP,Of,Range,Subnet.Mask.Of.Range,LeasingTimeInSeconds

example:

dhcp-range=eth0,192.168.16.10,192.168.16.90,255.255.255.0,86400
dhcp-range=eht0,192.168.16.150,192.168.16.180,255.255.255.0,86400

save the file then

expand-template /etc/dnsmasq.conf

and restart the service

Reference:
http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html

Search for --dhcp-range parameter

http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2014q4/009016.html

1 Like