MikroTik RouterOS Installation


Mikrotik
MikroTik RouterOS™ is a router operating system and software which turns a regular Intel PC or MikroTik RouterBOARD™ hardware into a dedicated router.  MikroTik is an operating system based on the Linux kernel, known as the MikroTik RouterOS. Installed on the companys proprietary hardware (RouterBOARD series), or on standard x86-based computers, it turns a computer into a network router and implements various additional features, such as firewalling, virtual private network (VPN) service and client, bandwidth shaping and quality of service, wireless access point functions and other commonly used features when interconnecting networks. The system is also able to serve as a captive-portal-based hotspot system.

Releasing History
RouterOS version 6: May 2013
RouterOS version 5: March 2010
RouterOS version 4: October 2009
RouterOS version 3: January 2008

RouterOS ISO
https://download2.mikrotik.com/routeros/6.37.5/install-image-6.37.5.zip
https://download2.mikrotik.com/routeros/6.37.4/install-image-6.37.4.zip

Net-Install
https://download2.mikrotik.com/routeros/6.37.5/netinstall-6.37.5.zip
https://download2.mikrotik.com/routeros/6.37.4/netinstall-6.37.4.zip

Router License Purchase
http://wiki.mikrotik.com/wiki/Manual:Purchasing_a_License_for_RouterOS

RouterOS Installation
Download CD installation Image from MikroTikCD1

Burn ISO image to disk, you need PC with CD-ROMCD3

MikroTik RouterOS installation disk to CD-ROMCD4

RouterOS Packages to installCD6

Package Selection & InstallationCD7

process of the packages installationCD8

MikroTik RouterOS is successfully installedCD9

Default login is admin without any passwordCD10

Login to UserCD11

MikroTik Information


MikroTik
MikroTik RouterOS™ is a router operating system and software which turns a regular Intel PC or MikroTik RouterBOARD™ hardware into a dedicated router.  MikroTik is an operating system based on the Linux kernel, known as the MikroTik RouterOS. Installed on the companys proprietary hardware (RouterBOARD series), or on standard x86-based computers, it turns a computer into a network router and implements various additional features, such as firewalling, virtual private network (VPN) service and client, bandwidth shaping and quality of service, wireless access point functions and other commonly used features when interconnecting networks. The system is also able to serve as a captive-portal-based hotspot system.

The operating system is licensed in increasing service levels, each releasing more of the available RouterOS features. A MS Windows application called Winbox provides a graphical user interface for the RouterOS configuration and monitoring, but RouterOS also allows access via FTP, telnet, and secure shell (SSH). An application programming interface is available for direct access from applications for management and monitoring.

basic1

basic3

Features
RouterOS supports many applications used by Internet service providers, for example OSPF, BGP, Multiprotocol Label Switching (VPLS/MPLS), OpenFlow. The product is supported by Mikrotik through a forum and a wiki, providing assorted and thematic examples of configurations.

RouterOS supports Internet Protocol Version 4 (IPv4) as well as Internet Protocol Version 6 (IPv6).

Release History
RouterOS version 3
RouterOS version 4
RouterOS version 5
RouterOS version 6

Printing Commands


printing

/etc/rc.d/init.d/lpd start
Start the print daemon

/etc/rc.d/init.d/lpd stop
Stop the print daemon

/etc/rc.d/init.d/lpd status
Display status of the print daemon

lpq
Display jobs in print queue

lprm
Remove jobs from queue

lpr
Print a file

lpc
Printer control tool

man subject | lpr
Print the manual page called subject as plain text

man -t subject | lpr
Print the manual page called subject as Postscript output

printtool
Start X printer setup interface

Keyboard & Shortcut Commands


keyboard

ctrl+c
halts current command

ctrl+z
stops current command

ctrl+d
logout of current session

ctrl+W
erases one word in current line

ctrl+w
erases whole line

ctrl+r
reverse lookup of previous commands

exit
logout of current session

!!
repeat last command

ctrl+z
Stops the current command, resume with fg in the foreground or bg

ctrl+l
Clear the screen

Ctrl+A
Return to the start of the command you are typing

Ctrl+E
Go to the end of the command you are typing

Ctrl+U
Cut everything before the cursor to a special clipboard, erases the whole line

Ctrl+K
Cut everything after the cursor to a special clipboard

Ctrl+Y
Paste from the special clipboard that Ctrl+U & Ctrl+K save their data

Ctrl+T
Swap the two characters before the cursor

Ctrl+W
Delete the word / argument left of the cursor in the current line

Ctrl+D
Log out of current session, similar to exit

Compression Commands


compression

gzip
Zipping a file with gzip

gzip

gunzip
Unzip a file with gunzip

gunzip

bzip2
bzip2 compresses files using the Burrows-Wheeler block sorting text compression

bzip2

tar -xvf
Unzipping tar.gz and .tgz files

xvf

tar -cvf
Untar or decompressed a file(s) that is created using tar compressing

cvf

tar -zxvf
will extract the archive to the folder tar-archive-name

zxvf

tar -cf
tar files into file.tar

cf

tar -xf
untar into current directory

xf

tar -tf
show contents of archive

tf

Tar Flags
c – create archive
t –
table of contents
x –
extract
f –
specifies filename
z –
use zip/unzip
j –
bzip2 compression
k –
do not overwrite
T –
files from file
W –
ask for confirmation
v –
verbose

Package Manager Commands


package

apt-get update  
It will refresh updates available

apt-get upgrade
It will update all packages

apt-get dist-upgrade
It will show version update

apt-get install pkg
It will installing pkg

apt-get remove pkg
It will uninstall pkg

apt-get autoremove
It will removing packages obsotletos

apt-get -f install
It will try to fix packages

dpkg –configure -a
It will try to fix a broken package

dpkg -i pkg.deb
It will install file pkg.deb

/etc/apt/sources.list
It will show list of repositories APT

Privileges Commands


privileges

sudo
It will run command as root

sudo

sudo su
It will show root shell open

sudo su .png

sudo su user
It will open shell as a user

sudo su user.png

sudo -k
It will forget your password sudo

sudo -k

gksudo
It will show sudo visual dialog (GNOME)

gksudo

kdesudo
It will sudo visual dialog (KDE)

kdesudo

sudo visudo
It will display /etc/ sudoers

sudo visudo

gksudo nautilus
It will show root file manager (GNOME)

gksudo nautilus

kdesudo konqueror
It will show root file manager (KDE)

kdesudo konqeor

passwd
It will change your password

passwd

Firewall Commands


Firewall

ufw enable
It will turn on the firewall

enable

ufw disable
It will turn off the firewall

disable.png

ufw default allow
It will allow all connections by default

default allow.png

ufw default deny
It will drop all connections by default

default deny

ufw status
It will show current rules

status

ufw allow port
It will show allow traffic on port

allow port

ufw deny port
It will show port block

deny port

ufw deny from ip
It will allow ip block

deny from ip

ufw allow from ip
It will deny ip block

allow ip.png

iptables -F
It will flush iptables

flush

iptables -L
It will display iptables output

listing