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.
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
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.
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.
# /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.
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:
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.
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
Binary backup
Create backup:
[Files] → [Backup]
Console option:
/system backup save # # name=<string> - # password=<string> - # dont-encrypt=<yes|no> -
Recovery:
[Files] → [Highlight required file] → [Restore]
Console option:
/system backup load name=<> password=<>
Additionally:
Export and import configuration
Export options:
# /export # /export verbose file=config # ip address /ip address export file=config-ip-add # /import file=config.rsc
Flash drive can be divided into several sections and install multiple copies of RouterOS (including various). In case of unsuccessful boot, the next one will be loaded from the main partition. The feature is available on devices with MIPS, PowerPC and CCR series.
Breakdown into sections:
[Partition] → [Repartition]
/partitions repartition partitions=2
You must specify the total number of sections. There are two limitations: the maximum number of partitions is 8 and the minimum partition size: 32MB for MIPS; 40MB for PowerPC; 48MB for CCR.
The new section will be empty; you need to copy the current firmware to it via [Copy to].
/partitions copy-to part1
In the console, the properties of partitions are better visible: Active (A) - from which the next boot will be made and the partition from which the system® was booted.
The active partition is changed in its properties by the [Activate] button. The Fallback to option is responsible for selecting the partition if the download failed.
# /partitions activate part1 # /partitions set part1 fallback-to=part0 # bootp(netinstall) /partitions set part1 fallback-to=etherboot
[Save Config To] - Save the configuration from the current® partition to the selected one.
[Restore Config From] - Save configuration from selected partition to current®.
/partitions save-config-to part1 /partitions restore-config-from part1
The functionality is interesting, but it has two drawbacks: Not all routers are equipped with enough flash memory. Crashes in RouterOS, even when upgrading, are not so common.
Source: https://habr.com/ru/post/419693/
All Articles