Jumat, 22 Maret 2013

How to Make Router Using Mikrotik


By using a fairly minimal computer specifications, eg Pentium I, 1-2 GB hard disk, 64 MB memory, no mouse, keyboard or monitor, if Mikrotik already way, we just need mose, keyboard and monitor during installation only. so we've been able to make a router with minimal funds, instead we bought a router equipment that could be millions of dollars expensive. Let us begin the installation, you must have previously Mikrotik file that can be downloaded from its website www.mikrotik.co.id. How to make use mikrotik router is as follows:
Before installing make sure the computer you install Mikrotik OS has 2 Lan Card, to the specification of hardware to be used, you can see the reference http://mikrotik.com

- * Booting from CD ROM

Select the packages to be selected, for the needs of Router + Proxy + Bandwidth Management, you should select:

- System

- DHCP

- Advanced Tols

- Routing

- Routing Test

- Security

- Synchronous

- Web Proxy

- Web Proxy Test


After selecting the required packages press "i" to begin the installation.


- It would appear the words "Do you want to keep ..............." select n (no)

- And then "Continue .....", choose y (yes)

Begin to create a partition and format a hard disk, after the installation of the packages that had been selected.

When finished, ask at reboot Mikrotik by pressing enter.

After booting, the orders comes to checking your hard disk, you can choose yes or no, do not choose no matter if you believe hard disk free of bad sectors.


You are prompted to login, type admin in:

Mikrotik login: admin

to fill in the password hit enter, because the password is blank on new installations


- Dou you want to see ...................., choose no, to speed up the process, the console will appear Mikrotik, namely:


[Admin @ MikroTik]>

To change the name of this Mikrotik machine, type:

[Admin @ MikroTik]> system identity set name = mywifi

Then the console changes to:

[Admin @ mywifi]>

Changing password mikrotik machine, type the password =

[Admin @ mywifi]> password

old password (blank type, if you have not previously set a password

new password: ............................ (type the new password)

Retype new password: ................ (Enter the same password)

To turn off Mikrotik enough we type the following

[Admin @ mywifi]> system shutdown

[Admin @ mywifi]> system reboot (to restart it)

[Admin @ mywifi]> system reset (to reset the configuration that you created earlier)

The commands above should be done in the admin directory.


After that you need to activate a second LAN card is installed, the sample command below:

[Admin @ mywifi]> ethernet interface enable ether1

[Admin @ mywifi]> ethernet interface enable ether2

If the error sign appears, there are two reasons:

First: There is a possibility of the LAN card is installed, damaged

second: Driver of LAN Card not supported by Mikrotik

To View the second LAN card is installed (if it is complete the two), type .............

[Admin @ mywifi]> ip address

[Admin @ mywifi] ip address> print interface (or command can be abbreviated to "in pr")

Then forth both LAN Card, note the console above indicates we are already on the directory ip address


Based on the display monitor LAN Card Mikrotik first named "ether1" which is later connected to ether1 Public IP / Internet LAN Card're both named "ether2" is connected to an IP Local / Local LAN, then we give the ip address on each LAN Card, with the command / command as follows:

[Admin @ mywifi]> ip address

[Admin @ mywifi] ip address> add interface = ether1 address = 172.16.0.254/24

[Admin @ mywifi] ip address> add interface = ether2 address = 192.168.1.254/24

To know the result type:
[Admin @ mywifi] ip address> print

See the results in the image above. to ascend to a higher directory type a colon "..", or "/" to the admin directory, which is the highest directory.

Then we fill the gateway IP address of the LAN card is first, ie where we have access to the internet

[Admin @ mywifi]> ip route add gateway = 192.168.1.1

Next we fill the DNS ip address, fill in the appropriate recommendation from your ISP, for example:

[Admin @ mywifi]> ip dns set primary-dns = 202.134.1.7

admin @ mywifi]> ip dns set secondary-dns = 202.134.0.155


That all client computers in the LAN can more quickly browse the internet with just take cache DNS on Mikrotik router, so the client computer does not berlu far resolves DNS at your ISP's DNS server, then the Router Mikrotik should be set in order to perform DNS cache storage

[Admin @ mywifi]> ip dns set allow-remote-requests = yes

But all client computers, the IP Address setting the column completed its primary DNS, with its IP Address Mikrotik Router, for his secondary DNS leave it blank. Note also the picture above when we were wrong in typing the command, it will display a warning

"No such argument".


Next we set the machine so that we can be a router Mikrotik

[Admin @ mywifi]> ip firewall nat

[Admin @ mywifi] ip firewall nat> add chain = srcnat arc-address = 192.168.1.0/24 out-interface = ether1 action = masquerade

We see the results

[Admin @ mywifi] ip firewall nat> print

See the results on your monitor. to ascend to a higher directory type a colon "..", or "/" to the admin directory, which is the highest directory.

Then we fill the gateway IP address of the LAN card is first, ie where we have access to the internet

[Admin @ mywifi]> ip route add gateway = 192.168.1.1

Next we fill the DNS ip address, fill in the appropriate recommendation from your ISP,

[Admin @ mywifi]> ip dns set primary-dns = 202.134.1.7

[Admin @ mywifi]> ip dns set secondary-dns = 202.134.0.155

That all client computers in the LAN can more quickly browse the internet with just take cache DNS on Mikrotik router, so the client computer does not berlu far resolves DNS at your ISP's DNS server, then the Router Mikrotik should be set in order to perform DNS cache storage

[Admin @ mywifi]> ip dns set allow-remote-requests = yes

But all client computers, the IP Address setting the column completed its primary DNS, with its IP Address Mikrotik Router, for his secondary DNS leave it blank. Note also the picture above when we were wrong in typing the command, it will display a warning

"No such argument".

Next we set the machine so that we can be a router Mikrotik

[Admin @ mywifi]> ip firewall nat

[Admin @ mywifi] ip firewall nat> add chain = srcnat arc-address = 192.168.1.0/24 out-interface = ether1 action = masquerade

We see the results

[Admin @ mywifi] ip firewall nat> print


Well at this early stage we can make Mikrotik Router, to see our ping test results (for the command "ping" this must be done at the highest directory in the directory "admin") to the client computer from our Mikrotik router, when it appeared in the ping were the words "ping time out" or "host unreachable" then we did not manage to connect, try to go back to setting Mikrotik or too meticulous ip address configuration on the client computer, and then try to also ping the Internet address of a computer client or browsing from the client computer, if it is successful then also managed to make our task Mikrotik Router.

Tidak ada komentar:

Posting Komentar