Skip to content
MikroTik RouterOS Docs

Netinstall Recovery and Reinstallation

For the impatient: reinstall RouterOS on a corrupted or locked device.

Windows:

  1. Download Netinstall.exe and RouterOS packages from mikrotik.com/download
  2. Disable all network adapters except one, set static IP (e.g., 192.168.88.2/24)
  3. Run Netinstall as Administrator, set Client IP (e.g., 192.168.88.3)
  4. Power off device, hold reset button, power on, release when device appears
  5. Select device, browse to packages, click Install

Linux:

Terminal window
sudo ip addr add 192.168.88.2/24 dev eth0
sudo ./netinstall-cli -r -a 192.168.88.3 routeros-7.16-arm.npk

After install, access device at 192.168.88.1 with user admin (password on sticker or blank).

What this does: Netinstall reinstalls RouterOS on MikroTik devices via network boot (BOOTP/TFTP). It reformats the device’s storage and installs a fresh RouterOS image. The device license and RouterBOOT settings are preserved, but all configuration is erased.

When to use this:

  • Device is corrupted or won’t boot (boot loop)
  • Forgot admin password and cannot access device
  • Downgrading RouterOS to an earlier version
  • Recovering from failed upgrade
  • Starting fresh with factory RouterOS installation

Prerequisites:

  • Physical RouterBOARD hardware (not CHR or x86)
  • Direct Ethernet connection to device (no managed switches)
  • Single active network adapter on computer
  • Netinstall tool matching target RouterOS version
  • RouterOS packages for correct device architecture

Data Loss Warning

Netinstall reformats the device storage. All configuration, files, User Manager database, and Dude database will be permanently erased. Backup before proceeding if possible.

ItemPreservedErased
RouterOS LicenseYes-
RouterBOOT SettingsYes-
Serial NumberYes-
Configuration-Yes
User Accounts-Yes
Files on Storage-Yes
User Manager DB-Yes
Dude Database-Yes
SSH Host Keys-Yes

Download the correct RouterOS packages for your device architecture:

ArchitectureExample DevicesPackage Suffix
ARMhAP ax series, CCR2004-arm
ARM64CCR2116, CCR2216-arm64
MIPSBERB4xx, RB7xx, RB9xx, hEX-mipsbe
MMIPShEX S (RB760iGS)-mmips
SMIPShAP lite-smips
TILECCR1009, CCR1016, CCR1036, CCR1072-tile

Download “All packages” if unsure - Netinstall selects the correct architecture automatically.

Disable all network adapters except the one connected to the router:

  1. Open Control Panel > Network and Sharing Center > Change adapter settings
  2. Right-click each unused adapter and select Disable
  3. Only the Ethernet adapter connected to the router should remain enabled

Set a static IP address:

  1. Right-click the active adapter > Properties
  2. Select Internet Protocol Version 4 (TCP/IPv4) > Properties
  3. Select Use the following IP address
  4. Enter:
    • IP address: 192.168.88.2
    • Subnet mask: 255.255.255.0
    • Leave gateway blank

Configure the network interface:

Terminal window
# Replace eth0 with your interface name
sudo ip link set eth0 up
sudo ip addr add 192.168.88.2/24 dev eth0
  1. Go to mikrotik.com/download
  2. Download Netinstall (Windows) or Netinstall-cli (Linux)
  3. Download RouterOS packages for your device architecture (or “All packages”)
  1. Run as Administrator - Right-click Netinstall.exe > Run as administrator
  2. Select the correct network interface from the dropdown
  3. Click Net booting and enable it
  4. Set Client IP Address to an unused IP (e.g., 192.168.88.3)
  5. Click Browse and navigate to the folder containing RouterOS packages

Connect an Ethernet cable directly between your computer and the device’s boot port (usually ether1 or marked “BOOT”).

Method 1: Reset Button (Most Common)

  1. Disconnect power from the device
  2. Press and hold the reset button
  3. Connect power while holding the button
  4. Watch the LED pattern:
    • LED turns on briefly
    • LED turns off
    • When LED turns off, release the button
  5. Device should appear in Netinstall within 30 seconds

Method 2: Serial Console

  1. Connect serial cable (115200 baud, 8N1)
  2. Power on device
  3. Press Ctrl+E repeatedly until “trying bootp protocol” appears

Alternatively, press any key during boot to enter RouterBOOT menu, then press:

  • o for boot device
  • 1 for try-ethernet-once-then-nand
  • x to exit and boot

Method 3: From RouterOS (If Accessible)

/system/routerboard/settings set boot-device=try-ethernet-once-then-nand
/system/reboot
  1. The device appears in Netinstall’s device list (MAC address and IP shown)
  2. Select the device by clicking on it
  3. Select the packages to install (at minimum: routeros and system)
  4. Choose configuration option:
    • Keep old configuration - Attempts to preserve (not guaranteed)
    • Apply default config - Factory defaults
    • Apply empty config - No configuration
  5. Click Install
  6. Wait for installation to complete (progress bar shown)
  7. Device reboots automatically when finished
Terminal window
# Basic install with default configuration reset
sudo ./netinstall-cli -r -a 192.168.88.3 routeros-7.16-arm.npk
# Install with empty configuration
sudo ./netinstall-cli -e -a 192.168.88.3 routeros-7.16-arm.npk
# Install with custom script
sudo ./netinstall-cli -r -a 192.168.88.3 -s /path/to/config.rsc routeros-7.16-arm.npk
# Specify interface
sudo ./netinstall-cli -r -a 192.168.88.3 -i eth0 routeros-7.16-arm.npk

After installation completes:

  1. Restore your computer’s network settings to DHCP or set IP in 192.168.88.x range
  2. Connect to the device using:
    • WinBox via MAC address (device discovery)
    • WinBox via IP: 192.168.88.1
    • WebFig: http://192.168.88.1
    • SSH: ssh [email protected]
  3. Login as admin with:
    • Password from sticker on device (newer devices)
    • Blank password (older devices)

Device continuously reboots and never reaches RouterOS:

  1. The upgrade may have failed due to insufficient storage
  2. Use Netinstall to perform a clean installation
  3. Consider installing fewer packages if storage is limited

Cannot access device due to forgotten password:

  1. Use Netinstall with reset configuration option
  2. All configuration including passwords will be erased
  3. Device boots with default admin/blank or sticker password

Need to install an older RouterOS version:

  1. Download the older RouterOS packages from MikroTik archive
  2. Use Netinstall normally with older packages
  3. RouterOS will be downgraded to the specified version

Scenario: Install with Pre-configured Script

Section titled “Scenario: Install with Pre-configured Script”

Deploy custom configuration automatically after reinstall:

  1. Create a RouterOS script file (.rsc) with your configuration
  2. Use the -s option (Linux) or script field (Windows)
Terminal window
sudo ./netinstall-cli -r -a 192.168.88.3 -s initial-config.rsc routeros-7.16-arm.npk

Example script (initial-config.rsc):

:delay 15s
/interface/bridge add name=bridge1
/ip/address add address=10.0.0.1/24 interface=bridge1
/interface/bridge/port add bridge=bridge1 interface=ether2
/interface/bridge/port add bridge=bridge1 interface=ether3
/ip/dhcp-server/network add address=10.0.0.0/24 gateway=10.0.0.1 dns-server=10.0.0.1
:log info "Initial configuration applied"

Scenario: Remote Reinstall with Preboot Etherboot (v7.9+)

Section titled “Scenario: Remote Reinstall with Preboot Etherboot (v7.9+)”

Configure device to automatically search for Netinstall server on boot:

/system/routerboard/settings set preboot-etherboot=10s preboot-etherboot-server=192.168.88.2

The device will search for a Netinstall server for 10 seconds on each boot. If found, it enters Netinstall mode; otherwise, it boots normally.

OptionDescription
-rReset configuration to defaults
-eApply empty configuration (no defaults)
-a <ip>Client IP address to assign to device
-i <iface>Network interface to use
-s <file>Pre-configure with .rsc script
-k <file>Install license key file
-bDiscard branding package
-mMultiple device mode (batch install)
Device TypeBoot Port
Most routersether1
Labeled devicesPort marked “BOOT”
CCR seriesCheck product manual
CRS switchesUsually ether1 or sfp1
hAP seriesether1

