MikroTik Guide
Isometric router with an antenna and a glowing status light next to a pink panel with a circle, set against a dark navy background with dot patterns
networking

RouterOS Netinstall Recovery Guide: Unbrick a MikroTik

Reflash a bricked or locked-out MikroTik with Netinstall: PC setup, Etherboot via the reset button, netinstall-cli flags, and common fixes.

By MikroTik Guide Editorial · · Updated · 10 min read

Give your PC a static IP such as 192.168.88.2/24, disable its other network adapters, and connect it to the router’s Etherboot port. Start the Windows boot server or run netinstall-cli as root before putting the router into Etherboot. On Windows, select the matching .npk package and click Install. On Linux, pass the packages when you start the tool. MikroTik Netinstall

Netinstall reformats the drive, erasing configuration and all user files. Keep old configuration restores only the core configuration after formatting. Netinstall preserves RouterOS license keys and RouterBOOT settings. MikroTik Netinstall

When do you need Netinstall instead of a reset?

Use Netinstall when RouterOS itself is broken: the board boot-loops, an upgrade died mid-write, a package is corrupt, or you want a clean install of a specific version. For a forgotten password or a bad firewall rule, try a configuration reset if the reset button is available.

SymptomStart with
Forgotten password, lockout from a firewall or VLAN changeOn models with the standard sequence, release reset when the LED starts flashing (about 5 s)
Boot loop, failed upgrade, corrupt packageNetinstall
Bootloader broken after a RouterBOOT upgradeBackup RouterBOOT: hold reset before power, release about 3 s after
Reset button ignored, Netinstall never sees the boxCheck host setup first. If Protected RouterBOOT is enabled, see the recovery options below.
Config mangled by a v6 to v7 conversionExport, then Netinstall with an empty config

The timings come from MikroTik’s configuration reset page and the RouterBOOT manual. For the last row, see our RouterOS v6 to v7 upgrade guide. If bridge VLAN filtering caused the lockout, read VLAN filtering without locking yourself out before rebuilding.

What to download first

If you can still log in, save a text export and a password-protected system backup and copy both off the router before wiping it. MikroTik upgrade guide

Export installed certificates and the Dude and User Manager databases separately. A text export cannot carry system user passwords or user SSH keys. Set those passwords again and add the user SSH keys when rebuilding from the export. MikroTik Configuration Management

Step 1: Prepare the PC

On Windows, disable every adapter except the wired one. Give it a static IP such as 192.168.88.2 with mask 255.255.255.0, then launch netinstall.exe as administrator. MikroTik Netinstall MikroTik’s troubleshooting checklist says to disable firewall and antivirus software on the PC. If you do, switch both back on as soon as the router reboots into its new install, before that laptop touches another network.

On Linux, replace every <version> with the Netinstall release you are downloading and <interface> with your wired interface name. Replace the angle brackets too. Download and unpack Netinstall, then set the static address as shown in MikroTik’s Linux quick start.

wget https://download.mikrotik.com/routeros/<version>/netinstall-<version>.tar.gz
tar -xzf netinstall-<version>.tar.gz
sudo ifconfig <interface> 192.168.88.2/24

If your Linux host uses firewalld, use these rules for BOOTP (bootps/udp), TFTP (tftp/udp), and 5000/udp when the firewall blocks them. Warren Young’s NetInstall notes

sudo firewall-cmd --permanent --add-port bootps/udp
sudo firewall-cmd --permanent --add-port tftp/udp
sudo firewall-cmd --permanent --add-port 5000/udp
sudo firewall-cmd --reload

Remove any rules you added and reload firewalld when you are done.

Cable directly to ether1 or the port marked BOOT. If your Ethernet adapter loses link during Etherboot, put a switch between the PC and the router. If the switch uses DHCP snooping, mark the bridge port facing the Netinstall PC as trusted. MikroTik Netinstall

On CRS520, CRS804, and CRS812 switches, the default Etherboot port depends on the model and can be changed with etherboot-port. MikroTik RouterBOARD

Windows. Open Net booting, enable the built-in boot server, and set Client IP address to an unused address in the PC’s subnet, such as 192.168.88.3. Use an address different from the PC’s. MikroTik Netinstall

Linux. Start netinstall-cli as root before you boot the router into Etherboot. This command uses MikroTik’s example ARM package filenames to demonstrate an empty install. MikroTik Netinstall

sudo ./netinstall-cli -e -i enx1234567ee890 -a 192.168.88.3 routeros-7.14.2-arm.npk wireless-7.14.2-arm.npk

