Professional Documents
Culture Documents
Nvsu FR Icd 05 00 Module 2 (Sam101) Student
Nvsu FR Icd 05 00 Module 2 (Sam101) Student
V. LESSON CONTENT
What is RouterOS?
In simple terms, RouterOS is routing software that runs on a PC based hardware platform.
Whether it’s a conventional X86 based PC, a RouterBOARD, embedded device, or a virtual machine,
RouterOS is an operating system that will make your device a dedicated router, a bandwidth shaper, a
transparent packet filter, or a wireless enabled device. Have an old PC lying around? With RouterOS, it
can be converted into a powerful router! RouterOS can also be installed on a virtual machine,
VMware/ESX environment, or parallels if you are using Mac. RouterBOARD is a hardware platform
manufactured by MikroTik. The product can range from a very small home router to a carrier class access
concentrator.
RouterOS License
WinBox
WinBox is a Microsoft Windows based GUI that is by far the simplest way to configure a RouterOS
device. It is extremely powerful and allows configuration of 99% of the feature set. WinBox is a standalone
executable, meaning it isn’t necessary to install anything on your PC other than to download the program,
simply save it to your computer and double click it to start it. If you don’t have WinBox already you can
download it from MikroTik.com.
The first time you try to connect to your MikroTik device it may or may not have an IP address
configured on it. One of the great features of WinBox is the ability to “get in” without an actual IP address
but a note of caution here is needed. Access using the MAC address should only be used in order to
configure an IP address on the device. It is not a reliable way of accessing the router.
With WinBox running, simply click the square button with the three dots to scan the local area
network for MikroTik devices. Then, if you click on the MAC address of your device, it will be loaded into
the “connect to” line. Conversely, if you click the IP address it will load the IP address into the same line.
Clicking the “Connect” button will then connect to the router.
Inside WinBox
Within WinBox, each function or facility has common elements. These elements are:
Colors are also used within WinBox to denote certain states of devices or options.
Red – If a rule or option is red, that denotes it is invalid. For instance, a DHCP Server configured on a
physical interface will turn red if the interface is removed or added to a bridge, thereby making the server
invalid. Another example is a firewall rule that has been created and later the interface is removed. This
rule will also turn red.
Blue – If there are two routes to the same destination, the active route will be black and the inactive route
will be blue.
Bold – In the wireless interface, the bold entries are the standard channels for the regulatory domain that
has been selected.
Accessing RouterOS
b. Serial Terminal
Using a serial cable is the “back door” method to get into the router if all else fails. For example, if you
accidentally disabled all of your Ethernet ports you will no longer be able to get in through WinBox, telnet
or SSH, so serial is your last option. If your computer does not have a serial port, you will need to purchase
a USB to Serial adapter at any computer store and install the drivers to use serial terminal.
Click the Install button to install that version. Note: If you are attempting to recover a board for
which you do not have the password, do not click the option “keep old configuration” as it will also keep
the password, thereby still rendering the board inaccessible. Note: Netinstall can be used in the manner
described above for recovering a board for which the password has been lost or for an initial install on a
PXE bootable device, compact flash, drive, hard drive, etc
At this point you will want to add an IP address or two, DHCP Server and a few other
configurations. Type the commands on the following page into a terminal window instead of pasting.
/ip address
add address=192.168.1.1/24 disabled=no interface=ether2
add address=192.168.2.1/24 disabled=no interface=wlan1
/ip pool
add name=dhcp_pool1 ranges=192.168.1.2-192.168.1.254
add name=dhcp_pool2 ranges=192.168.2.2-192.168.2.254
/ip dhcp-serveradd address-pool=dhcp_pool1 \
disabled=no interface=ether2 lease-time=3d name=dhcp1
add address-pool=dhcp_pool2 \
disabled=no interface=wlan1 lease-time=3d name=dhcp2
/ip dhcp-server config
set store-leases-disk=5m
Interfaces
Interfaces are the physical ports that allow input and output connections to the router. Interfaces
are accessed from the Interfaces button. Interfaces can be renamed by double clicking on the interface
name in the Interfaces list window and then setting their Name on the General tab. This will help you
identify them physically or logically or assist you with troubleshooting.
MikroTik RouterOS is a Linux based operating system that runs on proprietary hardware
(RouterBOARD), or on standard x86-based computers.
You can install it in VirtualBox and play around with this virtual device. For real hands on experience with
Mikrotiks , better buy the actual equipment since they are cheap. Go to their website and download the
latest Router OS for PC/86 At this time v6.47 is latest stable available version. Also available in torrent.
NVSU-FR-ICD-05-00 (081220) Page 5 of __
“In accordance with section 185. Fair use of copyrighted works of Republic Act 8293, the copyrighted works included in this material may be reproduced for educational purposes
only and not for commercial distribution.”
Republic of the Philippines
NUEVA VIZCAYA STATE UNIVERSITY
Bayombong, Nueva Vizcaya
INSTRUCTIONAL MODULE
IM No.: SAM101-1st-SY2020-2021
The trick here is to move the existing just created VDI image (under SATA) to IDE and load the ISO file
as well. See below the steps and screenshots in detail.
a) Go to the VM just created and Storage -> Controllers: SATA
b) Click on the *.vdi file and on your right and under Information note the Location of the file.
NVSU-FR-ICD-05-00 (081220) Page 6 of __
“In accordance with section 185. Fair use of copyrighted works of Republic Act 8293, the copyrighted works included in this material may be reproduced for educational purposes
only and not for commercial distribution.”
Republic of the Philippines
NUEVA VIZCAYA STATE UNIVERSITY
Bayombong, Nueva Vizcaya
INSTRUCTIONAL MODULE
IM No.: SAM101-1st-SY2020-2021
c) Remove the *.vdi attached under SATA.
d) Then go to Storage -> Controllers: IDE and add a new Hard Disk (right icon) and choose existing Disk.
e) Go to the Location you noted above and load the VDI image.
f) Go to Storage -> Controllers: IDE -> Empty and from the Attributes on the right load the RouterOS ISO
.
5. Once the RouterOS is loaded and running, Install the basic modules.
7. Use the fully cloned VM and start the machine . Now you can use CLI to enter any commands .
Try the following commands to see the MAC and enable dhcp client on ether1 port.
VII. EVALUATION (Note: Not to be included in the student’s copy of the IM)
VIII. ASSIGNMENT
Visit, Read and perform the examples in this website:
https://wiki.mikrotik.com/wiki/Manual:Initial_Configuration.
https://help.mikrotik.com/docs/display/ROS/First Time Configuration.
https://wiki.mikrotik.com/wiki/Manual:System/Packages
https://wiki.mikrotik.com/wiki/Manual:Upgrading_RouterOS
IX. REFERENCES
Discher, S. R. W. (2011). RouterOS by example: understanding MikroTik RouterOS through real life
applications. MicroTik.