Tuesday, February 17, 2009

MICROTIK

Wifi in the world famous name Mikrotik very well as Operating System (OS) and the router wifi equipment, although the OS to include a complete Proxy, bandwidth management, firewall, hotspot, VPN etc. we charge a fee for the license, but if we use only as only router, operating system from Latvia can be used without any time limit, we can download it for free in www.mikrotik.co.id, but if all the above functions in addition to the router we are given only in the limits of just one day to use. So with a fairly minimal computer speknya eg, Pentium I, 1-2 GB hard disk, 64 MB memory, no mouse, keyboard or monitor, if Mikrotik is the way, we only need mose, keyboard and monitor during installation only. so we can make a router with minimal funds, we buy equipment from a router that can be millions of rupiah expensive. Let's begin the installation, before we have a Mikrotik imagenya files downloaded from the site www.mikrotik.co.id, and we burn to blank cd.

INSTALLATION

Make sure the computer before you install into Mikrotik OS already have 2 Lan Card, to spek hardware that will be used, you can see in rujukannya http://mikrotik.com

- * Booting from CD ROM

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

- System

- DHCP

- Advanced Tols

- Routing

- Routing Test

- Security

- Synchronous

- Web Proxy

- Web Proxy Test

After selecting the required paket2 press the "i" to start installation

Appear any posts "Do you want to keep ..............." select n (no)

"Continue .....", select y (yes)

Start to create a partition and format the hard disk, after installation of the earlier paket2 selected.

Once finished, reboot the Mikrotik requested by pressing enter.

After booting, appear to undertake the hard disk, you can select yes or no, select no to also not sure if your hard disk free from the bad sector.

You are prompted to log in, type in the admin: Mikrotik Login: admin

to put a password just hit enter, as a blank password on the new installation,

- Dou you want to see ...................., select no, to speed up the process

Mikrotik console appears, namely:

[admin @ Mikrotik]>

To change the name of this machine Mikrotik, type:

[admin @ Mikrotik]> system identity set name = mywifi

Then change to console

[admin @ mywifi]>

Mikrotik engine change password, 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 password again)

To shut off the Mikrotik we simply type in the following

[admin @ mywifi]> system shutdown

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

[admin @ mywifi]> system reset (to reset the configuration that we already created earlier)

Commands above must be done in the admin directory.

After that you need to activate the second LAN Card is inserted, with the example below:

[admin @ mywifi]> interface ethernet enable ether1

[admin @ mywifi]> interface ethernet enable ether2

If the error sign appears, there are two reasons:

The first: There is the possibility LAN Card installed, damaged

the second from the LAN Card Driver not disupport by Mikrotik

For the second LAN Card installed (if the two are complete), type .............

[admin @ mywifi]> ip address

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

Then tampillah second LAN Card, note the console above indicates we are already in the ip address

Based display monitor LAN Card Mikrotik first called "ether1" where ether1 this later connected to the Public IP / Internet LAN Card are both called "ether2" is connected to the Local IP / LAN Local, and then we give ip address to each LAN Card, command with the / 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 find out the result type:

[admin @ mywifi] ip address> print

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

Then we fill the gateway ip address from the LAN Card is the first, which is where we get internet access

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

Then we fill the DNS ip address, fill in appropriate recommendations 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

So that all client computers in LAN can browse the Internet more quickly enough to take with the DNS cache on the router Mikrotik, so the client computer does not berlu far meresolve DNS on the ISP DNS server, the Router Mikrotik need to set in order to perform DNS cache storage

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

But all the client computers, setting the IP Address field is filled primary DNS, with its IP Address Router Mikrotik, to leave the secondary DNS is just empty. Note also the picture above when we type in a command, it will appear warning

"no such argument."

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

[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 the higher type the colon "..", or "/" to the admin directory, which is the highest directory.

Then we fill the gateway ip address from the LAN Card is the first, which is where we get internet access

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

Then we fill the DNS ip address, fill in appropriate recommendations 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

So that all client computers in LAN can browse the Internet more quickly enough to take with the DNS cache on the router Mikrotik, so the client computer does not berlu far meresolve DNS on the ISP DNS server, the Router Mikrotik need to set in order to perform DNS cache storage

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

But all the client computers, setting the IP Address field is filled primary DNS, with its IP Address Router Mikrotik, to leave the secondary DNS is just empty. Note also the picture above when we type in a command, it will appear warning

"no such argument."

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

[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

Now early in this we have been able to make Mikrotik Router, in order to know the results we do the ping test (for the command "ping" this must be done in the highest directory in the directory "admin") to the client computer from the router Mikrotik us, when it appears in the process ping are the words "ping time out" or "host unreachable" and we did not succeed to connect, try re-examine the setting Mikrotik also carefully or ip address configuration on the client computer, and then try to ping the internet address of the client computer or browsing from client computers, if successful the work is also our duty to make Mikrotik Router.

No comments:

Post a Comment