Record a boot ID on each router
Run these commands in a separate SSH session on each device. Save both outputs on your computer with the time and the role of each device (main router or AP). The kernel generates a new boot_id at each boot. The first number in uptime is the time since boot in seconds.
ubus call system board
cat /proc/sys/kernel/random/boot_id
cat /proc/uptime
ubus call network.wireless status
Read both IDs again after the next outage using the same wired access where available. If only the main router’s ID changed, examine its previous boot. If neither ID changed, check the wireless interface on the AP. From one wired client, try the VLAN gateway and a known reachable numeric IP address. If both work but names fail, check DNS and the lease separately. A wireless disconnection alone cannot identify DHCP, batman-adv or ath10k as its cause.
Preserve the last messages on a separate machine
The local log buffer is lost at reboot. Put a syslog receiver on the wired LAN of the main router. If logs from the AP have to cross the wireless backhaul, note that dependency. On each router, open System → System → Logging in LuCI. Save the original settings, then enter the wired address, listening port and protocol of the receiver. Configure the receiver to accept logs from these two routers. Apply the settings and send a test message with the boot ID from each SSH session.

logger -t mesh-check "node=$(cat /proc/sys/kernel/hostname) boot=$(cat /proc/sys/kernel/random/boot_id)"
logread -e mesh-check
Start observing only after the receiver shows both test messages. During the next outage record the time, the last message from each node, when the main router becomes visible again, and both boot_id values. If only the main router’s ID changed, it rebooted. An empty log tail does not identify the cause. A reset, power loss or an interrupted logging path can all leave a gap. If neither rebooted, repeat the same service request from a wired client and from a client behind the AP to locate the affected backhaul or VLAN.
Save a short excerpt on the receiver and restore the original logging destination, protocol and port. When comparing static leases or mesh settings, change one variable at a time and keep a wired management connection. Xiaomi AIoT AC2350 disconnects: did the router reboot or did Wi-Fi drop?
Comments