Sunday, February 20, 2011

Netinstall

NetInstall Description

NetInstall is a program that runs on Windows computer that allows you to install MikroTiK RouterOS onto a PC or onto a RouterBoard via an Ethernet network.

You can download Netinstall on our download page.

NetInstall is also used to re-install RouterOS in cases where the the previous install failed, became damaged or access passwords were lost.

  • Your device must support booting from ethernet, and there must be a direct ethernet link from the Netinstall computer to the target device. All RouterBOARDs support PXE network booting, it must be either enabled inside RouterOS "routerboard" menu if RouterOS is operable, or in the bootloader settings. For this you will need a serial cable.

Note: For RouterBOARD devices with no serial port, and no RouterOS access, the reset button can also start PXE booting mode. See your RouterBOARD manual PDF for details. For example RB750 PDF

  • Netinstall can also directly install RouterOS on a disk (USB/CF/IDE) that is connected to the Netinstall Windows machine. After installation just move the disk to the Router machine and boot from it.

Screenshot

File:2009-01-27 1224.jpg

  • for installation over network, don't forget to enable the PXE server, and make sure Netinstall is not blocked by your firewall or antivirus. The connection should be directly from your Windows PC to the Router PC (or RouterBOARD), or at least through a switch/hub.


NetInstall Example

This is a step by step example of how to install RouterOS on a RouterBoard 532 from a typical notebook computer.

Requirements

The Notebook computer must be equiped with the following ports and contain the following files:

  • Ethernet port.
  • Serial port.
  • Serial communications program (such as Hyper Terminal)
  • The .npk RouterOS file(s) (not .zip file) of the RouterOS version that you wish to install onto the Routerboard.
  • The NetInstall program available from the Downloads page at www.mikrotik.com

Connection process

  1. Connect the routerboard to a switch, a hub or directly to the Notebook computer via Ethernet. The notebook computer Ethernet port will need to be configured with a usable IP address and subnet. For example: 10.1.1.10/24
  2. Connect the routerboard to the notebook computer via serial, and establish a serial communication session with the RouterBoard. Serial configuration example in in the Serial console manual
  3. Run the NetInstall program on your notebook computer.
  4. Press the NetInstall "Net Booting" button, enable the Boot Server, and enter a valid, usable IP address (within the same subnet of the IP address of the Notebook) that the NetInstall program will assign to the RouterBoard to enable communication with the Notebook computer. For example: 10.1.1.5/24
  5. Set the RouterBoard BIOS to boot from the Ethernet interface.

Configuring Bootloader

To access Routerboard BIOS configuration: reboot the Routerboard while observing the activity on the Serial Console. You will see the following prompt on the Serial Console “Press any key within 2 seconds to enter setup” indicating that you have a 1 or 2 second window of time when pressing any key will give you access to Routerboard BIOS configuration options.

(press any key when prompted):

You will see the following list of available BIOS Configuration commands. To set up the boot device, press the 'o' key:


What do you want to configure?   d - boot delay   k - boot key   s - serial console   l - debug level   o - boot device   b - beep on boot   v - vga to serial   t - ata translation   p - memory settings   m - memory test   u - cpu mode   f - pci back-off   r - reset configuration   g - bios upgrade through serial port   c - bios license information   x - exit setup 


Next Selection: Press the 'e' key to make the RouterBoard to boot from Ethernet interface:

Select boot device: * i - IDE   e - Etherboot   1 - Etherboot (timeout 15s), IDE   2 - Etherboot (timeout  1m), IDE   3 - Etherboot (timeout  5m), IDE   4 - Etherboot (timeout 30m), IDE   5 - IDE, try Etherboot first on next boot (15s)   6 - IDE, try Etherboot first on next boot (1m)   7 - IDE, try Etherboot first on next boot (5m)   8 - IDE, try Etherboot first on next boot (30m) 


The RouterBoard BIOS will return to the first menu. Press the 'x' key to exit from BIOS. The router will reboot.

Installation

Watch the serial console as the RouterBoard reboots, it will indicate that the RouterBoard is attempting to boot to the NetInstall program. The NetInstall program will give the RouterBoard the IP address you entered at Step 4 (above), and the RouterBoard will be ready for software installation. Now you should see the MAC Address of the RouterBoard appear in the Routers/Drives list of the NetInstall program.

Image:NetinstallStart.png

Click on the desired Router/Drive entry and you will be able to configure various installation parameters associated with that Router/Drive entry.

Image:Nconfig.PNG

For most Re-Installations of RouterOS on RouterBoards you will only need to set the following parameter:

Press the "Browse" button on the NetInstall program screen. Browse to the folder containing the .npk RouterOS file(s) of the RouterOS version that you wish to install onto the Routerboard.

Image:NConfig3.png

When you have finalized the installation parameters, press the "Install" button to install RouterOS.

Image:NetinstallC4.png

When the installation process has finished, press 'Enter' on the console or 'Reboot' button in the NetInstall program.

Image:NetinstallC5.png

Cleanup

1. Reset the BIOS Configuration of the RouterBoard to boot from its own memory.

Image:NetinstallC6.png

2. Reboot the RouterBoard.


Reset RouterOS Password

Netinstall can be used to reset password of RouterOS by erasing all configuration from the router. Uncheck 'Keep Old Configuration' during Netinstall and proceed with standard procedure,

Image:PasswordReset.png

Making a simple wireless AP with mikrotik

This article will show a very quick overview for beginners on setting up a Wireless Access Point in RouterOS Winbox graphical configuration tool.

Requirements

Instructions

Start by opening the Wireless Interface window in Winbox. You will see some wireless cards listed here, they might be disabled - to turn them on, click on the blue Enable button. Make sure that the interface is configured and the antennas are connected before you enable an interface.

  • Image:2009-06-04 1555.png

To configure an interface, double-click it's name, and the config window will appear. To set the device as an AP, choose "ap bridge" mode. You can also set other things, like the desired band, frequency, SSID (the AP identifier) and the security profile.

  • Image:2009-06-04 1556.png

You probably want your AP to be secure, so you need to configure WPA2 security. Close the wireless setting window with OK if you are done, and move to the Security Profiles tab of the Wireless interface window. There, make a new profile with the Add button and set desired WPA2 settings. You can choose this new security profile back in theInterface configuration.

  • Image:2009-06-04 1557.png

To see if any stations are connected to your AP, go to the Registration Table tab in the Wireless Interface window.

  • Image:2009-06-04 1558.png

Just connecting is probaly not enough, as your AP needs an IP address. This can be configured in the IP menu. Make sure that your stations also have IP addresses from the same subnet, or set up a DHCP server in this Router (not covered in this tutorial).

  • Image:2009-06-04 1559.png

If your ISP doesn't know about your new local network and hasn't set up proper routes to it, you need to configureSRC-NAT so that your stations have access to the internet via their private IP addresses. They will be masqueradedby the router's NAT functionality (not covered in this tutorial)

  • Image:2009-06-04 1560.png