10 Langkah Setting Router sederhana menggunakan MikroTik

by Herman Tarigan on January 20, 2009

10 Langkah Setting Router sederhana menggunakan MikroTik

Contoh Kasus :
PC CLient — > Switch –> Router —> Internet

IP PUBLIC : x.y.z.pub/29
DNS : x.y.z.dns1 dan x.y.z.dns2
Gateway : x.y.z.gw
IP address LOCAL ROUTER : 192.168.100.1/24
IP address Client : 192.168.100.2/24

Catatan : Sesuaikan Hardware, IP Address, DNS, Gateway dengan yang anda miliki

Hardware :
Router :  RouterBoard 1000 (Mikrotik v3,19 Stable)

Mikrotik RB1000

Mikrotik RB1000


Switch : D-Link DES-3026 Ethernet Switch

D-Link DES-3026 Ethernet Switch

D-Link DES-3026 Ethernet Switch

PC Client : PowerBook G4

Powerbook G4

Powerbook G4

Setting ROUTER
1. Ganti default password Mikrotik
[admin@titik.org] > /user set admin password=whatever

2. Rename ethernet name :
[admin@titik.org] > /interface print
Flags: D – dynamic, X – disabled, R – running, S – slave
#     NAME                                              TYPE             MTU
0  R  ether1                                            ether            1500
1     ether2                                            ether            1500
2     ether3                                            ether            1500
3  R  ether4                                            ether            1500
[admin@titik.org] > /interface set ether1 name=IP-LOCAL
[admin@titik.org] > /interface set ether4 name=IP-PUBLIC
[admin@titik.org] > /interface print
Flags: D – dynamic, X – disabled, R – running, S – slave
#     NAME                                              TYPE             MTU
0  R  IP-LOCAL                                          ether            1500
1     ether2                                            ether            1500
2     ether3                                            ether            1500
3  R  IP-PUBLIC                                         ether            1500

3. Setting IP Address
[admin@titik.org] > /ip address add address=x.y.z.pub/29 interface=IP-PUBLIC
[admin@titik.org] > /ip address add address=192.168.100.1/24 interface=IP-LOCAL
[admin@titik.org] > /ip address print
Flags: X – disabled, I – invalid, D – dynamic
#   ADDRESS            NETWORK         BROADCAST       INTERFACE
0   x.y.z.pub/29            x.y.z.168               x.y.z.175              IP-PUBLIC
1   192.168.100.1/24   192.168.100.0   192.168.100.255 IP-LOCAL

4. Setting Gateway
[admin@titik.org] > /ip route print
Flags: X – disabled, A – active, D – dynamic, C – connect, S – static, r – rip, b – bgp, o – ospf, m – mme,
B – blackhole, U – unreachable, P – prohibit
#      DST-ADDRESS        PREF-SRC        GATEWAY-STATE    GATEWAY       DISTANCE INTERFACE
0            ADC                    x.y.z.168/29                x.y.z.pub                             0             IP-PUBLIC
1            ADC              192.168.100.0/24        192.168.100.1                       0             IP-LOCAL
[admin@titik.org] > /ip route add dst-address=0.0.0.0/0 gateway=x.y.z.gw
[admin@titik.org] > /ip route print
Flags: X – disabled, A – active, D – dynamic, C – connect, S – static, r – rip, b – bgp, o – ospf, m – mme,
B – blackhole, U – unreachable, P – prohibit
#      DST-ADDRESS        PREF-SRC        GATEWAY-STATE      GATEWAY      DISTANCE INTERFACE
0      A S  0.0.0.0/0               reachable                x.y.z.gw                             1             IP-PUBLIC
0            ADC                    x.y.z.168/29                x.y.z.pub                             0             IP-PUBLIC
1            ADC              192.168.100.0/24        192.168.100.1                       0             IP-LOCAL

