nvram get dhcp_staticlist
nvram set dhcp_staticlist="saved data from the other router"
nvram commit
Interesting to read this as I was thinking the same. However I have never connected to my router using SSH. Any other tips on doing this?
Thanks!Over SSH:
Code:nvram get dhcp_staticlist
Keep a copy of the output.
Then on the new router:
Code:nvram set dhcp_staticlist="saved data from the other router" nvram commit
Note that the RT-AC86U imposes size limitations, so if you had a very long list, you might not be able to import them all on the RT-AC86U.
It's for backing up and restoring settings for that specific device. It isn't designed to migrate settings from one device to another, not even if they are the same model (because the backup file contains low-level settings that are unique to that device).Why have the backup/restore option in the GUI if it's not worth using?
So if I'm flashing the firmware is it good practise to reset and then restore from a backup and then do the above for dhcp reservations?
Q: If I do a factory default reset, can I then restore my saved settings back?
A: The reason behind doing a factory default reset is so you can start with the default settings as set by your current firmware. Restoring your saved settings will just put back the same (potentially incorrect) settings that were there before the reset. You HAVE to manually reconfigure everything afterward.
Q: Then what can I use these saved settings for?
A: Restoring to a known good configuration after issues appeared. Or alternating between different configurations. Or restoring settings after an accidental factory default reset. They do serve a need when used for the right reason.
nvram get dhcp_staticlist > myfile.txt
nvram set dhcp_staticlist="$(cat myfile.txt)"
nvram commit
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!