Basic Installation of RouterOS

From MikroTik Wiki
Revision as of 12:49, 6 April 2008 by Hilton (talk | contribs) (NAT)
Jump to: navigation, search

Installation


This example shows how to install and configure Mikrotik RoterOS.

First download new RouterOS form here [1]

Then write iso image file on CD, and put in cdrom and turn on.

Bi1.gif

Press "a" key for select all and then press "i"

Answer "n" to first question and "y" to second

Bi2.gif after installation remove cd from cdrom and press "Enter"

after rebooting type "admin" as login and no password.


Add IP

When mikrotik prompt is ready assign ip to NIC:

/IP ADDRESS
 add address=10.0.0.1 interface=ether1
 add address=192.168.0.10 interface=ether2

now add gateway ip:

/IP ROUTE
 add gateway=10.0.0.0

10.0.0.1,192.168.0.10 and 10.0.0.0 is sample data and you should use your ip for setting

if use your ip now you can ping internet

 ping 4.2.2.4
4.2.2.4 64 byte ping: ttl=242 time=255 ms
4.2.2.4 64 byte ping: ttl=242 time=243 ms
4.2.2.4 64 byte ping: ttl=242 time=247 ms
4.2.2.4 64 byte ping: ttl=242 time=243 ms
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 243/247.0/255 ms

ok.

NAT

nat will use until client with invalid ip connect to internet, so we must run nat on mikrotik and set client ip in range of 192.168.0.2 and set client gateway to 192.168.0.1(Secend NIC of mikrotik)

/IP FIREWALL NAT
 add chain=srcnat action=masquerade out-interface=ether1

this will be route all traffic to interface 1 that have an valid ip so will be nat and go to internet