[Dnsmasq-discuss] Separate dhcp ranges using dnsmasq

john doe johndoe65534 at mail.com
Tue May 21 10:42:45 BST 2019


On 5/21/2019 10:02 AM, Thomas Jensen wrote:
> Thomas Jensen <heylel.teomim at gmail.com>
> 9:49 AM (4 minutes ago)
> to dnsmasq-discuss
>
> I am new to dnsmasq, so excuse me if this is a trivial question :-)
>
>
> I'd like to have three separate ranges in my dnsmasq setup like this:
>
>
> dhcp-range=192.168.0.3,192.168.0.99,static,48h
>
> dhcp-range=192.168.0.100,192.168.0.199,48h
>
> dhcp-range=192.168.0.200,192.168.0.240,static,48h
>
>
> This will be used in conjunction with dhcp-host statements that utilize
> addresses in the two static ranges (1st and 3rd) whereas all others get
> assigned addresses out of the non-static range (2nd)
>
>
> They're all on the same interface (eth0).
>
>
> Is this doable? All the examples I've been able to find are about ranges on
> different subnets or interfaces.
>
>

According to (not tested):

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


dhcp-range:


"It is always allowed to have more than one --dhcp-range in a single
subnet."


Did you try your test case, it should work! :)

--
John Doe



More information about the Dnsmasq-discuss mailing list