5. Test Ping Gateway
[admin@titik.org] > /ping x.y.z.gw
x.y.z.gw 64 byte ping: ttl=64 time=1 ms
x.y.z.gw 64 byte ping: ttl=64 time=1 ms
x.y.z.gw 64 byte ping: ttl=64 time=1 ms
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 1/1.0/1 ms

6. Setting DNS
[admin@titik.org] > /ip dns print
primary-dns: 0.0.0.0
secondary-dns: 0.0.0.0
allow-remote-requests: no
max-udp-packet-size: 512
cache-size: 2048KiB
cache-max-ttl: 1w
cache-used: 4KiB
[admin@titik.org] > /ip dns set primary-dns=x.y.z.dns1 secondary-dns=x.y.z.dns2 allow-remote-requests=yes
[admin@titik.org] > /ip dns print
primary-dns: x.y.z.dns1
secondary-dns: x.y.z.dns2
allow-remote-requests: yes
max-udp-packet-size: 512
cache-size: 2048KiB
cache-max-ttl: 1w
cache-used: 10KiB

7. Test Koneksi Ke Internet (contoh ping yahoo.com)
[admin@titik.org] > /ping yahoo.com
206.190.60.37 64 byte ping: ttl=48 time=300 ms
206.190.60.37 64 byte ping: ttl=48 time=299 ms
206.190.60.37 64 byte ping: ttl=48 time=316 ms
206.190.60.37 64 byte ping: ttl=48 time=316 ms
206.190.60.37 64 byte ping: ttl=48 time=311 ms
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 299/308.4/316 ms

8. Setingg NAT (Network address Translation)
[admin@titik.org] > /ip firewall nat print
Flags: X – disabled, I – invalid, D – dynamic
[admin@titik.org] > /ip firewall nat add chain=srcnat src-address=192.168.100.0/24 action=src-nat to-addresses=z.y.z.pub
[admin@titik.org] > /ip firewall nat print
Flags: X – disabled, I – invalid, D – dynamic
0   chain=srcnat action=src-nat to-addresses=x.y.z.pub src-address=192.168.100.0/24

Setting PC CLIENT
9. Setting IP Address client

Setting IP Adress Client

Setting IP Adress Client

IP Address : 192.168.100.2
Subnet        : 255.255.255.0
Gateway     : 192.168.100.1
DNS       : 192.168.100.1

10. Test koneksi dengan ping ke Router, Gateway, DNS dan yahoo.com
- Ping Router
Perk1z:~ herman$ ping 192.168.100.1
PING 192.168.100.1 (192.168.100.1): 56 data bytes
64 bytes from 192.168.100.1: icmp_seq=0 ttl=64 time=0.360 ms
64 bytes from 192.168.100.1: icmp_seq=1 ttl=64 time=0.257 ms
64 bytes from 192.168.100.1: icmp_seq=2 ttl=64 time=0.254 ms
^C
— 192.168.100.1 ping statistics —
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.254/0.290/0.360/0.049 ms

- Ping Gateway
perk1z:~ herman$ ping x.y.z.gw
PING x.y.z.gw (x.y.z.gw): 56 data bytes
64 bytes from x.y.z.gw: icmp_seq=0 ttl=63 time=1.813 ms
64 bytes from x.y.z.gw: icmp_seq=1 ttl=63 time=1.538 ms
64 bytes from x.y.z.gw: icmp_seq=2 ttl=63 time=1.368 ms
^C
— x.y.z.gw ping statistics —
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 1.368/1.573/1.813/0.183 ms

- Ping DNS
perk1z:~ herman$ ping x.y.z.dns1
PING x.y.z.dns1 (x.y.z.dns1): 56 data bytes
64 bytes from x.y.z.dns1: icmp_seq=0 ttl=62 time=1.437 ms
64 bytes from x.y.z.dns1: icmp_seq=1 ttl=62 time=3.945 ms
64 bytes from x.y.z.dns1: icmp_seq=2 ttl=62 time=1.576 ms
^C
— x.y.z.dns1 ping statistics —
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 1.437/2.319/3.945/1.151 ms