Substitute your wired interface for enx1234567ee890 and use the filenames of the packages you downloaded for your router. List the main RouterOS package first, followed by any extras you need. MikroTik Netinstall

Step 2: Put the router into Etherboot mode

Start the Windows boot server or run the Linux command above before using one of these Etherboot methods.

  1. Reset button. For models with the standard sequence, power off, hold reset, and apply power. The LED flashes at about 5 s for a configuration reset and goes solid at about 10 s for CAPs mode. Keep holding until the LED goes out at about 15 s, then release for Etherboot. MikroTik RouterBOOT

    On Wireless Wire kits, releasing at about 10 s clears the configuration. MikroTik RouterBOOT For standard CAPs mode, see the CAPsMAN setup guide.

  2. Serial console. For Etherboot, use 115200 bit/s, 8 data bits, 1 stop bit, no parity, and no flow control. RouterBOARD 230 series devices use 9600 bit/s with RTS/CTS flow control. Press Ctrl+E during boot to enter Etherboot. MikroTik Netinstall The x86 serial console defaults to 9600 bit/s. MikroTik Serial Console and cable pinouts

  3. From RouterOS. If you can still log in, run /system routerboard settings set boot-device=try-ethernet-once-then-nand. MikroTik Netinstall Then run /system reboot. The board tries Ethernet once and falls back to its local storage if no server is available. MikroTik RouterBOARD

Holding reset before power also loads the backup RouterBOOT. MikroTik RouterBOOT If the device never appears, the knowledge base suggests pressing reset one to two seconds after power-on to use the regular bootloader.

Step 3a: Install from the Windows GUI

  1. Select the router after it appears in Netinstall.
  2. Click Browse, open the folder holding the .npk files, and tick the packages.
  3. For an empty install, leave Apply default config and Keep old configuration unchecked and leave all other configuration options, including Configure script and Mode script, unset. Select a configuration option only if you want to apply one.
  4. Click Install. Wait for installation to finish, then click Reboot. Devices without a serial console have to be rebooted manually. MikroTik Netinstall

Step 3b: Install from Linux with netinstall-cli

After the router enters Etherboot, the running command detects it, formats the drive, and sends the selected packages. Wait for the reboot message. MikroTik Netinstall

The Netinstall Linux reference lists these flags.

FlagEffect
-eReinstall with an empty configuration
-rReinstall and apply the default configuration script
neitherKeep current config: download it, format, upload it back
-k <keyfile>Install a license key (.KEY format)
-s <userscript>Configure script, replacing the default config
-sm <modescript>One-time Mode script (RouterOS and Netinstall 7.22 and later)
-a <IP> / -i <interface>Client IP / PC interface

For a Configure script passed with -s, use a .scr filename. Warren Young’s NetInstall notes

Which configuration option should you pick?

For a recovery, pick empty (-e) or default (-r). Keep the old configuration only when you are sure the configuration is sound. Netinstall restores the original configuration database, and files such as the User Manager and Dude databases and containers are excluded. MikroTik Netinstall

With the default config, the Netinstall docs warn that “some devices are not accessible through ether1 port with the default configuration for security reasons.” Under MikroTik’s AP Router default configuration, the first Ethernet interface (ether1) is a firewalled WAN port, while the remaining Ethernet and wireless interfaces join the LAN bridge at 192.168.88.1/24 with a DHCP server. MikroTik’s First Time Configuration guide therefore instructs connecting your computer to any Ethernet port except ether1 (such as ether2). Other board profiles differ. The LTE CPE AP Router profile uses 192.168.188.1/24. MikroTik default configurations

With an empty config (-e), use the Neighbors tab in WinBox and select the router’s MAC address. MAC WinBox is allowed on all interfaces when no default configuration is loaded. MikroTik MAC server Our WinBox vs WebFig comparison explains the difference.

A Configure script (-s) replaces the factory default and persists across RouterOS updates. MikroTik suggests adding a delay before the script applies settings. MikroTik Netinstall This option can suit a fleet of identical CAPs.

Netinstall does not see the router: what to check?

Check the link first, then the PC firewall and Etherboot port. Once the router appears, check that the packages match its architecture.

  1. Link drops during reboot. Try a switch between the PC and router, especially if you are using a USB Ethernet adapter.
  2. Firewall or antivirus blocking BOOTP (bootps/udp), TFTP (tftp/udp), or UDP 5000.
  3. Wrong port. MikroTik’s Netinstall documentation states devices netboot from their first port (ether1) or the port marked BOOT. On CRS520, CRS804, and CRS812 switches, the default Etherboot port depends on the model and is configurable with etherboot-port, per the RouterBOARD documentation.
  4. Live LAN in the path. Use an isolated cable, not your production switch.
  5. Old Netinstall build. Update to the latest Stable or Testing build. MikroTik troubleshooting checklist
  6. Bad cable. Try another Ethernet cable. MikroTik troubleshooting checklist
  7. Check the PC. Try Netinstall on a spare router you can erase to confirm that the setup works. MikroTik troubleshooting checklist

