The last lines in the file /etc/config/dhcp are these:
config host
option dns '1'
option mac 'fc:22:f4:76:bb:03'
option ip '172.16.1.1'
However, the dnsmasq server ignores those lines and assigns another address 192.168.2.200 to the client. After reboot:
From logread: Tue Dec 17 07:45:19 2024 daemon.info dnsmasq-dhcp[1]: DHCPOFFER(br-lan) 192.168.2.200 fc:22:f4:76:bb:03
It ignores the address 172.16.1.1 in the config file.
The address may seem suspect, but I'd like to experiment. Perhaps
it isn't possible to use that address (an unused, reserved IP-address).
The other machines, connected to the Ethernet port, have 192.168.2.* addresses. The OpenWrt router has the address 192.168.2.1 on that
Ethernet port.
The reason for experimenting is that I assume that the particular machine (a
Zyxel router) does not like to be assigned 192.168.2.200 on its WAN port.
Is is possible to use 172.16.1.1 in the DHCP configuration?
Am I misunderstanding this? (Probably.)
Do you have a 172.16.1.0/24 network setup on the router?
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:
Remember to redact passwords, MAC addresses and any public IP addresses you may have:
ubus call system board
cat /etc/config/network
cat /etc/config/dhcp
Where does this network exist? I don't see any 172.16.0.0/16 networks attached to this router.
But more importantly, dnsmasq will not issue an IP address that is in a network for which there is no DHCP server, and it also cannot have a DHCP server unless there is an appropriate network interface.