[Dnsmasq-discuss] dnsmasq dhcp range

Lindgren Fredrik Fredrik.Lindgren at tieto.com
Fri May 18 14:22:13 BST 2018


Hi Yuki,


I don't want it to share all possible ip's (0.0.0.0/0) but rather share ip's from range set on interface.


Example:

dnsmasq.conf contains "interface=eth0"

eth0: inet 192.168.1.1/24

Then it would default to dhcp-range 192.168.1.2-192.168.1.254


This without setting the dhcp-range parameters in the config file.


Br,

Fredrik


________________________________
Från: Yuki Nisiwaki <uckey.1067 at gmail.com>
Skickat: den 18 maj 2018 15:15
Till: Lindgren Fredrik
Kopia: dnsmasq-discuss at lists.thekelleys.org.uk
Ämne: Re: [Dnsmasq-discuss] dnsmasq dhcp range

Hi

I was the one who was trying to do but actually there is no magic code to specify full range but you can use multiple /1 dhcp-range 128.0.0.0/1<http://128.0.0.0/1> and 0.0.0.0/1<http://0.0.0.0/1> to achieve same thing.

Regards

Yuki Nishiwaki

On Fri, May 18, 2018 at 21:41 Lindgren Fredrik <Fredrik.Lindgren at tieto.com<mailto:Fredrik.Lindgren at tieto.com>> wrote:

Hi,


Is there any way to configure dhcp of dnsmasq to use full ipv4 range (ip+netmask) of interface given in config file as it dhcp-range?


Br,

Fredrik

_______________________________________________
Dnsmasq-discuss mailing list
Dnsmasq-discuss at lists.thekelleys.org.uk<mailto: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/20180518/c3c6bda6/attachment.html>


More information about the Dnsmasq-discuss mailing list