These host additions I appended to stock dhcp aren't respected, dnsmasq ignores them and assigns addresses from its range when the hosts connect. I'm on 24.10, but it's been a very long time since I've used openwrt. My end-goal is to have my static local addresses resolvable so I can ssh i7 or ssh i7.lan, etc.
change the configuration file (you should solve)
and relaunching "service dnsmasq reload" or restarting the router
and restart the PC so that they get a new IP address other than the one stored at this moment
config host
option mac '14:98:77:77:C5:5A'
option ip '192.168.1.10'
option name 'm1'
option dns '1'
config host
option mac 'D8:BB:C1:F7:AC:C7'
option ip '192.168.1.11'
option name 'i7'
option dns '1'
config host
option mac '14:98:77:77:C5:5A'
option ip '192.168.1.10'
option name 'm1'
option dns '1'
config host
option mac 'D8:BB:C1:F7:AC:C7'
option ip '192.168.1.11'
option name 'i7'
option dns '1'
I made the dhcp changes, adding the dns option to the hosts, saved the file and relaunched dnsmasq. I rebooted machine i7 and it grabbed an ip from the dhcp pool, not the static ip I wanted.
A router reboot didn't change anything.
Yes depending on the host os, it can happen that the lease is cached and if it is still valid the host tries to renew the lease but don't request a new one.
It still pulls an address from the pool. Similar issue with a Mac m1. I deleted the ethernet device, recreated it with setting dhcp and it was assigned an address from the pool, not the static ip.
This could be the reason. Fri Apr 4 21:22:16 2025 user.notice dnsmasq: found already running DHCP-server on interface 'br-lan' refusing to start, use 'option force 1' to override
The error @trendy was pointing out is that the DHCP server on OpenWrt did not start because there is another one running on the network somewhere. That is to say, another device has an active DHCP server. You need to find that DHCP server and disable it.