Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The available parameters are as follows: 

ParameterMeaning
-r

When the reinstallation process is performed, the current configuration is will be reset, and for devices that have it, the default configuration will be applied . (optional).

-e

When Performing the reinstallation process is performed will reset the device to an empty configuration.

-b

Option to discard the currently installed branding package from the device, otherwise it will be reinstalled together with RouterOS.

-k keyfileProvides the device with a license key in .KEY format . (optional).
-s userscriptPre-configures the device with the provided configuration (text file in .RSC format). This configuration also takes place of the default configuration. The script can access factory passwords with read-only variables $defconfPassword and $defconfWifiPassword (starting from RouterOS 7.10beta8). (optional).

-a IP

Uses a specific IP address that the Netinstall server will assign to the device. Mandatory, but can be auto-assigned if interface parameter used.

PACKAGESpecify a list of RouterOS.NPK format packages that Netinstall will try to install on the device . (mandatory). The system package must be listed first.
-i

Allows you to specify an interface . (optional).

Note
Note
title

If the "-r" or "e-" parameter is not specified, netinstall-cli will reinstall RouterOS  and will keep the current configuration by downloading current configuration database from the router, reinstalling the router (including disk formatting), and uploading the configuration back to it, the same as  Netinstall "Keep old configuration" option. However, it's important to note that this process solely applies to the configuration itself and does not impact the files, including databases like the User Manager database, Dude database, and others.

First make sure you have set the IP on your computer's interface:

...