Confirm successful installation:

After Netinstall, device should boot to RouterOS within 60 seconds.

/system/resource print

Expected: Shows installed RouterOS version.

/ip/address print
/interface/bridge print

Expected: Default IP 192.168.88.1/24 on bridge or LAN interface.

/system/license print

Expected: License level matches device capabilities.

SymptomCauseSolution
Device not appearing in NetinstallMultiple network adapters activeDisable all adapters except one
Device not appearing in NetinstallFirewall blocking BOOTP/TFTPDisable Windows Firewall or add exceptions (UDP 67, 68, 69)
Device not appearing in NetinstallWrong boot modeRetry reset button timing - hold until LED turns off
Device not appearing in NetinstallManaged switch between PC and deviceUse direct Ethernet connection
Device not appearing in NetinstallVirtual switches (Hyper-V, VMware)Disable virtual network adapters
Device not appearing in NetinstallProtected RouterBOOT enabledMust disable from RouterOS or use emergency reformat
Device not appearing in NetinstallUSB network adapter link issuesTry different USB adapter or motherboard port
Install failsWrong architecture packagesDownload “All packages” or correct architecture
Install hangs at percentageNetwork issue or timeoutRestart Netinstall and retry
Can’t access device after installWrong IP rangeSet computer IP to 192.168.88.x range
Can’t access device after installConnected to WAN portConnect to LAN port (not ether1)
DHCP snooping blockingSwitch filtering BOOTPDisable DHCP snooping or mark port as trusted

If the device doesn’t appear:

  1. Check Etherboot mode - LED should turn off after holding reset ~15 seconds
  2. Verify cable connection - Use a known-good Ethernet cable
  3. Check Netinstall log - Look for “Device found” messages
  4. Try different port - Some devices only support Netinstall on ether1
  5. Restart Netinstall - Sometimes helps after configuration changes

If Protected RouterBOOT is enabled and you’ve lost access:

  1. Determine the reformat-hold-button timing (default: 20 seconds)
  2. Power off device
  3. Hold reset button
  4. Power on and hold for exactly reformat-hold-button to reformat-hold-button-max time
  5. Release button
  6. Device reformats storage and enters Etherboot mode
  7. Use Netinstall to reinstall RouterOS

Common Mistakes

  • Holding reset button too long - Triggers Netinstall mode instead of factory reset (or vice versa)
  • Using a managed switch - DHCP snooping or link-flap issues can prevent detection
  • Multiple network adapters - Netinstall may send packets on wrong interface
  • Wrong architecture packages - Device won’t boot with incompatible packages
  • Forgetting to run as Administrator - Netinstall needs elevated privileges on Windows
  • Virtual adapters active - Hyper-V, VMware, VirtualBox adapters interfere with detection
Hold DurationLED StateAction
~3 seconds (before power)-Load backup RouterBOOT bootloader
~5 secondsFlashingFactory reset (load default config)
~10 secondsSolidEnable CAPs mode
~15 secondsOffEnter Netinstall/Etherboot mode
reformat-hold-button time-Emergency reformat (Protected RouterBOOT)
Terminal window
# Show help
./netinstall-cli --help
# Basic reinstall with reset
sudo ./netinstall-cli -r -a 192.168.88.3 routeros-7.16-arm.npk
# Empty config (no defaults)
sudo ./netinstall-cli -e -a 192.168.88.3 routeros-7.16-arm.npk
# With custom script
sudo ./netinstall-cli -r -a 192.168.88.3 -s config.rsc routeros-7.16-arm.npk
# Multiple packages
sudo ./netinstall-cli -r -a 192.168.88.3 routeros-7.16-arm.npk wifi-qcom-7.16-arm.npk
# Specify interface
sudo ./netinstall-cli -r -a 192.168.88.3 -i enp3s0 routeros-7.16-arm.npk

If Windows Firewall blocks Netinstall, add these exceptions:

ProtocolPortDirectionPurpose
UDP67InboundBOOTP Server
UDP68OutboundBOOTP Client
UDP69BothTFTP

Or temporarily disable Windows Firewall during the Netinstall process.