Skills routeros-netinstall
📦

routeros-netinstall

Safe

Install and manage RouterOS devices with netinstall

MikroTik RouterOS device flashing requires understanding BOOTP, TFTP, package management, and scripting. This skill provides complete netinstall-cli reference documentation with automation patterns for single-device and multi-device installations.

Supports: Claude Codex Code(CC)
🥉 72 Bronze
1

Download the skill ZIP

2

Upload in Claude

Go to Settings → Capabilities → Skills → Upload skill

3

Toggle on and start using

Test it

Using "routeros-netinstall". Install RouterOS 7.22 with container and WiFi packages on an ARM64 device via eth0.

Expected outcome:

  • Run: sudo netinstall-cli -r -b -i eth0 routeros-7.22-arm64.npk container-7.22-arm64.npk wifi-qcom-7.22-arm64.npk
  • Ensure the device is in etherboot mode (hold reset button while powering on until it appears in netinstall).
  • The system package (routeros-*.npk) must be listed first in the command.

Using "routeros-netinstall". How do I enter etherboot mode using the RouterOS CLI?

Expected outcome:

  • Run this command in RouterOS CLI: /system/routerboard/settings/set boot-device=try-ethernet-once-then-nand
  • Then reboot the device. It will attempt ethernet boot once before falling back to NAND.
  • After netinstall completes, the boot device setting returns to normal.

Security Audit

Safe
v2 • 4/16/2026

This skill is a documentation-only SKILL.md file (252 lines) describing MikroTik RouterOS netinstall-cli usage. The static analyzer flagged 124 patterns, but all are false positives from misinterpreting markdown formatting. Backtick-enclosed text (e.g., `netinstall-cli`) is markdown inline code formatting, not Ruby/shell execution. Sudo references, shell command substitution examples, and network URLs appear in documented code examples and reference links. The file contains no executable code, no secrets, and no malicious patterns. Safe for publication.

1
Files scanned
252
Lines analyzed
0
findings
2
Total audits
No security issues found
Audited by: claude View Audit History →

Quality Score

38
Architecture
100
Maintainability
87
Content
31
Community
100
Security
100
Spec Compliance

What You Can Build

Network administrator deploying RouterOS at scale

Use netinstall automation patterns to flash multiple RouterOS devices simultaneously in a lab or production environment. Reference the multi-device install service loop with -m -o flags for efficient batch provisioning.

DevOps engineer building RouterOS CI/CD pipelines

Integrate netinstall-cli into containerized build pipelines for automated RouterOS testing. Reference the containerized netinstall pattern with VETH networking and environment variable configuration.

Technician recovering bricked RouterOS devices

Follow etherboot entry procedures and single-device install steps to recover devices that failed firmware updates or have corrupted configurations. Use the configure script pattern for customized defaults.

Try These Prompts

Basic netinstall command construction
I need to install RouterOS 7.22 on an ARM64 MikroTik device. Build the netinstall-cli command with reinstall defaults and discard branding package on interface eth0.
Modescript for device-mode configuration
Write a modescript that enables advanced mode with container and zerotier support, then show the netinstall-cli command to apply it on first boot.
Cross-platform netinstall on ARM host
I have an ARM64 Linux server and need to run netinstall-cli. Explain the QEMU user-mode setup and show how to auto-detect the correct QEMU binary for transparent execution.
Containerized netinstall service on RouterOS
Set up netinstall-cli as a RouterOS container that automatically installs RouterOS on devices connecting to the LAN. Configure the container with VETH networking, arm64 architecture, stable channel, and container plus wifi packages.

Best Practices

  • Always list the system package (routeros-VER-ARCH.npk) first in the netinstall-cli package list to ensure correct installation order.
  • Use a dedicated network interface or switch with no other DHCP sources to avoid BOOTP conflicts during etherboot device discovery.
  • Apply DNS retry logic (5 attempts with 2-second delays) when running netinstall in containers at boot time, as DNS may not be immediately available.

Avoid

  • Do not combine -r (reinstall with defaults) and -e (reinstall with empty config) flags. They are mutually exclusive and produce undefined behavior.
  • Avoid using USB Ethernet adapters directly between host and device. Link flaps from USB adapters can prevent device detection. Use a switch as an intermediary.
  • Do not run netinstall-cli on networks with active DHCP servers without isolation. BOOTP uses the same ports as DHCP and will cause address conflicts.

Frequently Asked Questions

What is the difference between netinstall and netinstall-cli?
Netinstall is the Windows GUI application. Netinstall-cli is the Linux command-line tool distributed as an x86 ELF binary. Both perform the same RouterOS installation function over Ethernet using BOOTP and TFTP protocols.
Why does netinstall-cli require root or sudo privileges?
Netinstall-cli uses BOOTP on port 67/68 and TFTP on port 69. These are privileged ports below 1024 that require root access on Linux systems. The tool also performs low-level network operations for device discovery.
Can I run netinstall-cli on a Mac or ARM Linux machine?
On x86_64 Linux, netinstall-cli runs natively. On ARM/ARM64 Linux, use QEMU user-mode emulation with qemu-i386-static or qemu-i386. On macOS, a full QEMU virtual machine with bridged networking is required because QEMU user-mode emulation is Linux-only.
What is the difference between a configure script and a mode script?
A configure script (-s flag) runs after default config is applied and persists across upgrades until re-netinstalled. A mode script (-sm flag, RouterOS 7.22+) runs once on first boot before other scripts and is auto-deleted after execution. Mode scripts are ideal for initial device-mode setup.
How do I enter etherboot mode on a MikroTik device?
Four methods exist: hold the reset button while powering on until the device appears in netinstall; press Ctrl+E during boot via serial console; set boot-device to try-ethernet-once-then-nand via RouterOS CLI and reboot; or use the protected bootloader method if previously configured.
Where do I download RouterOS package files (.npk)?
Download packages from download.mikrotik.com using the pattern: https://download.mikrotik.com/routeros/VERSION/routeros-VERSION-ARCH.npk. You can also extract individual packages from the all_packages-ARCH-VERSION.zip archive for your architecture.

Developer Details

File structure

📄 SKILL.md