Community discussions

MikroTik App
 
davidreaton
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 88
Joined: Thu Oct 02, 2014 12:21 am

NetInstall Instructions

Tue Sep 25, 2018 5:59 am

I've tried NetInstall a number of times for Bricked routers, but with limited success. I've recently worked out a method which works consistently for me:

On PC:
Set ethernet properties / IP4
IP address: 192.168.88.2
Subnet Mask: 255.255.255.0
Default Gateway: 192.168.88.1
Preferred DNS server: 192.168.88.1

Download latest ROS firmware and corresponding Netinstall
Turn off firewall
Run NetInstall
Net Booting – 192.168.88.3, Boot server enabled (use a different IP for router discovery)
Ethernet cable from computer to router eth 1
Hold reset button, plug in power, wait for router to show up in Netinstall window
Net Booting – Change IP address back to client address: 192.168.88.2
Select router
Browse for ROS firmware to install
Select (check box) corresponding ROS package
Click install.
After completion, click reboot. If this option does not appear, do a paperclip reset of the router to load the default configuration.

What I discovered that helped was to use a different IP when NetInstall is searching for routers, then switch back to the client IP defined earlier.
 
User avatar
NathanA
Forum Veteran
Forum Veteran
Posts: 829
Joined: Tue Aug 03, 2004 9:01 am

Re: NetInstall Instructions

Tue Sep 25, 2018 3:10 pm

It boggles the mind how many people do not understand the principles on which Netinstall works. Perhaps the Wiki documentation is not well-written, and I am just blind to it because I understand it and have been using it for so long...

"Net Booting – Change IP address back to client address: 192.168.88.2" << this step is absolutely unnecessary and won't actually do anything.

Explanation: Netinstall contains a built-in BOOTP (DHCP) server. The IP address that you are configuring on the Net Booting screen in Netinstall is the IP address that *you are asking Netinstall to assign to your router*. It has nothing to do with the IP address of your computer (other than the fact that it needs to be within the same subnet as the one you assigned to the computer, so that the router and computer can ARP to each other!). After your router is assigned this address, it will then communicate with your computer running the Netinstall application using this address.

Therefore it is necessary that the Net Booting IP address be *different* from the address you have assigned to the computer (but, again, within the same subnet). Setting it to the same address as your computer is nonsense because it means IP conflict...if you make it match your computer's IP, the router won't be able to talk to the computer because they will both have the same IP address.

Now, in your case, you are setting the Net Booting IP to 88.3 to start with, which is different than your computer's address (88.2), so all works fine for you. But by the time that the router shows up on the Netinstall screen, it has already been assigned the 88.3 address, so although going back to Net Booting and changing the IP to 88.2 to match the computer is *wrong*, in your case it doesn't do any harm because the IP assignment to the router has already taken place and it is already using 88.3, as it should.

So that step in your instructions doesn't do any harm (because you are doing it after DHCP assignment has already happened), but it doesn't do any good, either. If you omit it, everything will still work just fine.

-- Nathan
 
davidreaton
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 88
Joined: Thu Oct 02, 2014 12:21 am

Re: NetInstall Instructions

Tue Sep 25, 2018 6:22 pm

Nathan: Thanks for your comments and for not hitting me too hard! (lots of mean comments on some forums, but MT seems better). Your explanation makes sense. I wish I could have seen this information sooner.

You're right about the MT NetInstall instructions. They could be better. Why do people struggle with this? Over the past few years, I've had MT routers become bricked during routine ROS upgrades. They'd be in a continuous boot cycle, and could not be reset. Using NetInstall - NetInstall could find my router. I selected the proper ROS version. Clicking INSTALL did nothing. No formatting - no progress bar, just nothing. Trying the process again from scratch sometimes produced slightly different results - the 'ready' notation in the Hardware window would disappear for 5 seconds or so and then nothing again. I've RMA'ed several MT devices because I couldn't recover them. Others on the forums have these same exact experiences. What are we doing wrong??? What do we need to do differently? Is the correct NetInstall version an absolute requirement? ie: ROS 43.3 paired with NetInstall 43.3. If so this should be hilighted in BOLD.

For me, the latest episode was, again, during a routine ROS upgrade (Copied ROS v 43.3 to files section of device. Reboot. Bricked). I couldn't RMA this one - almost 2 years old, so I tried playing with NetInstall parameters again, and I came up with the scheme I posted which did work, although with a redundant step, as you explained.

A simple step by step explanation of what to do and WHY to do it would be helpful.

Your comments are appreciated. I'm learning, slowly but surely!

Regards,

Dave
Last edited by davidreaton on Tue Sep 25, 2018 11:44 pm, edited 1 time in total.
 
8cqv
Frequent Visitor
Frequent Visitor
Posts: 58
Joined: Tue Mar 06, 2018 5:25 pm

Re: NetInstall Instructions

Tue Sep 25, 2018 6:28 pm

I am also curious why the instructions say to set DNS and gateway to the PC - they are not used in a direct link like this.

I had a fight my AC2 the other day after a power problem during config change and so was using the Wiki, had a big struggle till discovered I still had another interface up on the host machine that was causing the problem. I was a bit confused by why the wiki says to use fictional DNS and gateway - seems to add more risk of creating a problem than it solves?
 
User avatar
NathanA
Forum Veteran
Forum Veteran
Posts: 829
Joined: Tue Aug 03, 2004 9:01 am

Re: NetInstall Instructions

Wed Sep 26, 2018 2:33 am

