Sorry about this question.
When I start the DHCP server by interfaces in I get the following error in the logging
Sat Mar 14 14:57:05 2026 daemon.crit dnsmasq[1]: bad dhcp-range at line 66 of /var/etc/dnsmasq.conf.cfg01411c
checking the dnsmasw.conf.cfg file line 66 is dhcp-range=set:lan,19,,255.255.255.0,12h
My router is Netgear R8000 (BCM4709)
How can I get DNSMASQ to write a proper config file
Thanks
Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </> " button (red circle; this works best in the 'Markdown' composer view in the blue oval):
Remember to redact passwords, VPN keys, MAC addresses and any public IP addresses you may have:
ubus call system board
cat /etc/config/network
cat /etc/config/dhcp
And it prompts another question: why does your lan interface have 3 different addresses. It's not technically incorrect to use multiple addresses in the same subnet, but it doesn't generally make a lot of sense to do this.
Another question/issue:
This device is clearly not the main router. Does the main router have its DHCP server disabled?
Thanks, this was the issue. I changed the pool with the lan address outside the pool.
About your other question, yes there is another DHCP service in the network and this router is going to replace it, but I had to be sure it was working. And hopefully this router will replace the ISP router in the future when I get it working properly. For the time being I use is only for encrypted DNS and after some testing for DHCP.
The lack of error controle in luci is a PIMA for me and the interface is not typical user-friendly. It is not built by a webdesigner but by a webdeveloper with a linux background.
In the past I used Openwrt with an old linksys and during those days it was a lot better.
And since there can't be 2 DHCP server on a single broadcast domain [without advanced configuration], did you disable the other DHCP server while making sure and testing that the OpenWrt works?
I’m going to guess that the op has not disabled the dhcp server on the main router.
Why do I think that?
If the main dhcp server is disabled with the current openwrt config, the network will appear to break because the DHCP advertised gateway will be incorrect. The op needs to add dhcp option 3 in order to ensure that the correct gateway is supplied.
With that in mind, I would wager that the dhcp server on OpenWrt is disabled as a function of a positive hit on the dhcp probe test that is performed when the dhcp server starts.
The purpose of providing two (or more) DNS servers is for redundancy. Since both of the DNS addresses are the same as this current device, there is absolutely zero value in this method... if the device as a whole, or even just the dnsmasq service goes down, neither DNS server addresses will respond. I would recommend removing one of the addresses from both the lan interface and the DHCP option 6 line. Later, you can add another physical device to your network that is the secondary DNS server, if you wish to have a backup DNS*.
Further, you never did answer the question about why you have 3 addresses on the lan interface. There doesn't seem to be any real reason to do this in your situation.
*There is an argument that a single DNS server is fine if/when that DNS server is actually hosted on the main gateway. Typically, if the gateway goes down, the lack of DNS is not the core issue. You could still have a dnsmasq failure, but I think that's relatively infrequent (assuming proper configuration) and the likelihood of a larger issue with the gateway device (i.e. power, software crash affecting the whole system, etc.) is probably statistically more relevant.
Also, returning to this.... disabling the main router's DHCP server is mandatory if you want the OpenWrt DHCP server to be active. While it is possible to force-enable the OpenWrt DHCP server, it is a bad idea to do so in most situations because two or more simultaneous DHCP servers on a network can cause major issues (unless, as @lleachii said, you've done advanced configurations on all of the DHCP servers to ensure that they work in a cooperative manner; this is highly uncommon for small networks, and this type of advanced config is almost always serious overkill in those environments).