Anda di halaman 1dari 3

Static Routing Sederhana Menggunakan MikroTik

Pebi Yudha K./Dina L.

ISP: 10.89.28.110/16
- Primary DNS: 202.134.0.155
- Secondary DNS: 204.130.165.77
- DNS Google: 8.8.8.8

ether1: 10.89.28.113/16
ether1:
172.16.1.2/24
Router 1

Router 2
ether2:
172.16.1.1/24
ether3:
192.168.1.1/24

LAN 1: 192.168.1.0/24
Gateway: 192.168.1.1

ISP
- IP address dari ISP dimisalkan sebagai 10.89.28.110/16
- Primary DNS: 202.134.0.155
- Secondary DNS: 204.130.165.77
- DNS Google: 8.8.8.8
IP Address pada Interface Router 1
- ether1: ISP (10.89.28.113/16)
- ether2: LAN2 (172.16.1.1/24)
- ether3: LAN1(192.168.1.1/24)
IP Address pada Interface Router 2
- ether1: 172.16.1.2/24
- ether2: 192.168.2.1/24

ether2:
192.168.2.1/24

LAN 2: 192.168.2.0/24
Gateway: 192.168.2.1

Konfigurasi Router 1
[admin@mikrotik]>system identity set name=router1
[admin@router1]>password
old password : <ketikan ENTER jika tidak ada>
new password : rahasia
retype new password: rahasia
[admin@router1]>interface ethernet enable ether1
[admin@router1]>interface ethernet enable ether2
[admin@router1]>interface ethernet enable ether3
[admin@router1]>interface ethernet set ether1 name=isp
[admin@router1]>interface ethernet set ether2 name=lan2
[admin@router1]>interface ethernet set ether3 name=lan1
[admin@router1]>ip address add address=10.89.28.113 interface=isp
[admin@router1]>ip address add address=172.16.1.1/30 interface=lan2
[admin@router1]>ip address add address=192.168.1.1/24 interface=lan1
[admin@router1]>ip route add gateway=10.89.28.110
[admin@router1]>ip route add dst-address=192.168.2.0/24 gateway=172.16.1.2
[admin@router1]>ip firewall nat add chain=srcnat out-interface=isp src-address=192.168.1.0/24
action=masquerade
[admin@router1]>ip dns set servers=202.134.0.155,204.130.165.77,8.8.8.8 allow-remote-request=yes
Konfigurasi Router 2
[admin@mikrotik]>system identity set name=router2
[admin@router2]>password
old password : <ketikan ENTER jika tidak ada>
new password : rahasia
retype new password: rahasia
[admin@router2]>interface ethernet enable ether1
[admin@router2]>interface ethernet enable ether2
[admin@router2]>interface ethernet set ether2 name=lan2
[admin@router2]>ip address add address=172.16.1.2/30 interface=ether1
[admin@router2]>ip address add address=192.168.2.1/24 interface=lan2
[admin@router2]>ip route add gateway=172.16.1.1
Shutdown Sistem
[admin@router1]>system shutdown
[admin@router2]>system shutdown
Penjelasan
Pada Router 1 static routing ke 192.168.2.0/24 dengan gateway 172.16.1.2 dibutuhkan agar klien dari
LAN1 bisa mengakses klien dari LAN2. Pada Router 2 tidak dibutuhkan static routing lagi karena
LAN2 bisa menggunakan gateway yang sudah tersedia untuk mengakses LAN1.

Sumber Referensi:
Kustanto dan Daniel T. Saputro. 2008. Membangun Server Internet dengan Mikrotik OS.
Yogyakarta: Gava Media
Wiki Mikrotik. 2014. Manual: Simple Static Route
(http://wiki.mikrotik.com/wiki/Manual:Simple_Static_Routing)