What's new

Detect Dual WAN in use

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Maverickcdn

Senior Member
Put a couple mins in searching but couldn't find the exact answer. I can locate how to detect which WAN is primary (wan0_primary=1) but...

How to check if Dual WAN is enabled (either native or DualWAN failover script) in nvram? assuming its wans_dualwan but what are the specific values for enabled vs disabled (wan none)?

TIA
 
Thank you, suppose Ill just make the script logic
Code:
[ "$(nvram get wans_dualwan)" != 'wan none' ] && dual_wan='enabled'
 
Put a couple mins in searching but couldn't find the exact answer. I can locate how to detect which WAN is primary (wan0_primary=1) but...

How to check if Dual WAN is enabled (either native or DualWAN failover script) in nvram? assuming its wans_dualwan but what are the specific values for enabled vs disabled (wan none)?

TIA
When I have dual wan on it says both are connected. When I have wan fail over on it shows primary as connected and secondary as hot failover or cold failover if it doesn’t have an ip
 
Thank you, suppose Ill just make the script logic
Code:
[ "$(nvram get wans_dualwan)" != 'wan none' ] && dual_wan='enabled'
That is currently part of what I do in the Dual WAN Failover is reading that nvram value. Specifically the second value being none, the first one can be wan lan or usb I believe.
 
Last edited:

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top