It makes the built-in WAN failover functionality actually work, and gives you a lot more control.Sorry for this probably silly question, but what advantages does this script offer over existing features?
cru a restart_wan1 “0 */6 * * * service ‘restart_wan_if 1’”
service “restart_wan_if 1”
nvram show | grep wan[0,1,2,3,4]_state_t
TryI solved this problem with these commands:
in file /jffs/scripts/services-start.Code:cru a restart_wan1 “0 */6 * * * service ‘restart_wan_if 1’” service “restart_wan_if 1”
(for the configuration shown in the screenshot in the 1st post)
The aim is to set the state to 2 for all Wan interfaces with this command:
Code:nvram show | grep wan[0,1,2,3,4]_state_t
I don't know if what I've done represents a problem, but in any case the native failover works without a hitch with this.
(AX88U / 3004.388.8_4)
nvram show | grep wan | grep _state_t
as a single command to view state for all WAN interfaces.
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!