Ranger802004
Very Senior Member
Thank you.
Because I have moved the logs via syslog-ng, I guess monitoring have this output:
Bash:/tmp/home/root#:/jffs/scripts/wan-failover.sh monitor wan-failover.sh - Monitor Mode tail: /tmp/syslog.log has been replaced; following end of new file tail: /tmp/syslog.log has been replaced; following end of new file
I monitored my messages log for wan-failover.sh while being in monitor mode:
Code:Jun 19 19:25:42 src@B88X wan-failover.sh: WAN Status - wan1 enabled Jun 19 19:25:42 src@B88X wan-failover.sh: WAN Status - Route already exists for 1.0.0.1 via 192.168.7.1 dev eth8 Jun 19 19:25:44 src@B88X wan-failover.sh: WAN Status - wan1 has 0% packet loss Jun 19 19:25:44 src@B88X wan-failover.sh: WAN1 Active - Verifying WAN1 Jun 19 19:25:44 src@B88X wan-failover.sh: WAN0 Failback Monitor - Monitoring WAN0 via 1.1.1.1 for Failback Jun 19 19:25:44 src@B88X wan-failover.sh: WAN Status - wan0 enabled Jun 19 19:25:44 src@B88X wan-failover.sh: WAN Status - wan0 is disconnected. IP Address: 0.0.0.0 Gateway: 0.0.0.0 Jun 19 19:25:44 src@B88X wan-failover.sh: WAN Status - wan1 enabled Jun 19 19:25:44 src@B88X wan-failover.sh: WAN Status - Route already exists for 1.0.0.1 via 192.168.7.1 dev eth8 Jun 19 19:25:46 src@B88X wan-failover.sh: WAN Status - wan1 has 0% packet loss Jun 19 19:25:46 src@B88X wan-failover.sh: WAN1 Active - Verifying WAN1 Jun 19 19:25:46 src@B88X wan-failover.sh: WAN0 Failback Monitor - Monitoring WAN0 via 1.1.1.1 for Failback Jun 19 19:25:46 src@B88X wan-failover.sh: WAN Status - wan0 enabled Jun 19 19:25:46 src@B88X wan-failover.sh: WAN Status - Creating route 1.1.1.1 via 10.0.0.1 dev eth0 Jun 19 19:26:00 src@B88X wan-failover.sh: WAN Status - wan0 enabled Jun 19 19:26:01 src@B88X wan-failover.sh: WAN Status - Creating route 1.1.1.1 via 10.0.0.1 dev eth0 Jun 19 19:27:00 src@B88X wan-failover.sh: WAN Status - wan0 enabled Jun 19 19:27:00 src@B88X wan-failover.sh: WAN Status - Creating route 1.1.1.1 via 10.0.0.1 dev eth0
PS: wan0 = PPPoE, wan1 = USB Dongle
During this time:
wan0 remains stucked in Hot-Standby with public IP stored in wan0_ipaddr and wan_ipaddr.
wan1 connected with IP stored in wan1_ipaddr
Thank you!
Yea I see the problem, wan0_gateway is 0.0.0.0 it would seem. Do you know why that would be the case? It may be that it is 0.0.0.0 when the script is running status checks and then it populates properly post script execution? Let me know if that is the case, I can see where that condition can cause issues and can resolve it with an update.
Last edited: