I did not update to 24.10, still one 23.05, I missed the the attended sysudpate refused to update (and rightfully so). I need to run some scripts to expand a specific partition to upgrade it seems, I will look at this.
Secondly, even though I have configured the router to reboot every night, I hit the issue again just today. These are two sequential syslog lines, the second one is the first occurrence of the type for as long as the syslog goes:
Thu May 8 03:19:01 2025 cron.err crond[1508]: time disparity of 46470 minutes detected
Thu May 8 05:10:34 2025 daemon.warn dnsmasq-dhcp[1]: no address range available for DHCP request via br-lan.1001
I'm starting to think there's some hardware defect. Why would the clock have such an issue? NTP is working.
After rebooting, most of the syslogs from today are lost, the previous days are still here, but today, the first log lines are now:
Thu May 8 20:09:10 2025 cron.err crond[1503]: time disparity of 47480 minutes detected
Thu May 8 20:09:10 2025 daemon.err uhttpd[1588]: [info] luci: accepted login on / for root from 192.168.1.106
I'm a bit confused about the specific circumstances of this issue...
You mention that you have to power cycle the switch to regain DHCP functionality after it fails. You also said that it fails anytime the main router is rebooted. This behavior is obviously not expected, but not only that, the trigger itself doesn't really make sense.
Meanwhile, I'm seeing this:
and I'm trying to figure out why any qos stuff is installed on the switch. Or is this from the router?
And then there's this...
Is this from the router or the switch?
Let's review the complete configs from each device (network, dhcp, firewall). And also, are there any non-standard/default packages installed on either device? If so, please specify what is installed and where.
Sorry, I should avoid mixing up the terms router and switch.
The UniFi Edge Router X (ER X) is actually a router which I installed openwrt on and use as a switch. Thatās why I keep mixing up the terms, apologies for this.
The home router is opnsense.
The logs in this thread are all from the openwrt box (UniFi ERX) which is configured as managed switch (config is below).
Thanks a lot for taking the time to look into this.
I have implemented the changes you suggested, I rebooted and removed the 0 1 * * * /sbin/reboot line from cron. I will check syslogs for the dhcp error.
No, donāt read the relay line. This was there already and it is done for it to remain in normal situations. In truth, the log message is probably not an issue, but letās make sure that there is nothing on the lan dhcp server:
I donāt understand how or why the lan interface is listening for dhcp requests. It should not be at all - that server is disabled and the whole er-x should be transparent/passive from a dhcp perspective.
If I reenable DHCP server on the mgmt intf BUT move this interface to a different firewall zone, the specific log line "daemon.warn dnsmasq-dhcp[1]: no address range available for DHCP request via br-lan.1001" is not triggered anymore when toggling wifi on my phone.
I'll monitor this for a week.
I also need to figure out how to actually fully configure mgmt interface to be able to reach LAN from there (also really, I only need to be able to access the GUI or the erx openwrt switch), it's kind of my dirty console access).
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fd68:c0fd:f8dc::/48'
option packet_steering '1'
config device
option name 'br-lan'
option type 'bridge'
list ports 'eth0'
list ports 'eth1'
list ports 'eth2'
list ports 'eth3'
config interface 'lan'
option device 'br-lan.1001'
option proto 'dhcp'
option delegate '0'
config interface 'mgmt'
option proto 'static'
option device 'eth4'
option ipaddr '192.168.200.1'
option netmask '255.255.255.0'
config bridge-vlan
option device 'br-lan'
option vlan '1001'
list ports 'eth0:u*'
list ports 'eth1:u*'
list ports 'eth2:u*'
list ports 'eth3:t'
config interface 'guestwifi'
option proto 'none'
option device 'br-lan.1010'
config bridge-vlan
option device 'br-lan'
option vlan '1010'
list ports 'eth0:t'
list ports 'eth1:t'
list ports 'eth2:t'
list ports 'eth3:t'
config interface 'lan6'
option proto 'dhcpv6'
option device '@lan'
option reqaddress 'try'
option reqprefix 'auto'
option delegate '0'
cat /etc/config/firewall
config defaults
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
option synflood_protect '1'
option drop_invalid '1'
config zone
option name 'lan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
list network 'lan'
list network 'lan6'
config zone
option name 'mgmt'
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
list network 'mgmt'
config rule
option name 'Allow from mgmt to lan'
option src 'mgmt'
option dest 'lan'
option target 'ACCEPT'
list proto 'all'
Compared to our last attempt, the only thing that I see being different is that lan6 is now an alias of lan and mgmt intf (which has a DHCP server configured) is now in its own firewall zone.