To reset a MikroTik RouterOS device to its factory settings from the console, you can use the following command:
/system reset-configuration
This command will erase all custom settings and reset the device to its original factory state. It is important to note that this command will delete all configuration data, so it should be used with caution.
Additionally, there are options you can add to the command to control how the reset is performed. For example:
no-defaults: Reset the device without applying default settings.
/system reset-configuration no-defaults=yes
skip-backup: Skips creating a backup file before resetting.
/system reset-configuration skip-backup=yes
run-after-reset: Specifies a script file to run after the reset. This can be useful to automatically apply an initial configuration after the reset.
/system reset-configuration run-after-reset=flash/script.rsc
Make sure you are completely sure before running the reset command, as you will not be able to recover settings once the device has been reset. If possible, consider making a backup of your current settings before proceeding with the reset.
There are no tags for this post.