[OpenWrt-Devel] dnsmasq not leasing after a while. Sometimes more than 5 times a day
Russell Senior
russell at personaltelco.net
Mon May 27 21:15:42 EDT 2019
>>>>> "Denis" == Denis Periša <darkman.hr at gmail.com> writes:
Denis> There is no other dhcp in network, it's routed connection RB435G
Denis> with multiple cards wlan. this is config example:
Denis> interface=eth0 except-interface=eth1 interface=wlan3
Denis> interface=wlan0 interface=wlan1 interface=wlan2
Denis> dhcp-range=172.17.3.20,172.17.3.253,255.255.255.0,1h
Denis> dhcp-range=172.17.4.20,172.17.4.253,255.255.255.0,1h
Denis> dhcp-range=172.17.5.20,172.17.5.253,255.255.255.0,1h
Denis> dhcp-range=172.17.6.20,172.17.6.253,255.255.255.0,1h
Denis> dhcp-range=172.17.7.20,172.17.7.253,255.255.255.0,1h
From experience, sometimes there are DHCP servers you don't know about.
This is what I see in my test bed:
# cat /var/etc/dnsmasq.conf.cfg01411c
# auto-generated config file from /etc/config/dhcp
conf-file=/etc/dnsmasq.conf
dhcp-authoritative
read-ethers
enable-ubus
bind-dynamic
local-service
domain=localnet
server=/lan/
except-interface=eth1
dhcp-leasefile=/tmp/dhcp.leases
resolv-file=/tmp/resolv.conf.auto
dhcp-broadcast=tag:needs-broadcast
addn-hosts=/tmp/hosts
conf-dir=/tmp/dnsmasq.d
user=dnsmasq
group=dnsmasq
dhcp-ignore-names=tag:dhcp_bogus_hostname
conf-file=/usr/share/dnsmasq/dhcpbogushostname.conf
dhcp-range=set:pub,10.11.24.5,10.11.24.30,255.255.255.224,1h
no-dhcp-interface=eth1
dhcp-range=set:priv,192.168.11.100,192.168.11.249,255.255.255.0,12h
Try turning on the force option.
--
Russell Senior, President
russell at personaltelco.net
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list