Skip to main content
Version: current

Netinstall package

The Netinstall package is an extra package, available for all devices running RouterOS starting from version 7.24beta1 and is available for all of the architectures excluding SMIPS.

This package allows RouterOS to be reinstalled remotely from another MikroTik device running RouterOS.

Prerequisites

  • RouterOS version 7.24beta1 and later.
  • Netinstall package enabled.
  • Target MikroTik hardware router connected to the same L2 network segment as the device being reinstalled.
warning

By default, the Netinstall package creates a NetinstallCache directory in the root directory. On devices with a flash directory, Netinstall-related files are stored in RAM. On devices without a flash directory, these files are stored on the device's persistent storage.

Ensure that the Netinstall server device has sufficient free storage space or RAM available.

You can also configure an external storage device to be used as the NetinstallCache/ directory in Netinstall → Settings.

Physically removed files from the Files menu will be automatically redownloaded if they are currently cached. In order to delete cached files, remove them from a Netinstall Cache menu. In case files were previously downloaded before the device was rebooted, they will be deleted.

Installation Workflow

  1. Install and enable the Netinstall package. The Netinstall package is available for WinBox, WebFig GUI and CLI and is located under the Tools menu or /tools/netinstall in the CLI.

  2. Configure a Netinstall interface. Add a new Netinstall interface, set the required parameters and run the device connected to that interface in BOOTP mode.

  3. Download or select the required RouterOS packages. The Netinstall package automatically installs the appropriate System package for the target device architecture.

  4. Boot the target device into Etherboot mode.

  5. Install RouterOS.

tip

If the Version parameter is not set, Netinstall package installs the latest RouterOS version available in the Check for Updates channel currently selected on the Netinstall server.

Additional packages must be selected explicitly.

General Configuration Options

ParameterDescription
SettingsAllows to set the NetinstallCache/ path directory. See the Prerequisites warning information. Example: /tool/netinstall/settings/set cache-directory=...

Netinstall Parameters

ParameterDescription
allow-etherboot (yes / no ; Default: yes)Allows the BOOTP requests on the selected interface. Will ignore the device if set to no.
allow-flashfig (yes / no ; Default: yes)Enables the FlashFig functionality
apply-default-configuration (yes / no ; Default: no)If enabled, the device will apply the default configuration script after installation and reboot. See /system/default-configuration/script/print.
auto-reboot (none / reboot / shutdown ; Default: reboot)Defines the action performed after device installation completes successfully.
etherboot-imageAllows to select the previously cached package to be installed.
etherboot-image-archSpecifies the CPU architecture required for the etherboot image. All other architecture requests will be ignored. If not specified, the detected architecture will be used.
extra-packagesAllows to add the extra packages to be installed alongside the system package. The routeros package will be installed by default.
install-once (yes / no ; Default: yes)Restrict installation to once per Netinstall run. The tool tracks MAC addresses of successfully installed devices and ignores subsequent BOOTP requests from the same MAC address during the current session.
interfaceSpecifies the Netinstall server network interface.
ip-rangeCustomizes the BOOTP ip-range to be used for netinstall process.
keep-old-configuration (yes / no ; Default: yes)Instructs Netinstall to read and restore the device core configuration (/export; /users) after installation. This option does not retain user files, containers, or similar data.
mac-addressSpecify a MAC address to allow for installation. When provided, all other BOOTP requests are ignored.
mode-fileSimilar to Mode script. Specifies a one-time custom script that runs on the device's first boot after installation. Use this script to configure device-mode, protected-routerboot, and other settings during device deployment. The mode script executes before any custom or default configuration scripts. Upon completion, the script is automatically removed from the device. If the script modifies the device-mode, the device reboots immediately after execution.
place-beforeInsert rule before existing rules
remove-branding (yes / no ; Default: no)Discard the currently installed branding package from the device. If not specified, the branding package is preserved. Factory-installed branding packages cannot be discarded and are always preserved.
script-fileAllows installation of a custom default configuration script on the device during installation. This replaces the RouterOS-supplied default configuration script. See /system/default-configuration/custom-script/print. The script is retained during RouterOS updates and used after subsequent configuration resets until the device is reinstalled with a new script or the script is removed.
versionSpecifies the RouterOS version to be installed. If the Version parameter is not set, Netinstall installs the latest RouterOS version available in the Check for Updates channel currently selected on the Netinstall server.
wait (yes / no ; Default: no)Keeps the device in the etherboot state and wait for user command to start installing.

