📜 ⬆️ ⬇️

Mikrotik: reset settings, backups and DualBoot

Analysis of many small, relatively related, topics: software and hardware reset settings, the Protected RouterBoot function, backups and configuration export, breakdown of flash memory into sections.


Software reset


If you have access to the router from a user with full rights, you can reset all settings via [System] → [Reset Configuration]



What is there:



Console option:


/system reset-configuration no-defaults=yes skip-backup=yes 

Hardware reset


It all depends on the model of the router, maybe three options:


There is a reset button


To begin, turn off the power, hold down the reset and turn on the power. We release through:



Contact area


The wiki claims that all devices are equipped with a similar platform. For the sake of interest, I opened RB491-2nD and did not find one.


Reset technology: turn off the power, close the platform (the beeper makes a wheezing squeak) and do not release until full load.


Jumper


Present on older models.


Reset technology: turn off the power, close the jumper, wait for the full load, remove the jumper.


Protected RouterBoot


It may happen that after resetting someone else’s (otherwise you would have known) the router will not load further than the first peak - this is a new feature from Mikrotik that wipes all flash memory (including RouterOS), you will need to restore netinstall.


About RouterBoot


RouterBoot is the bootloader on Mikrotik devices, you can interact with it through the Serial interface and prevent the interference of the boot process with one of the intended purposes of the Protected RouterBoot.


The loader is divided into two parts:




View current versions in [System] → [RouterBoard]. The [Upgrade] button updates the Current loader. If the system works poorly and boots only from the backup (as written in the section above), then in [Settings] you can explicitly set the recovery bootloader as permanent, the Auto Upgrade option for updating the current bootloader along with RouterOS. And once we are here - the Silent Boot option turns off sounds during the download.


Console option
 #   /system routerboard print /system routerboard setting print #   /system routerboard upgrade #    Recovery /system routerboard setting set force-backup-booter=yes #  beeper /system routerboard setting set silent-boot=yes 

On which versions of the firmware does Protected RouterBoot work?


They promise guaranteed work for devices with Factory Firmware 3.24 and higher; if your device is older, you can activate the function by updating the firmware.


Recovery firmware update for RB951G

The forum and the wiki warn that everything is experimentally done at your own peril and risk. Read the topic , there is a list of models and update files, I will write on the example of RB951G.


The error looks like this:


First, download:


  • Package dpk for its architecture.
  • firmware (point RouterBoot firmware), for other models look in similar places.

They will be required later.


Update the bootloader will only work on the BugFix firmware version, so you need to roll back to version 6.40.x.
Option 1
[System] → [Packages] → [Check for updates]
Channel: Bugfix Only
click [Download and Install]
Console option:


 /system package update set channel=bugfix /system package update check-for-updates /system package update install 


Option 2
Download the necessary version (6.40.8 at the moment) of RouterOS from the archive , unpack and copy the necessary packages to MikroTik.
Next: [System] → [Packages] → [Downgrade]

Console option:


 /system package downgrade 

Result:


We return to the files downloaded earlier.
Load the device .wf * file and launch the firmware update via:
[System] -> [RouterBoard] -> [Upgrade]
[System] -> [Reboot]
Console option:


 /system routerboard upgrade /system reboot 

After reboot, the current firmware will become 3.41. Delete the .fwf file.


Download the device.dpk * file and send it to reboot.
We receive the updated version of Factory Firmware.

Now you can update RouterOS to the latest version, then update the bootloader and use all the functionality.


[System] → [RouterBoard] → [Settings]



Turn on Protected RouterBoot = yes, now



I do not urge you to include this option in a mandatory manner, think for yourself when you need it, and when you can do without such measures.


Restoring firmware using netinstall


Netinstall is a universal tool for flashing and pre-configuring MikroTik routers. When used, the internal memory and configuration is formatted, only the settings in [System] → [RouterBOARD] will remain unchanged


Available only for Windows by reference . Conflicts with some firewalls and antiviruses (add to exceptions), there may be problems starting from users with limited rights - run "As Administrator".


Procedure:





What else is netinstall capable of



Backup and export configuration in Mikrotik


Binary backup



Create backup:
[Files] → [Backup]




')

Source: https://habr.com/ru/post/419693/


All Articles