NetInstall could find my router. I selected the proper ROS version. Clicking INSTALL did nothing. No formatting - no progress bar, just nothing. Trying the process again from scratch sometimes produced slightly different results - the 'ready' notation in the Hardware window would disappear for 5 seconds or so and then nothing again.
`
I haven't tested this, but if in the past you made the incorrect assumption that the IP you specify in "Net Booting" has to match the computer's IP, then that might explain your symptoms. I believe that the Netinstall client (running on the router) doesn't actually know the IP address of the Netinstall server (your computer) and so sends out broadcast traffic to announce its presence, which is how Netinstall on the computer "finds" the router (it is just listening for broadcast traffic). But if the client and server both have the same address configured, then when the server starts sending commands and data back to the client, it's going to be unable to communicate with that client.

Actually, now that I think about it, that can't completely explain what you saw, since if you assigned the same IP to the client as to the server, then it would not have been possible for the client device to download and run the Netinstall client software/bootstrap from the server. I'll have to play around with things to figure out how exactly you might've been setting things up such that they broke down in this way.
`
Is the correct NetInstall version an absolute requirement? ie: ROS 43.3 paired with NetInstall 43.3. If so this should be hilighted in BOLD.
`
It isn't a hard and fast requirement that Netinstall version and RouterOS version you want to install have to match exactly, though it is recommended. You have no idea what might have changed about RouterOS architecture in between versions, and Netinstall has to make some assumptions. If something changes in a newer version of RouterOS that makes it so that it can't be installed with older versions of Netinstall, of course the most current version of Netinstall will have been updated to take that change into account. This is rare enough of an occurrence, though, that I usually don't have problems using older Netinstall to install newer RouterOS. But if something isn't working, then why wouldn't you take 2 minutes to download the latest version of Netinstall just to eliminate that as a potential variable?
`
I am also curious why the instructions say to set DNS and gateway to the PC - they are not used in a direct link like this.
`
Agreed, they aren't needed, and I also agree that instructing people to populate DNS and gateway fields probably only leads to further unnecessary confusion. They also can't hurt, though, and it can often be useful. For example, I do Netinstalls often enough from a computer that is already connected to another network and which has active TCP sessions (SSH sessions, Remote Desktop connections, etc.) that I don't want to terminate *just* so that I can perform a Netinstall. So I just leave my IP settings on my computer untouched and plug the router that needs to be Netinstalled into the same switch my computer is already plugged into. You do have to be careful to only run the Netinstall server's BOOTP server for the minimum amount of time (you don't want other computers on your LAN trying to get or renew an IP lease to get a response back from the Netinstall server), and you will also need to very briefly/temporarily shut the LAN's DHCP server off so that the Netinstall client doesn't get offered a lease from it before it hears from the Netinstall server, but other than those considerations, this works just fine.

-- Nathan
 
davidreaton
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 88
Joined: Thu Oct 02, 2014 12:21 am

Re: NetInstall Instructions

Wed Sep 26, 2018 6:43 pm

Thanks again, Nathan. I'm going to redo my simple instructions, eliminating the unneeded steps that have been pointed out. Then, I'll test it on a variety of MT devices. I'll post results and see if any of the previous anomalies occur.

Thanks to all for the help!

Regards,

Dave
 
davidreaton
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 88
Joined: Thu Oct 02, 2014 12:21 am

Re: NetInstall Instructions

Thu Sep 27, 2018 7:28 pm

I played with NetInstall for a couple hours, testing to see what was important, and what was not. My setup: Microsoft surface Pro with Ethernet dongle, RB951G. I downloaded ROS 6.40.9 and NetInstall 6.40.9, and also ROS 6.43.2 and NetInstall 6.43.2. I noted that, after unzipping, these 2 NetInstall files were significantly different in size.

Working with NetInstall 6.40.9 / ROS 6.40.9:
I followed the instructions below. Netinstall found my device. The 951 showed 'Ready' in the NetInstall window. I selected the proper ROS, clicked the INSTALL button. The 'Ready' notation disappeared, nothing else happened, and after about 5 seconds, the 'Ready' re-appeared. Clicked INSTALL button again, same result. I closed NetInstall. Ran NetInstall again. It remembered all the info, and my device showed 'Ready'. Clicked INSTALL - worked perfectly.

Working with NetInstall 6.40.9, but with ROS 6.43.2:
Followed instructions (below), and NetInstall 6.40.9 successfully downloaded ROS 6.43.2.

Working with NetInstall 6.43.2 and ROS 6.43.2:
NetInstall had some trouble finding my device, but when it finally did, it downloaded ROS 6.43.2 successfully.

What I learned:

1) There's a specific NetInstall for each ROS release. Although I successfully used a mismatched NetInstall/ROS pair, this is not recommended. There's a reason that NetInstall 6.43.2 is 8 MB bigger than NetInstall 6.40.9. I just don't know what that reason is.

2) Even when there's problems with NetInstall finding your device, or downloading ROS, keep trying. Re-run NetInstall, power down/up your device. Restart everything if necessary. This process is not robust, at least not for me.

Here's my new instruction list, based on helpful comments from others, and my experience.



Netinstall. These instructions worked for me, MOST of the time.

On laptop: Set ethernet port properties / IP4
IP address: 192.168.88.2
Subnet Mask: 255.255.255.0
Download latest ROS firmware and corresponding Netinstall. Note that there’s a different, updated NetInstall for each ROS release.
Turn off firewall
Run NetInstall. If it asks about ‘SmartScreen’, click run.
On NetInstall screen: Net Booting button– 192.168.88.3, Boot server enabled. This is the IP address that NetInstall will assign to your device, to allow communication.
Attach ethernet cable from computer to router eth 1
Hold reset button, plug in power, with for router to show up in Netinstall window. May take 30 seconds or more. If nothing shows up after a few minutes, close NetInstall, unplug power to device, and start again. Run NetInstall, confirm Net Booting information, hold reset button, power up.
On NetInstall screen, select your device.
Browse for ROS firmware to install
Select (check box) corresponding ROS package
Click install. You should see ‘formatting’ then a progress bar. If this does not work, close NetInstall. Run Netinstall, try again.
After completion, click reboot. If this option does not appear, do a paperclip reset of the router to load the default configuration
REMEMBER to turn your firewall back on.
 
idanmikos
just joined
Posts: 19
Joined: Thu Nov 01, 2018 2:45 pm
Location: Bucharest

Re: NetInstall Instructions

Thu Nov 01, 2018 3:48 pm

Thank you, David!

Your step by step instructions worked perfectly for my new hAP mini.
Have tried hours to make Netinstall working, but there wasn't any RB showing up.
My fingers were painful for how many times (and minutes) I've been holding the reset button pressed.
Thank you again!👍

Dan

PS. For me wasn't necessary to change the Net booting IP. Apparently it was the windows 10 firewall which blocked netinstall.
My hAP mini became unusable after completely resetting it (removing all configuration), in order to use as repeater.
Unfortunately it lost its configuration after power off... and no more default configuration boot was possible. It was completely unreachable.
Now works again 😊
 
amity2kare
newbie
Posts: 35
Joined: Tue Feb 13, 2007 4:24 pm
Location: INDIA

Re: NetInstall Instructions

Sun Nov 18, 2018 2:38 pm

Hi,

I've been working with mikrotik devices since 1998 and have done a lot of netinstalls. One thing I can say for sure and concur with the statements above, the process is a bit iff-ish. Since the last couple of months there have been a few devices I have tried to netinstall and it just won't work. I have tried with versions starting with 6.40.7 going up to 6.43.4. I have always matched the netinstall and routeros versions. I have tried with Windows 7, Windows 8, Windows 8.1, Windows 10 and Linux (Wine). I have disabled all services like firewalls etc on the PC, even performed a factory reset on the mikrotik but the router just won't get detected on the netinstall PC. On the other hand I have checked on the router (after boot-up) while netinstall is running on the PC and the PC indeed does show up in the neighbours as expected. The only reason I have been trying so hard is because over the past couple of years I have had client-side issues like intermittent high latency and packet loss, CPU usage spikes etc which persisted through version upgrades/downgrades but were resolved after netinstall. A few customers have even moved to other hardware like Huawei/Cisco due to this issue.

Regards

Amit
 
bdoms
just joined
Posts: 1
Joined: Sat Feb 22, 2020 3:41 am

Re: NetInstall Instructions

Sat Feb 22, 2020 8:40 am

I know I'm grave digging on this post but I wanted to add to this because I was able to fix a couple of
dude routers with the info posted on this thread. This is more of a reply to amity2kare
I ended up using a old windows xp machine with a native serial port and hyper terminal and netinstall
StarTech.com 2m Black DB9 RS232 Serial Null Modem Cable F/F - DB9 Female to Female - 9 pin RS232 Null Modem Cable - 2 meter, Black
^^ this cable ^^
 
User avatar
vecernik87
Forum Veteran
Forum Veteran
Posts: 882
Joined: Fri Nov 10, 2017 8:19 am

Re: NetInstall Instructions

Fri Jul 02, 2021 4:46 am

One important note, which worked for me:
disable all other interfaces, except your Ethernet which you use for netinstall.

I had several unsuccesful attempts to netinstall. Originally, I turned off my wifi but didn't disable the interface. I also didn't disable bluetooth PAN as well as HyperV switch.

After I went to control panel and disabled every single interface except my Ethernet, Netinstall worked straight away. Several devices appeared without any delay, each of them on first try.

I believe this step (disabling interfaces) is crucial to succesful Netinstall and wiki does not mention it correctly. Wiki says "disconnect from other networks" but not "disable interfaces".
 
Rexx63
just joined
Posts: 1
Joined: Tue Aug 31, 2021 3:07 am

Re: NetInstall Instructions

Tue Aug 31, 2021 3:09 am

Vecernik87 Created an account just to Thank You for this! As soon as I disabled all the other network ports, Netinstall found my router right away.
Last edited by Rexx63 on Tue Aug 31, 2021 3:10 am, edited 1 time in total.
 
User avatar
iaskakho
just joined
Posts: 17
Joined: Sun Sep 05, 2021 9:27 pm
Location: New York, USA
Contact:

Re: NetInstall Instructions

Thu Sep 09, 2021 2:20 am

I wanted to provide my experience.

I was updating the mini hAP because it doesn't have enough space via netinstall.
[iaskakho@ap1] > /system routerboard print 
       routerboard: yes
        board-name: hAP mini
             model: RouterBOARD 931-2nD r2
     serial-number: 94A2096251B5
     firmware-type: qca9531L
  factory-firmware: 6.42.5
  current-firmware: 6.42.5
  upgrade-firmware: 6.42.5
  
To set the device into Ethermode I used the following command and then reboot it:
/system routerboard settings set boot-device=try-ethernet-once-then-nand
/system reboot
-- Downloaded the netinstall linux binary x86 from the downloads mikrotik site:
  
   root  ~  Downloads  netinstall-6.48.4  ./netinstall -a 10.0.2.12 ../routeros-smips-6.48.4.npk
Using server IP: 10.0.2.48
Starting PXE server
Waiting for RouterBOARD...
PXE client: B8:69:F4:4C:9F:CD
Sending image: mips
Discovered RouterBOARD...
Formatting...
Sending package routeros-smips-6.48.4.npk ...
Ready for reboot...
Sent reboot command


-- You need to make sure your firewall is set to allow 3 udp ports 67, 69, 5000
 
 root  ~  netstat -tulpn |grep netin
udp        0      0 0.0.0.0:5000            0.0.0.0:*                           1772778/./netinstal 
udp        0      0 0.0.0.0:67              0.0.0.0:*                           1772779/./netinstal 
udp        0      0 0.0.0.0:69              0.0.0.0:*                           1772779/./netinstal 
 root  ~  firewall-cmd --add-port=67-69/udp 
success

-- Make sure you download the file with with correct architecture for your device:
 
[iaskakho@ap3] > /system resource print 
                   uptime: 5m53s
                  version: 6.48.4 (stable)
               build-time: Aug/18/2021 06:43:27
         factory-software: 6.42.2
              free-memory: 8.7MiB
             total-memory: 32.0MiB
                      cpu: MIPS 24Kc V7.4
                cpu-count: 1
            cpu-frequency: 650MHz
                 cpu-load: 27%
           free-hdd-space: 7.7MiB
          total-hdd-space: 16.0MiB
  write-sect-since-reboot: 348
         write-sect-total: 12862
               bad-blocks: 0%
        [b]architecture-name: smips[/b]
               board-name: hAP mini
                 platform: MikroTik
  
One thing I wonder if we should be updating the Firmware or not?
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 11381
Joined: Thu Mar 03, 2016 10:23 pm

Re: NetInstall Instructions

Thu Sep 09, 2021 10:44 am

One thing I wonder if we should be updating the Firmware or not?

I'ts been ages since I've seen last routerboot firmware changelog so it's moot what changes are included in firmware. However there have been some posts (by MT staff) about need for recent firmware in order to boot ROS v7 ... which means there are some changes in firmware after all.

Personally, I always upgrade firmware as well ... and I mostly skip the second reboot needed for new firmware to load, I leave that to reboots for other reasons (most of times that's tied to subsequent ROS upgrades :wink: ).
 
User avatar
SiB
Forum Guru
Forum Guru
Posts: 1888
Joined: Sun Jan 06, 2013 11:19 pm
Location: Poland

Re: NetInstall Instructions

Thu Sep 09, 2021 11:07 am

I can share my HowTo NetInstall Tips and that's rescue me with my foreign locations..
Person just share at phone hotspot to share internet to Laptop via wifi... and I connect to remote laptop via TeamViewer in my case.
I use netinstall to fix RB with my tips.
Of course, the worse scenario when I cannot login into RB and Person must press a button... then I send backup Unit :)
 
maigonis
Member Candidate
Member Candidate
Posts: 180
Joined: Sat Jul 20, 2019 8:16 pm

Re: NetInstall Instructions

Sat Sep 11, 2021 8:41 pm

I use linux as netinstall host, because of multiple issues on Windows (antivirus, interfaces etc), besides there is more log messages on linux, so you can see whats going on.

Netinstall is L2 OSI layer process, you need to set only basic things like IP and subnet, no default gateway, dns etc. I do netinstall through switches, but you must be carefull, managed switch configuration can block netinstall process.

As long as both devices are on one network it should work, I have hosted netinstall server on virtual mashines also.
 
mdella
just joined
Posts: 2
Joined: Fri Oct 22, 2021 12:16 am

Re: NetInstall Instructions

Tue Oct 26, 2021 7:21 pm

Unfortunately where we have some of these routers, we don't necessarily have people in those locations... but what we DO have on the network is a "DHCP helper-address" to forward DHCP/BOOTP requests to a Kea-1.8 server (with the BOOTP hook library) as well as a TFTP server on the network...

What I "don't know" is what we can use to create a client-class specific to the MikroTik series (or in this case a test router CCR-1016-12S-1S+) so that I can create the boot-file-name value for the latest image on our tftp server... Has anyone ever set up a Kea client-class for MikroTik or gotten these to boot using a standard DHCP/BOOTP environment (not the netinstall app which requires either a windows box or windows VM on the local network which is very difficult as we'd have to send an engineer on a road trip...)

This bricking of a "stable" image has happened often enough that we now are working on a project to actually correctly BOOTP these devices in place in the even of a major catastrophy (in this case, "kernel not found or data is corrupted").

Unfortunately I don't have a wireshark out in this data center (and the VM server was moved elsewhere for an emergency so not even virtual support atm).

Relevant kea-dhcp4.conf items:
{ "subnet": "172.30.248.0/22",
"pools": [
{ "pool": "172.30.248.16 - 172.30.248.31", "client-class": "BOOTP" },
{ "pool": "172.30.248.32 - 172.30.248.63", "client-class": "DHCP" }
],
"option-data": [
{ "name": "domain-name-servers",
"data": "172.16.1.15, 172.16.1.20" },
{ "name": "domain-name", "data": "company.com" },
{ "name": "dhcp-server-identifier", "data": "172.16.1.30" },
{ "name": "tftp-server-name", "data": "tftp.company.com" }
{ "name": "routers", "data": "172.30.248.1" }
],
"reservations": [
{ "hw-address": "6c:3b:6b:ed:cb:ff", // Mikrotik CCR1016 (SFP12 or eth13 MAC)
"boot-file-name": "routeros-tile-6.48.5.npk" }
]
}
 
Oluwamylez
just joined
Posts: 1
Joined: Fri Mar 06, 2020 7:02 pm

Re: NetInstall Instructions

Mon Nov 22, 2021 10:19 am

Hi Nathan,

Thank you so much for this, been doing this same process for years, but all of a sudden doesn't work anymore keeps showing ready but can't format the router either and the firewall has been disabled.

Kindly help with that.

It boggles the mind how many people do not understand the principles on which Netinstall works. Perhaps the Wiki documentation is not well-written, and I am just blind to it because I understand it and have been using it for so long...

"Net Booting – Change IP address back to client address: 192.168.88.2" << this step is absolutely unnecessary and won't actually do anything.

Explanation: Netinstall contains a built-in BOOTP (DHCP) server. The IP address that you are configuring on the Net Booting screen in Netinstall is the IP address that *you are asking Netinstall to assign to your router*. It has nothing to do with the IP address of your computer (other than the fact that it needs to be within the same subnet as the one you assigned to the computer, so that the router and computer can ARP to each other!). After your router is assigned this address, it will then communicate with your computer running the Netinstall application using this address.

Therefore it is necessary that the Net Booting IP address be *different* from the address you have assigned to the computer (but, again, within the same subnet). Setting it to the same address as your computer is nonsense because it means IP conflict...if you make it match your computer's IP, the router won't be able to talk to the computer because they will both have the same IP address.

Now, in your case, you are setting the Net Booting IP to 88.3 to start with, which is different than your computer's address (88.2), so all works fine for you. But by the time that the router shows up on the Netinstall screen, it has already been assigned the 88.3 address, so although going back to Net Booting and changing the IP to 88.2 to match the computer is *wrong*, in your case it doesn't do any harm because the IP assignment to the router has already taken place and it is already using 88.3, as it should.

So that step in your instructions doesn't do any harm (because you are doing it after DHCP assignment has already happened), but it doesn't do any good, either. If you omit it, everything will still work just fine.

-- Nathan

Who is online

Users browsing this forum: bbd and 18 guests