Hi I'm trying to change the leasetime of the guest network.
The config I added to dnsmasq.conf.add is successfully appended to the dnsmasq.conf. When the dnsmasq service is restarted I can see in the log that the config is loaded but it appears that dhcp range and leasetime config is configured from bottom to top.
Is there any other way to do this.
excerpt of the dnsmasq.conf:
interface=br1
dhcp-range=br1,192.168.101.2,192.168.101.254,255.255.255.0,86400s
dhcp-option=br1,3,192.168.101.1
interface=br2
dhcp-range=br2,192.168.102.2,192.168.102.254,255.255.255.0,86400s
dhcp-option=br2,3,192.168.102.1
rebind-domain-ok=/.reolink.com/dns.msftncsi.com/
interface=br1
dhcp-range=br1,192.168.101.2,192.168.101.254,255.255.255.0,3600s
dhcp-option=br1,3,192.168.101.1
excerpt of the logging:
Jan 27 09:42:56 rtaxbeast custom_config: Appending content of /jffs/configs/dnsmasq.conf.add.
Jan 27 09:42:56 rtaxbeast stubby[31204]: Stubby version: Stubby 0.4.0
Jan 27 09:42:56 rtaxbeast stubby[31204]: Read config from file /etc/stubby/stubby.yml
Jan 27 09:42:56 rtaxbeast dnsmasq[31212]: started, version 2.86 cachesize 1500
Jan 27 09:42:56 rtaxbeast dnsmasq[31212]: compile time options: IPv6 GNU-getopt no-RTC no-DBus no-UBus no-i18n no-IDN DHCP DHCPv6 no-Lua TFTP no-conntrack ipset no-auth cryptohash DNSSEC no-ID loop-detect no-inotify no-dumpfile
Jan 27 09:42:56 rtaxbeast dnsmasq[31212]: DNSSEC validation enabled
Jan 27 09:42:56 rtaxbeast dnsmasq[31212]: configured with trust anchor for <root> keytag 20326
Jan 27 09:42:56 rtaxbeast dnsmasq[31212]: warning: interface br2 does not currently exist
Jan 27 09:42:56 rtaxbeast dnsmasq[31212]: warning: interface pptp* does not currently exist
Jan 27 09:42:56 rtaxbeast dnsmasq[31212]: asynchronous logging enabled, queue limit is 5 messages
Jan 27 09:42:56 rtaxbeast dnsmasq-dhcp[31212]: DHCP, IP range 192.168.101.2 -- 192.168.101.254, lease time 1h
Jan 27 09:42:56 rtaxbeast dnsmasq-dhcp[31212]: DHCP, IP range 192.168.102.2 -- 192.168.102.254, lease time 1d
Jan 27 09:42:56 rtaxbeast dnsmasq-dhcp[31212]: DHCP, IP range 192.168.101.2 -- 192.168.101.254, lease time 1d
The config I added to dnsmasq.conf.add is successfully appended to the dnsmasq.conf. When the dnsmasq service is restarted I can see in the log that the config is loaded but it appears that dhcp range and leasetime config is configured from bottom to top.
Is there any other way to do this.
excerpt of the dnsmasq.conf:
interface=br1
dhcp-range=br1,192.168.101.2,192.168.101.254,255.255.255.0,86400s
dhcp-option=br1,3,192.168.101.1
interface=br2
dhcp-range=br2,192.168.102.2,192.168.102.254,255.255.255.0,86400s
dhcp-option=br2,3,192.168.102.1
rebind-domain-ok=/.reolink.com/dns.msftncsi.com/
interface=br1
dhcp-range=br1,192.168.101.2,192.168.101.254,255.255.255.0,3600s
dhcp-option=br1,3,192.168.101.1
excerpt of the logging:
Jan 27 09:42:56 rtaxbeast custom_config: Appending content of /jffs/configs/dnsmasq.conf.add.
Jan 27 09:42:56 rtaxbeast stubby[31204]: Stubby version: Stubby 0.4.0
Jan 27 09:42:56 rtaxbeast stubby[31204]: Read config from file /etc/stubby/stubby.yml
Jan 27 09:42:56 rtaxbeast dnsmasq[31212]: started, version 2.86 cachesize 1500
Jan 27 09:42:56 rtaxbeast dnsmasq[31212]: compile time options: IPv6 GNU-getopt no-RTC no-DBus no-UBus no-i18n no-IDN DHCP DHCPv6 no-Lua TFTP no-conntrack ipset no-auth cryptohash DNSSEC no-ID loop-detect no-inotify no-dumpfile
Jan 27 09:42:56 rtaxbeast dnsmasq[31212]: DNSSEC validation enabled
Jan 27 09:42:56 rtaxbeast dnsmasq[31212]: configured with trust anchor for <root> keytag 20326
Jan 27 09:42:56 rtaxbeast dnsmasq[31212]: warning: interface br2 does not currently exist
Jan 27 09:42:56 rtaxbeast dnsmasq[31212]: warning: interface pptp* does not currently exist
Jan 27 09:42:56 rtaxbeast dnsmasq[31212]: asynchronous logging enabled, queue limit is 5 messages
Jan 27 09:42:56 rtaxbeast dnsmasq-dhcp[31212]: DHCP, IP range 192.168.101.2 -- 192.168.101.254, lease time 1h
Jan 27 09:42:56 rtaxbeast dnsmasq-dhcp[31212]: DHCP, IP range 192.168.102.2 -- 192.168.102.254, lease time 1d
Jan 27 09:42:56 rtaxbeast dnsmasq-dhcp[31212]: DHCP, IP range 192.168.101.2 -- 192.168.101.254, lease time 1d