Cache

Available action - Add for both GUI and CLI.

ParameterDescription
archMandatory parameter. Specifies the CPU architecture of the necessary files to be downloaded.
packagesAllows to add the extra packages list to be downloaded to the NetinstallCache/ directory.
versionSpecifies the RouterOS version packages to download. If the Version parameter is not set, Netinstall downloads the latest RouterOS version available in the Check for Updates channel currently selected on the Netinstall server.

Devices

The Netinstall Devices menu displays the list of the netinstalled devices and its states.

Available actions:

  • Clear the list.
  • Install menu. If additional parameters are chosen with an Install menu, all the previously set settings are overridden.

Available install parameters: auto-reboot, extra-packages, numbers, version.

/tool/netinstall/devices> install auto-reboot=reboot extra-packages=user-manager version=7.24beta1
ParameterDescription
auto-reboot (none / reboot / shutdown ; Default: reboot)Defines the action performed after device installation completes successfully.
extra-packagesAllows to add the extra packages to be installed alongside the system package. The routeros package will be installed by default.
numbersAllows to Select for which devices from the list the RouterOS to be reinstalled.
versionSpecifies the RouterOS version packages to download. If the Version parameter is not set, Netinstall installs the version selected for the interface main settings or if not specified, downloads the latest RouterOS version available in the Check for Updates channel currently selected on the Netinstall server.

Use cases

The Netinstall package can be used within the Preboot Etherboot for the scenario when one of the MikroTik routers with a Netinstall package installed is dedicated for remote recovery purposes. Set the preboot-etherboot-server=ip_address of the Netinstall server and reinstall the RouterOS remotely in case of any issues with a target device.

danger

Remember to disable or strictly filter the rules created not to unintentionally reinstall the system on each reboot.

Netinstall package Example

[admin@MikroTik] /tool/netinstall/add interface=bridge1 keep-old-configuration=no apply-default-configuration=yes auto-reboot=reboot mac-address=01:23:45:67:89:BB extra-packages=wifi-qcom,container version=7.23.1 ip-range=192.168.88.10-192.168.88.20

Verify the cached packages:

[admin@MikroTik] /tool/netinstall/cache/print
Columns: PATH, URL, STATUS
# PATH URL STATUS
0 NetinstallCache/container-7.23.1-arm64.npk https://upgrade.mikrotik.com/routeros/7.23.1/container-7.23.1-arm64.npk downloaded
1 NetinstallCache/linux.arm64 https://upgrade.mikrotik.com/routeros/7.23.1/netinstk/linux.arm64 downloaded
2 NetinstallCache/linux.arm64-uefi https://upgrade.mikrotik.com/routeros/7.23.1/netinstk/linux.arm64-uefi downloaded
3 NetinstallCache/wifi-qcom-7.23.1-arm64.npk https://upgrade.mikrotik.com/routeros/7.23.1/wifi-qcom-7.23.1-arm64.npk downloaded

Check the device state after installation:

[admin@MikroTik] /tool/netinstall/devices/print
Flags: N - NETINSTALL
Columns: MAC-ADDRESS, INTERFACE, STATE, LAST-STATE-UPDATE, EXTRA-PACKAGES, VERSION, ARCH, MODEL, LAST-STATE, AUTO-REBOOT
# MAC-ADDRESS INTERFACE STATE LAST-STATE-UPDATE EXTRA-PACKAGES VERSION ARCH MODEL LAST-STATE AUTO-REBOOT
0 N 01:23:45:67:89:BB bridge1 done 58s container 7.23.1 arm64 L009UiGS bootp reply sent reboot
wifi-qcom
tip

Looking for a different installation method? See the Windows or Linux instructions.