What's new

NVRAM Dual-WAN nvram: wans_routing_rulelist

  • 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!

pseu_asus

Occasional Visitor
Hi, I found I got duplicated nvram values for wans_routing_rulelist. One is empty, the other seems correct and working. Not sure why this happened. How can I correct it and prevent it from happening again?

maven@PSU-AX56U-1:/tmp/home/root# nvram show 2>/dev/null | grep wans
wans_cap=wan lan
wans_dualwan=wan lan
wans_lanport=4
wans_lb_ratio=1:1
wans_mode=lb
wans_routing_enable=1
wans_routing_rulelist= <----- this one is not correct.
wans_standby=0
wans_routing_rulelist=<172.18.1.6>all>0<172.18.1.2>all>1 <----- this one seems correct and working. I have two gateways, one pointing to WAN0, the other to WAN1.
 
This is normal for that model of router and not a problem.

Some of the variables are now stored in the /jffs/nvram/ directory rather than nvram, but there still needs to be a empty "stub" variable left in nvram.
 
Thanks for your prompt reply, Colin.
If I want to use a script to update it, for example
nvram set wans_routing_rulelist=<172.18.1.6>all>1<172.18.1.2>all>0
will it update the correct value? or it will write to the empty one?
 
Yes, just use the normal nvram get and nvram set commands. The correct locations are updated automatically.
 
Last edited:

Latest threads

Sign Up For SNBForums Daily Digest

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