- Ping Yahoo
perk1z:~ herman$ ping yahoo.com
PING yahoo.com (206.190.60.37): 56 data bytes
64 bytes from 206.190.60.37: icmp_seq=0 ttl=47 time=303.308 ms
64 bytes from 206.190.60.37: icmp_seq=1 ttl=47 time=309.105 ms
64 bytes from 206.190.60.37: icmp_seq=2 ttl=47 time=306.238 ms
^C
— yahoo.com ping statistics —
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 303.308/306.217/309.105/2.367 ms

Selamat mencoba dan Semoga bermanfaat

Thanks to : AgusR

Herman Tarigan

Pernah menjadi Operator warnet, Customer Service Webhosting, System Administrator Webhosting, Website (SEO) Consultant, Operational Manager, Marketing dan sekarang memilih menjadi FREELANCE :)

Incoming search terms for the article:

setting mikrotik, seting mikrotik, setting router, cara setting router mikrotik, cara setting mikrotik
Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • LinkedIn
  • Live
  • Print this article!
  • Slashdot
  • StumbleUpon
  • Technorati
  • YahooMyWeb

{ 17 comments… read them below or add one }

dahack April 27, 2009 at 8:15 pm

kamu ngomongin apa sih ? enggak penting banget !

Reply

Bertie December 22, 2011 at 6:58 am

Great acrtile, thank you again for writing.

Reply

anggi June 28, 2011 at 6:01 am

wah, bagus bro tutornya…..
klu bisa lebih terperinci, biar buat pemula2 seperti saya gampang ngertinya…!!!

salam

Reply

Gatsy December 22, 2011 at 8:00 am

I think you hit a bulsleye there fellas!

Reply

Loren December 24, 2011 at 2:14 am

You put the lime in the ccoonut and drink the article up.

Reply

prazetyo September 6, 2011 at 7:11 am

wah, bermanfaat banget mas. Apa boleh nih kalau nanti tanya-tanya secara pribadi? masih belajaran mas.

Reply

Zyah December 22, 2011 at 3:59 am

Begun, the great internet edcuaiton has.

Reply

blwbpg December 22, 2011 at 11:49 am
kluazzs December 24, 2011 at 3:00 pm

aVIhGk , [url=http://ubcuufyqzuqw.com/]ubcuufyqzuqw[/url], [link=http://pkzsywsgfqhi.com/]pkzsywsgfqhi[/link], http://sypizreaqsjx.com/

Reply

prazetyo September 6, 2011 at 7:35 am

mas, mo tanya nih. kenapa ip public-nya koq “IP PUBLIC : x.y.z.pub/29″. Angka /29 itu utk jaringan apa ya mas
thx

Reply

Herman Tarigan September 6, 2011 at 7:54 am

/29 itu subnet nya, /29 sama dengan 255.255.255.248
coba baca-baca Subnet Mask Cheat Sheet
http://www.aelius.com/njh/subnet_sheet.html

Reply

Karik December 24, 2011 at 12:58 am

I can aelrady tell that’s gonna be super helpful.

Reply

prazetyo September 7, 2011 at 2:38 am

apakah setiap ip public yg kita dapat mesti di subnet mask /29? misalkan saya pake speedy dgn kecepatan 1mbps.

Reply

Herman Tarigan September 7, 2011 at 2:50 am

Paket Game, Executive dan Biz memperoleh 1 IP public static (sumber : http://www.telkom.co.id/produk-layanan/personal/internet/speedy.html) brarti kalau 1 ip public menggunakan subnet /30 bukan /29

Reply

hendri October 3, 2011 at 5:20 pm

wa.. tingkatkan mas.. moga maju trus

Reply

Dorothy29Medina October 7, 2011 at 5:39 pm

The credit loans suppose to be essential for people, which are willing to ground their career. In fact, it is comfortable to receive a collateral loan.

Reply

Cady December 24, 2011 at 1:01 am

Keep these artilecs coming as they’ve opened many new doors for me.

Reply

Leave a Comment

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

{ 5 trackbacks }