What if protected RouterBOOT is enabled?

Protected RouterBOOT disables RouterBOOT console access and the reset button’s boot-mode function, which blocks normal Etherboot. If you can still log in to RouterOS as an administrator, disable protected-routerboot there. On RouterOS v7, press the device’s reset or mode button to confirm the change. MikroTik RouterBOARD

Reformat only if you’ve lost all access and know the configured hold window. Start the Netinstall host first. At power-on, hold reset longer than reformat-hold-button (5 to 300 s, default 20 s) and release before reformat-hold-button-max (15 to 600 s, default 10 minutes). The reformat permanently erases RouterOS, its configuration and its files, and resets RouterBOOT settings. The router then reboots into Etherboot for Netinstall. MikroTik RouterBOARD If you enable protection, record the hold window.

After the reinstall

Bring RouterBOOT level with the new RouterOS: /system routerboard upgrade, /system reboot, then confirm current-firmware matches upgrade-firmware in /system routerboard print (per the RouterBOOT manual).

If you have the pre-failure .rsc, check it with verbose=yes and dry-run before importing it. A dry run checks for errors without applying the configuration, and it requires verbose mode. MikroTik Configuration Management Set the system user passwords again and add back the user SSH keys when rebuilding from the text export. On a device running the AP Router default configuration, reconnect to a LAN port (ether2 or higher) to reach the bridge at 192.168.88.1, then run our first-hour hardening checklist before the WAN cable goes back in. Once the WAN is connected, verify IP reachability and DNS resolution from the RouterOS terminal, as shown in MikroTik’s First Time Configuration guide:

/ping 8.8.8.8
/ping google.com

If the IP ping succeeds but the domain name fails to resolve, check DNS.

FAQ

Does Netinstall delete the license key?

No. Netinstall preserves existing RouterOS license keys and RouterBOOT settings. To install a different license with netinstall-cli, pass the .KEY file with -k. MikroTik Netinstall

Can Netinstall fix a MikroTik with a forgotten password?

Yes. An empty or default Netinstall replaces the old configuration, including the old password. Try a reset-button configuration reset first if the button is available. MikroTik Netinstall MikroTik RouterBOOT

If Protected RouterBOOT is enabled and an administrator can still log in, disable it from RouterOS. On RouterOS v7, press the device’s reset or mode button to confirm the change. If all access is lost, the documented last resort is an irreversible reformat followed by Netinstall, provided you know the configured hold window. MikroTik RouterBOARD

Which port do I plug into for MikroTik Netinstall?

Use ether1 or the port labelled BOOT. MikroTik’s Netinstall documentation states that devices netboot from their first port (Ether1) or the port marked BOOT. On CRS520, CRS804, and CRS812 switches, the default Etherboot port depends on the model and can be changed via etherboot-port, per the RouterBOARD documentation. Cable it directly to the PC, or through a dumb switch with no DHCP snooping (or mark the Netinstall port trusted if snooping is enabled).

Why is Netinstall stuck on sendFile?

A package for the wrong CPU architecture or a host firewall blocking UDP 5000 can stall the sendFile step. Warren Young’s NetInstall notes Check the package architecture and the host firewall rules.

Evidence and limits. The procedure was checked on 2026-11-28 against the RouterOS 7.26 manual, MikroTik’s archived documentation and downloads page, and Warren Young’s netinstall-cli notes. No hands-on testing was performed for this guide.

Sources

  1. Netinstall - MikroTik Documentation
  2. Problems with Netinstall? - RouterOS knowledge base
  3. RouterOS configuration reset - MikroTik Documentation
  4. RouterBOARD - MikroTik Documentation
  5. Serial Console - MikroTik Documentation
  6. RouterBOOT - RouterOS Manual
  7. Configuration Management - MikroTik Documentation
  8. RouterOS downloads - MikroTik
  9. Run NetInstall in a VM - MikroTik Solutions (Warren Young)
  10. Upgrading to v7 - RouterOS Manual
  11. Default configurations - RouterOS Manual
  12. MAC server - RouterOS Manual
  13. First Time Configuration - RouterOS Manual

Related