Ranger802004
Very Senior Member
It seems as if the IP Rule or Routes are not being added back on some models after this condition. I will review this tomorrow.
ASUSWRT-Merlin RT-AX88U 386.8_0 Sat Aug 13 20:54:16 UTC 2022
admin@XXAX88U:/tmp/home/root# /jffs/scripts/wan-failover.sh update
wan-failover is up to date - Version: v2.0.0-beta6
***Checksum Failed***
Current Checksum: 7f0f22cae20ff65fbefc0d58ea37509194748e135f3a1ad2b57de4f0cb4a8bc6 Valid Checksum: 1b0043d6c11c3aaa693be99d60daf85492f2eba3edab80c7466e8fba606aa695
wan-failover is up to date. Do you want to reinstall wan-failover Version: v2.0.0-beta6? ***Enter Y for Yes or N for No***
> Y
wan-failover: Update - wan-failover has reinstalled version: v2.0.0-beta6
wan-failover: Restart - Restarting wan-failover ***This can take up to approximately 1 minute***
wan-failover: Restart - Killing wan-failover Process ID: 9654
wan-failover: Restart - Killed wan-failover Process ID: 9654
wan-failover: Restart - Killing wan-failover Process ID: 9656
wan-failover: Restart - Killed wan-failover Process ID: 9656
wan-failover: Restart - Killing wan-failover Process ID: 19772
wan-failover: Restart - Killed wan-failover Process ID: 19772
wan-failover: Restart - Killing wan-failover Process ID: 19773
wan-failover: Restart - Killed wan-failover Process ID: 19773
wan-failover: Restart - Waiting for wan-failover to restart from Cron Job
wan-failover: Restart - Successfully Restarted wan-failover Process ID(s): 21111 21116
Successfully Restarted wan-failover Process ID(s): 21111,21116
admin@XXAX88U:/tmp/home/root#
Tested and so far works like charm. Thanks!For those having Failback issues, please update and test again, thanks.
Excellent newsTested and so far works like charm. Thanks!
ASUSWRT-Merlin RT-AX88U 386.8_0 Sat Aug 13 20:54:16 UTC 2022
admin@XXAX88U:/tmp/home/root# /jffs/scripts/wan-failover.sh update
wan-failover is up to date - Version: v2.0.0-beta6
***Checksum Failed***
Current Checksum: 1b0043d6c11c3aaa693be99d60daf85492f2eba3edab80c7466e8fba606aa695 Valid Checksum: 3825260ca7330a35ca65de43aab9ad60d1e71fbad7f9663061a0b1243b76f1d5
wan-failover is up to date. Do you want to reinstall wan-failover Version: v2.0.0-beta6? ***Enter Y for Yes or N for No***
> Y
wan-failover: Update - wan-failover has reinstalled version: v2.0.0-beta6
wan-failover: Restart - Restarting wan-failover ***This can take up to approximately 1 minute***
wan-failover: Restart - Killing wan-failover Process ID: 8602
wan-failover: Restart - Killed wan-failover Process ID: 8602
wan-failover: Restart - Killing wan-failover Process ID: 8603
wan-failover: Restart - Killed wan-failover Process ID: 8603
wan-failover: Restart - Killing wan-failover Process ID: 21111
wan-failover: Restart - Killed wan-failover Process ID: 21111
wan-failover: Restart - Killing wan-failover Process ID: 21116
wan-failover: Restart - Killed wan-failover Process ID: 21116
wan-failover: Restart - Waiting for wan-failover to restart from Cron Job
wan-failover: Restart - Successfully Restarted wan-failover Process ID(s): 9811 9812
Successfully Restarted wan-failover Process ID(s): 9811,9812
admin@XXAX88U:/tmp/home/root#
Let me guess. On the status page for wan-failover. The WAN0 packet loss stays at 100%? . And to fix it you need to restart the script?Testing V2.0.0 Final Dual WAN Script in a Dual WAN FailBack mode: (errors in BOLD)
Test01:
- ISP01 goes down, ISP02 takes over in FailOver mode
- ISP01 comes back up, ISP02 continues to be the main WAN, FailBack does NOT work, as Primary WAN stays as Hot-Standby.
Let me guess. On the status page for wan-failover. The WAN0 packet loss stays at 100%? . And to fix it you need to restart the script?
How did the ISP 1 went down ? Was it the internet that went down but the modem didn't go down? Or was it a full power down where the Asus didn't detect the WAN0 Ethernet?
When it is stuck . Check the status for the script. Is the WAN0 packet loss stuck at 100% or notFull Power OFF of ISP01 modem, wait until FAILOVER occurs, and system logs are complete, and all other addons are working again, then Power ON ISP01 modem to bring it backup, where the ASUS AX88U router shows on the TAB "Network Map | Primary WAN" is in "Hot-Standby", but never changes over until I issue a "/jffs/scripts/wan-failover.sh switchwan" command from SSH.
Just working on getting @Ranger802004 logs from his "/jffs/scripts/wan-failover.sh" script, to submit to him for analysis.
Yes, WAN0 packet loss is stuck at 100% via "/jffs/scripts/wan-failover.sh status" scriptWhen it is stuck . Check the status for the script. Is the WAN0 packet loss stuck at 100% or not
ip rule add from all iif lo to 8.8.8.8 lookup wan0 priority 100
ping -I eth0 8.8.8.8
ip rule del from all iif lo to 8.8.8.8 lookup wan0 priority 100
Send me debug logs so I can take a look at where the IP rule readd breaks down. That should be an easy fix if I can see where it is sitting in the stuck state.Had to add the following command:
Code:ip rule add from all iif lo to 8.8.8.8 lookup wan0 priority 100
which once added at SSH command line, it allowed the following ping to occur:
Code:ping -I eth0 8.8.8.8
which then the FAILOVER occurred.
Once FAILOVER occurred, ran command:
Code:ip rule del from all iif lo to 8.8.8.8 lookup wan0 priority 100
My notes show that I did not need to run the "ip rule add" and "ip rule del" command back in V1.5.6-beta9
In a few hours. If it does change IP and gets stuck. I'll try all of the things like the ping etc. Last before restarting the script I'll try this same command too. Maybe it's the same issueSend me debug logs so I can take a look at where the IP rule readd breaks down. That should be an easy fix if I can see where it is sitting in the stuck state.
Make sure you have debug logging enabled for your router otherwise the debug events won't be loggedIn a few hours. If it does change IP and gets stuck. I'll try all of the things like the ping etc. Last before restarting the script I'll try this same command too. Maybe it's the same issue
Send me debug logs so I can take a look at where the IP rule readd breaks down. That should be an easy fix if I can see where it is sitting in the stuck state.
Interesting, so your script is able to use Ping Method 1 (Specifying Outbound Interface in IP Rule) and then afterwards it can only work with Ping Method 2 (Without Specifying Outbound Interface). I'll have to see how to compensate that in the next release.Had to add the following command:
Code:ip rule add from all iif lo to 8.8.8.8 lookup wan0 priority 100
which once added at SSH command line, it allowed the following ping to occur:
Code:ping -I eth0 8.8.8.8
which then the FAILOVER occurred.
Once FAILOVER occurred, ran command:
Code:ip rule del from all iif lo to 8.8.8.8 lookup wan0 priority 100
My notes show that I did not need to run the "ip rule add" and "ip rule del" command back in V1.5.6-beta9
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!