Internet connection cannot be provided on the openwrt router after a power outage.
After the interruption, I can restart the asus router manually and get internet output without asking any questions.
Microsoft Windows [Version 10.0.22621.1265]
(c) Microsoft Corporation. All rights reserved.
C:\Windows\System32>ping 8.8.8.8
Pinging 8.8.8.8 with 32 bytes of data:
Reply from 8.8.8.8: bytes=32 time=31ms TTL=110
Reply from 8.8.8.8: bytes=32 time=30ms TTL=110
Reply from 8.8.8.8: bytes=32 time=30ms TTL=110
Reply from 8.8.8.8: bytes=32 time=30ms TTL=110
Ping statistics for 8.8.8.8:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 30ms, Maximum = 31ms, Average = 30ms
C:\Windows\System32>ping 192.168.1.1
Pinging 192.168.1.1 with 32 bytes of data:
Reply from 192.168.1.1: bytes=32 time=3ms TTL=63
Reply from 192.168.1.1: bytes=32 time=7ms TTL=63
Reply from 192.168.1.1: bytes=32 time=2ms TTL=63
Reply from 192.168.1.1: bytes=32 time=2ms TTL=63
Ping statistics for 192.168.1.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 2ms, Maximum = 7ms, Average = 3ms
I restarted by cutting off the modem and router power. After we turned on, I can ping, but I cannot out to the internet with my pc and mobile phone.
If I restart the openwrt router manually, I can connect without any problems.
"and I just updated to the most recent SNAPSHOT r22124"
I had this same issue many years ago and it turned out to be with the Motorola cable modem. The modem DHCP wouldn't work if the router powering up wasn't timed right (I don't remember if it was sooner or later though that made it work).
I only use snapshot to be the most up-to-date version and yes I can connect to the internet with the main router (modem) without any problems.
After the following commands, I can out the internet without the need to restart openwrt.
service adguardhome disable
service adguardhome enable
service adguardhome start
How can I prepare a script as in the link below.
I think if adguardhome works after a certain period of time after openwrt is opened, the problem can be solved.
This will obviously have you at the bleeding edge, but sometimes there can be problems with snapshots. Typically, unless you need a patch/feature/bug-fix that doesn't existing in the stable release images, you don't need to worry about being up to date using snapshots. It's up to you, of course. And this is not likely what is wrong with your situation.
If this is your problem, you can brute-force it by adding sleep n into the start service section where n is the number of seconds you want to delay the startup of AGH.