banner
miaoer

miaoer

喵二の小博客 https://www.miaoer.net xLog 分站
tg_channel
telegram
bilibili

OpenWrt Soft Router Dial-up Regular Disconnection Solution

This morning, when I got up and turned off the alarm, I found that there were no messages on my phone. Frowning, I glanced at the Wi-Fi icon and saw an exclamation mark. I panicked, thinking that the soft router firmware had crashed; I had just published something. Taking a responsible attitude, I got up and turned on the computer to check what was wrong with the internal network. I found that VMware EXSI was accessible, the soft router was not down, the CPU usage was reasonable, and the virtual machines were still online.

I only have two virtual machines running: one is the CatWrt I compiled, and the other is Ubuntu running Docker and the little chestnut robot (mirai). First, it couldn't be an issue with Ubuntu, so I narrowed it down to OpenWrt because I had previously experienced disconnections at night at home. Before I changed the modem, it would happen several times a week; now, it’s pretty good, and I might not encounter it even once a month.

I opened OpenWrt to check the network interface and found that the WAN link was active and the uptime was also moving, but the transmitted traffic was too low. Later, to verify the optical modem, I directly restarted it (actually, it’s the same as replaying in OpenWrt). As expected, it worked. I found online that the operator does not allow long periods without replaying.

"Sometimes, actively releasing PPPoE, which is the WAN port, is necessary, especially when some ISPs disconnect customers after a certain time or schedule and force them to reconnect. Since this is the case, we might as well take the initiative to perform this operation ourselves."

That makes it easier. I can just replay it once a week when no one is using it, slightly modifying the command and writing it into the scheduled tasks; this should not be a problem.


OpenWrt - System - Scheduled Tasks;

0 3 0/7 * * ifup wan

After all, home broadband can't do too much. Fortunately, the online services basically rely on the cloud. DDNS might take a bit longer to take effect, but considering that not many people use it, it’s not a big deal.

This article is synchronized and updated to xLog by Mix Space. The original link is https://www.miaoer.net/notes/19

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.