Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Cover image for Netinstall MikroTik on Linux
anasrin
anasrin

Posted on • Edited on • Originally published atanasrar.github.io

     

Netinstall MikroTik on Linux

Background

I haveRB941-2nD-TC (hAP-Lite2) and it seem I misconfigured, so I need to reset configuration using netinstall technique.

Requirements

  • RouterOS base on your router architecture (in my case isSMIPS).
  • Netinstall (CLI Linux).
  • Plug out router from powerline.

Download all requirements files fromhttps://mikrotik.com/download, and selectRouterOS version (in my case isRouterOS v6).

Setup

Files

Extract all files to single folder, so we can work with the files easily.

Disable Internet Interface

Disable all internet interface such as WiFi, and only leaving with Ethernet.

IP Static

Usingip command.

sudoip addr add 192.168.88.2/24 dev <interface>;sudoiplink setdev <interface> up
Enter fullscreen modeExit fullscreen mode

Usingifconfig command.

sudoifconfig <interface> 192.168.88.2/24 up
Enter fullscreen modeExit fullscreen mode

Where<interface> is your ethernet interface name, you can print list ethernet interface usingnetstat -i, something likeeth* orenp0s* is your interface.

IP Gateway

Usingroute command.

sudoroute add default gw 192.168.88.1 <interface>
Enter fullscreen modeExit fullscreen mode

Check IP

Usingroute command to check if we success to setup IP.

route-n
Enter fullscreen modeExit fullscreen mode

It will print something like this.

Kernel IP routing tableDestination     Gateway         Genmask          Flags  Metric  Ref  Use  Iface0.0.0.0         192.168.88.1    0.0.0.0          UG     0       0      0  enp0s25192.168.88.0    0.0.0.0         255.255.255.0    U      0       0      0  enp0s25
Enter fullscreen modeExit fullscreen mode

Netinstall

Runnetinstall withsudo.

sudo ./netinstall-r-a 192.168.88.1 <routeros>
Enter fullscreen modeExit fullscreen mode
  • Plug ethernet cable from PC to router.
  • Press reset button on router.
  • Plug router to powerline.

Result

My netinstall result.

Netinstall Mikrotik on Linux

Known Issues

  • ### Only Show PXE client

Disable all interface except ethernet.

  • ### FAILED TO REPLY

Make sure you set IP gateway.

  • ### Using server IP: 0.0.0.0

Make sure you plug out router from powerline before you run netinstall.

References

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

  • Joined

More fromanasrin

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp