What's new

RT-AC86U saving settings issue - Static Route

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

OzTrip

Occasional Visitor
Hi there,

I'm having an issue with my RT-AC86U

The area affected: LAN > Static Route List

Tested on stock: RT-AC86U_3.0.0.4_384_81369-gb361479_cferom_ubi.w
Tested on marlin: RT-AC86U_384.16_0.zip, RT-AC86U_384.15_0.zip
Tested on Chrome, Safari, Edge & iPad

Manual entry, re-flashed, reset multiple times. Everything else works fine...

Replications steps:

1. Insert any static route eg.



2. Click Apply
3. Log In (you can see the changes saved correctly)
4. Reboot
5. Navigate to LAN > Static Route List

Result: All static routes are wiped off.

I tried multiple times, I can save other settings.

Q1. Does anyone have any idea what can be wrong?
Q2. Can I update Static Route via SSH? If so how? Thanks
 
Hi there,

I'm having an issue with my RT-AC86U

The area affected: LAN > Static Route List

Tested on stock: RT-AC86U_3.0.0.4_384_81369-gb361479_cferom_ubi.w
Tested on marlin: RT-AC86U_384.16_0.zip, RT-AC86U_384.15_0.zip
Tested on Chrome, Safari, Edge & iPad

Manual entry, re-flashed, reset multiple times. Everything else works fine...

Replications steps:

1. Insert any static route eg.



2. Click Apply
3. Log In (you can see the changes saved correctly)
4. Reboot
5. Navigate to LAN > Static Route List

Result: All static routes are wiped off.

I tried multiple times, I can save other settings.

Q1. Does anyone have any idea what can be wrong?
Q2. Can I update Static Route via SSH? If so how? Thanks
Q1. Does anyone have any idea what can be wrong?
A1. Check if NVRAM is full or nearly full. You need to ideally have at least 5-10% free

upload_2020-4-11_11-54-26.png


Q2. Can I update Static Route via SSH? If so how
A2. NVRAM variables need to be modified: (Beware of syntax before executing nvram commit)
Code:
nvram show | grep -E "lan_route|^sr_rulelist"

lan_route= 192.168.1.1:255.255.255.0:10.88.8.254:1
sr_rulelist=<192.168.1.1>255.255.255.0>10.88.8.254>>LAN
Modify the NVRAM variables

e.g. 172.168.88.1/24 -> 10.88.8.254 Metric 2 LAN
Code:
OLDVAR="$(nvram get lan_route)";nvram set lan_route="$OLDVAR 172.16.88.1:255.255.255.0:10.88.8.254:3"

OLDVAR="OLDVAR="$(nvram get sr_rulelist)";nvram set sr_rulelist=$OLDVAR"<LAN<172.16.88.1>255.255.255.0>10.88.8.254>2>LAN"
changed to
Code:
nvram show | grep -E "lan_route|^sr_rulelist"

lan_route= 192.168.1.1:255.255.255.0:10.88.8.254:1 172.16.88.1:255.255.255.0:10.88.8.254:3
sr_rulelist=<192.168.1.1>255.255.255.0>10.88.8.254>>LAN<172.16.88.1>255.255.255.0>10.88.8.254>2>LAN
 
Hi there,

I'm having an issue with my RT-AC86U

The area affected: LAN > Static Route List

Tested on stock: RT-AC86U_3.0.0.4_384_81369-gb361479_cferom_ubi.w
Tested on marlin: RT-AC86U_384.16_0.zip, RT-AC86U_384.15_0.zip
Tested on Chrome, Safari, Edge & iPad

Manual entry, re-flashed, reset multiple times. Everything else works fine...

Replications steps:

1. Insert any static route eg.



2. Click Apply
3. Log In (you can see the changes saved correctly)
4. Reboot
5. Navigate to LAN > Static Route List

Result: All static routes are wiped off.

I tried multiple times, I can save other settings.

Q1. Does anyone have any idea what can be wrong?
Q2. Can I update Static Route via SSH? If so how? Thanks

Why are you using google dns address and directing to 192.168.2.1, also one ip address is public and one private I wonder if that is creating problem and router simply wipes it out.
 
Why are you using google dns address and directing to 192.168.2.1, also one ip address is public and one private I wonder if that is creating problem and router simply wipes it out.

This is a suggested setup from the sites like Getflix to stop third party apps access certain IP.

The full table should look like this:

 
Last edited:
A1. Check if NVRAM is full or nearly full. You need to ideally have at least 5-10% free

View attachment 22547


A2. NVRAM variables need to be modified: (Beware of syntax before executing nvram commit)
Code:
nvram show | grep -E "lan_route|^sr_rulelist"

lan_route= 192.168.1.1:255.255.255.0:10.88.8.254:1
sr_rulelist=<192.168.1.1>255.255.255.0>10.88.8.254>>LAN
Modify the NVRAM variables

e.g. 172.168.88.1/24 -> 10.88.8.254 Metric 2 LAN
Code:
OLDVAR="$(nvram get lan_route)";nvram set lan_route="$OLDVAR 172.16.88.1:255.255.255.0:10.88.8.254:3"

OLDVAR="OLDVAR="$(nvram get sr_rulelist)";nvram set sr_rulelist=$OLDVAR"<LAN<172.16.88.1>255.255.255.0>10.88.8.254>2>LAN"
changed to
Code:
nvram show | grep -E "lan_route|^sr_rulelist"

lan_route= 192.168.1.1:255.255.255.0:10.88.8.254:1 172.16.88.1:255.255.255.0:10.88.8.254:3
sr_rulelist=<192.168.1.1>255.255.255.0>10.88.8.254>>LAN<172.16.88.1>255.255.255.0>10.88.8.254>2>LAN

The updated static route via admin without reboot:



and after reboot:



this command does not change anything?

 
Last edited:
Ok so I did a bit more tests via SSH

I've inserted these two routes via the admin and hit Apply, no reboot



then I overwrote this via SSH

Code:
nvram set lan_route=8.8.1.1:255.255.255.255:192.168.1.1:3

when I refreshed admin page I saw no change, however via SSH I saw route change:

Code:
lan_route=8.8.1.1:255.255.255.255:192.168.1.1:3

then I restarted the router and all my changes gone.




I assume there is some issue with the router memory or something. It is strange it only happens here???
 
Last edited:
You aren’t showing in the screenshots, but is the Enable static routes option set to Yes? :rolleyes:

The fact you show no sr_rulelist nvram var is problematic.
 
this command does not change anything?

Strange - can't see why it wouldn't :confused:

I suggest you take a backup either using the router's Firmware TAB GUI or see NVRAM Save/Restore Utility which allows the NVRAM variables to be examined.

Then reset the router and retry the SSH commands to set the NVRAM variables and see if they appear in the GUI etc.
 
Ok so I did a bit more tests via SSH

I've inserted these two routes via the admin and hit Apply, no reboot



then I overwrote this via SSH

Code:
nvram set lan_route=8.8.1.1:255.255.255.255:192.168.1.1:3

when I refreshed admin page I saw no change, however via SSH I saw route change:

Code:
lan_route=8.8.1.1:255.255.255.255:192.168.1.1:3

then I restarted the router and all my changes gone.




I assume there is some issue with the router memory or something. It is strange it only happens here???

Did you do an nvram commit after the nvram set calls? Believe you need to do that to survive a reboot.
 
Ok, thanks to everyone for the help. Ather a week of trying to fix this setting I decided to return the router and replace with a new model. No issues since so I assume there was something wrong with the ram.
 

Similar threads

Sign Up For SNBForums Daily Digest

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