Saturday, January 23, 2010

Tutorial how to install the MikroTik

The following steps are basic setup is configured proxy for the network
simple as a gateway server.

1. The first step is to install RouterOS on your PC or pairs of DOM.

2. Log In Mikrotik Routers through the console:
MikroTik v2.9.7
Login: admin
Password: (blank)

Until this step we are able to go on Mikrotik machine. The default user is admin
and without a password, just type admin and press the enter key.

3. To change the security default password
[admin @ Mikrotik]> password
old password: *****
new password: *****
Retype new password: *****
[admin @ Mikrotik]]>

4. Changing the name Mikrotik Router, in this step will be the server name was changed to "RoseNetwork" (this name can be replaced free only)
[admin @ Mikrotik]> system identity set name = RoseNetwork
[admin @ RoseNetwork]>

5. Viewing interface on Router Mikrotik
[admin @ RoseNetwork]> interface print
Flags: X - disabled, D - dynamic, R - running
# NAME TYPE RX-RATE TX-RATE MTU
Ether1 ether 0 R 0 0 1500
Ether2 ether 1 R 0 0 1500
[admin @ RoseNetwork]>

6. Gives the IP address on the interface Mikrotik. Suppose ether1 we will use to connect to the Internet with IP 192.168.0.1 and ether2 will we use for our local network with IP 172.16.0.1

[admin @ RoseNetwork]> ip address add address = 192.168.0.1
netmask = 255.255.255.0 interface = ether1
[admin @ RoseNetwork]> ip address add address = 172.16.0.1
netmask = 255.255.255.0 interface = ether2

7. Seeing the IP address configuration we have given
[admin @ RoseNetwork]> ip address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK BROADCAST INTERFACE
0 192.168.0.1/24 192.168.0.0 192.168.0.63 ether1
1 172.16.0.1/24 172.16.0.0 172.16.0.255 ether2
[admin @ RoseNetwork]>

8. Providing default gateway, it is assumed to connect to the Internet gateway is 192.168.0.254
[admin @ RoseNetwork]> / ip route add gateway = 192.168.0.254

9. Viewing the routing table on the Mikrotik Routers
[admin @ RoseNetwork]> ip route print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf
# PREFSRC DST-ADDRESS G GATEWAY DISTANCE INTERFACE
0 ADC 172.16.0.0/24 172.16.0.1 ether2
1 ADC 192.168.0.0/26 192.168.0.1 ether1
2 A S 0.0.0.0 / 0 r 192.168.0.254 ether1
[admin @ RoseNetwork]>

10. Ping the Gateway tests to ensure the configuration is correct
[admin @ RoseNetwork]> ping 192.168.0.254
192.168.0.254 64 byte ping: ttl = 64 time <1 ms
192.168.0.254 64 byte ping: ttl = 64 time <1 ms
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min / avg / max = 0/0.0/0 ms
[admin @ RoseNetwork]>

11. Setup DNS Mikrotik Routers
[admin @ RoseNetwork]> ip dns set primary-dns = 192.168.0.10 allow-remoterequests = no
[admin @ RoseNetwork]> ip dns set secondary-dns = 192.168.0.11 allow-remoterequests = no

12. Viewing the configuration control
[admin @ RoseNetwork]> ip dns print
primary-dns: 192.168.0.10
secondary-dns: 192.168.0.11
allow-remote-requests: no
cache-size: 2048KiB
cache-max-ttl: 1w
cache-used: 16KiB
[admin @ RoseNetwork]>

13. Tests for domain access, for example by pinging a domain name
[admin @ RoseNetwork]> ping yahoo.com
216,109,112,135 64 byte ping: ttl = 48 time = 250 ms
10 packets transmitted, 10 packets received, 0% packet loss
round-trip min / avg / max = 571/571.0/571 ms
[admin @ RoseNetwork]>

If you've managed to reply that DNS settings are correct.

14. Setup masquerade, if Mikrotik will we use it as a gateway server to the client computer on the network can connect to the internet we need to masquerading.
[admin @ RoseNetwork]> ip firewall nat add action = masquerade outinterface =
ether1 chain: srcnat
[admin @ RoseNetwork]>

15. Viewing masquerade configuration
[admin @ RoseNetwork] ip firewall nat print
Flags: X - disabled, I - invalid, D - dynamic
0 chain = srcnat out-interface = ether1 action = masquerade
[admin @ RoseNetwork]>

After this step can be carried out checks for connections from local network. And if it means we have successfully managed to install Mikrotik Router as a Gateway server. Once connected to the network can Mikrotik dimanage using Winbox
which can be downloaded from Mikrotik.com or from our proxy server.

Ip address server instance
our proxy 192.168.0.1, via the browser and open http://192.168.0.1 Winbox download from there.
If we want the client to get IP address automatically then we need to setup a dhcp server on the Mikrotik. Here are the steps:

1. Creating IP address pool
/ ip pool add name = dhcp-pool ranges = 172.16.0.10-172.16.0.20

2. Add a DHCP Network and gateway that will be distributed to the client in this example is 172.16.0.0/24 network and gateway 172.16.0.1
/ ip dhcp-server network add address = 172.16.0.0/24 gateway = 172.16.0.1

3. Add a DHCP server (in this case applied to the interface dhcp ether2)
/ ip dhcp-server add interface = ether2 address-pool = dhcp-pool

4. See the status of the DHCP server
[admin @ RoseNetwork]> ip dhcp-server print
Flags: X - disabled, I - invalid
# NAME INTERFACE RELAY ADDRESS-POOL LEASE-TIME ADD-ARP
0 X dhcp1 ether2
X states that do not enable a DHCP server enabled it is necessary to advance in step 5.

5. Do not Forget first created a dhcp server enable
/ ip dhcp-server enable 0

then check back to dhcp-server such as step 4, if an X has no means is active.

6. Tests of client
c: \> ping www.yahoo.com

for bandwidth controller, can be a simple system with a queue or can mangle
[admin @ RoseNetwork] queue simple> add name = Computer01
interface = ether2 target-address = 172.16.0.1/24 max-limit = 65536/131072
[admin @ RoseNetwork] queue simple> add name = Computer02
interface = ether2 target-address = 172.16.0.2/24 max-limit = 65536/131072
and so on ...

1 comment:

  1. How to enter Mikrotik Key without remote ?

    ReplyDelete

semarang jawa tengah indonesia service keyboard service computer komputer kendal bali setting hotspot hacking password mysql protected username jasa setting jual beli
bobol password phpmyadmin debian 5 lenny ubuntu server surabaya sumatera american inggris access point microtic MikroTik jawa barat yamaha roland casio korg technic floppy disk emulator usb www universal cara ganti broadcast editing wireless Wi-Fi handphone novel health facebook Sepeda Fixie Jual Beli Sepeda Fixie Rose Network Sepeda Fixie Murah Wimax Wimax Indonesia, Long time waktu lorong waktu facebook twitter

Followers