I’m about to update the firmware on my GL-MT300N-V2 - apparently it’s recommended that I uncheck the “keep settings” options … just what does this mean though?
Do I lose my custom DHCP address range and PPPoE settings? pretty much all I care about!) or is there a smarter way to save/reload this stuff?
If the configuration is not retained, all your previous configurations will revert to the default, including DHCP addresses and PPPOE Settings
But that is the recommendation … so firmware updates essentially become a reset settings and update? … not quite ideal (but I know what to expect and it’s hardly complicated for my current setup).
Is there an option to save settings and then reload them that is supported?
You can create a bash script that will set all your custom values to the right places.
All the router configuration is stored in the /etc/ folder, in /etc/config mostly.
You can upgrade without saving the settings, then run your bash script via SSH to set all the values and reboot. That is how i do
You can download a “backup” of your config through the GUI (at least under “Advanced” or “LuCI”) or from the command line. It is a tar file that can be expanded and viewed on most desktops.
Within the same major release from the same sources, you should be safe to keep your settings.
If you are, for example, upgrading from GL.iNet v2 to GL.iNet v3, across GL.iNet and OpenWrt, from OpenWrt v17 to v18 or v19, or from ar71xx to ath79, or downgrading in any way, then reconstructing your config is the approach I’d recommended.
Actually that might not be enough in some cases. GL has changed their config format a couple of times with things breaking within the same version
Via a bash script you can place the config in the right places, letting the system configure all the other things that could have changed.
Things that can be set via a script:
App Installations And Config
Sudo And Regular User For Safety
Disable root Account For SSH
Static IP Reservations
Hostname And Other Names
And much more, those are just the ones i set.
Is it related to
Do you have a script example on how to do this that you could share?
Here is my config script:
I use the script bellow to configure my routers every time I do an upgrade of the firmware. I don’t like having a lot of residual files taking up space, and when going from one version to another it is not recommended to save settings when doing an upgrade.
The script is for the S1300, and you will need to read it and go through changing some of the values for your router, but its a good starting point. You can copy individual lines of the script and run them to see what is going on and you can…
For reserved IP addresses which are the most tasking for me to recreate after a reset, see this thread:
Is it possible to do a backup of my long Static IP Address Binding List? This would be very useful when reseting router or installing new firmware from scratch so that there will not be a need to rebuild my entire IP binding list again. Thanks in advance for any help
Thank you very much, you are very kind!