grosjo
1
Hi
For dnsmasq, my IP is 192.168.1.11, netmask 255.255.0.0
dnsmasq convert the range to be 192.168.0.100-192.168.0.249
I want that range to be 192.168.1.100-192.168.1.200
I put
dhcp-range=192.168.1.100,192.168.1.200,3600 in /etc/dnsmasq.conf
but dnsmasq still offer IP in teh range 192.168.0.x
How to fix that ?
Thank you
1 Like
Configure it at "/etc/config/dhcp", or explain why you cannot do it there.
grosjo
3
Because this gives IP in the range 192.168.0.x instead of the expected 192.168.1.x
grosjo
4
config dhcp 'HOME'
option interface 'HOME'
option start '100'
option limit '150'
option leasetime '1h'
option dhcpv4 'server'
option dhcpv6 'disabled'
option ra 'disabled'
THis gives IP in the wrong range (192.168.0.x), intead of expected 192.168.1.x
_bernd
5
Why do you want to use a /16 and then use only a 100 addresses out of it?
And as @eduperez said, configure the range in etc conf dhcp.
Etc dnsmasq conf is only needed if UCI does not provide a wrapper around the dnsmasq config...
_bernd
6
What address is assigned to your HOME interface?
grosjo
7
192.168.1.11 / 16 as mentioned above
You need to change the offset from the network address, which in your case is 192.168.0.0 because of the netmask.
option start '356'
option limit '101'
To see the current dhcp range, run
cat /tmp/etc/dnsmasq* | grep dhcp-range