Load balancing versi Mikrotik

Lanjutan dari tulisan sebelumnya…

Seperti biasa tulisan saya ini sudah jadi artinya teman-teman tinggal copy paste ke terminal mikrotik, jadilah load balancing mikrotik-nya. tidak seperti tulisan saya yang dulu, load balancing yang sekarang ini adalah menggabungkan 4 LAN spidi menjadi 1, artinya BW yang kita beroleh adalah 1536kbps (384X4). itu kalau spidinya bisa 384 beneran :D , Jadi konfigurasi ini bukan pail oper. "gak konek, dipoer" (hehehehe).

Sebelum copy paste pastikan IP keempat modem spidi sudah sesuai dengan konfig dibawah ini. (note : setting modem bukan bridge)

Sedang IP PC klien adalah : 192.168.0.2 sampai 254.
Versi mikrotik untuk uji coba adalah veri bajakan 29.27, dan berjalan dengan baik.

Saran saya setelah semua berjalan dengan seep, belilah lisensi yang asli,
cuma 30-U$ kok. kalu sekedar buat uji coba, silahkan pakai bajakan.

Ohya kalo belum tahu cara installasi mikrotik, silahkan lihat tulisan ini.

Sebelum copy paste sebaiknya mikrotik direset dulu biar setingan yang ada musnah D perintah reset adalah dengan :
/system reset

lalu tekan "Y"

Setelah rebooting baru masuk kembali ke mikrotik dan masukan perintah dibawah ini,

Setelah rebooting baru masuk kembali ke mikrotik dan masukan perintah dibawah ini, tinggal copy paste

/in eth

set ether1 name="speedy-1?  disabled=no
set ether2 name="speedy-2?  disabled=no
set ether3 name="speedy-3?  disabled=no
set ether4 name="speedy-4?  disabled=no
set ether5 name="intranet"  disabled=no

/ip add

 add address=192.168.1.2/30 interface=speedy-1 comment="ke speedy-1?
 add address=192.168.2.2/30 interface=speedy-2 comment="ke speedy-2?
 add address=192.168.3.2/30 interface=speedy-3 comment="ke speedy-3?
 add address=192.168.4.2/30 interface=speedy-4 comment="ke speedy-4?
 add address=192.168.0.1/24 interface=intranet comment="untuk warnet"

/ ip firewall mangle

 add chain=prerouting in-interface=intranet connection-state=new nth=3,4,0 action=mark-connection new-connection-mark=satu passthrough=yes comment=""
 add chain=prerouting in-interface=intranet connection-mark=satu action=mark-routing new-routing-mark=satu passthrough=no comment=""
 add chain=prerouting in-interface=intranet connection-state=new nth=3,4,1 action=mark-connection new-connection-mark=dua passthrough=yes comment=""
 add chain=prerouting in-interface=intranet connection-mark=dua action=mark-routing new-routing-mark=dua passthrough=no comment="" disabled=no
 add chain=prerouting in-interface=intranet connection-state=new nth=3,4,2 action=mark-connection new-connection-mark=tiga passthrough=yes comment=""
 add chain=prerouting in-interface=intranet connection-mark=tiga action=mark-routing new-routing-mark=tiga passthrough=no comment=""
 add chain=prerouting in-interface=intranet connection-state=new nth=3,4,3 action=mark-connection new-connection-mark=empat passthrough=yes comment=""
 add chain=prerouting in-interface=intranet connection-mark=empat action=mark-routing new-routing-mark=empat passthrough=no comment="" disabled=no

/ ip firewall nat

 add chain=srcnat out-interface=speedy-1 connection-mark=satu action=src-nat to-addresses=192.168.1.2 to-ports=0-65535 comment="" disabled=no
 add chain=srcnat out-interface=speedy-2 connection-mark=dua action=src-nat to-addresses=192.168.2.2 to-ports=0-65535 comment="" disabled=no
 add chain=srcnat out-interface=speedy-3 connection-mark=satu action=src-nat to-addresses=192.168.3.2 to-ports=0-65535 comment="" disabled=no
 add chain=srcnat out-interface=speedy-4 connection-mark=dua action=src-nat to-addresses=192.168.4.2 to-ports=0-65535 comment="" disabled=no

/ ip route

 add dst-address=0.0.0.0/0 gateway=192.168.1.1 scope=255 target-scope=10 routing-mark=satu comment="" disabled=no
 add dst-address=0.0.0.0/0 gateway=192.168.2.1 scope=255 target-scope=10 routing-mark=dua comment="" disabled=no
 add dst-address=0.0.0.0/0 gateway=192.168.3.1 scope=255 target-scope=10 routing-mark=tiga comment="" disabled=no
 add dst-address=0.0.0.0/0 gateway=192.168.4.1 scope=255 target-scope=10 routing-mark=empat comment="" disabled=no
 add dst-address=0.0.0.0/0 gateway=192.168.1.1 scope=255 target-scope=10

jika anda memakai mikrotik versi 3.1* keatas, ganti mangel diatas dengan yang ini, beda di setting NTH.

/ ip firewall mangle

add chain=prerouting in-interface=intranet connection-state=new nth=4,1 action=mark-connection new-connection-mark=satu passthrough=yes comment=""
 add chain=prerouting in-interface=intranet connection-mark=satu action=mark-routing new-routing-mark=satu passthrough=no comment=""
 add chain=prerouting in-interface=intranet connection-state=new nth=4,2 action=mark-connection new-connection-mark=dua passthrough=yes comment=""
 add chain=prerouting in-interface=intranet connection-mark=dua action=mark-routing new-routing-mark=dua passthrough=no comment="" disabled=no
 add chain=prerouting in-interface=intranet connection-state=new nth=4,3 action=mark-connection new-connection-mark=tiga passthrough=yes comment=""
 add chain=prerouting in-interface=intranet connection-mark=tiga action=mark-routing new-routing-mark=tiga passthrough=no comment=""
 add chain=prerouting in-interface=intranet connection-state=new nth=4,4 action=mark-connection new-connection-mark=empat passthrough=yes comment=""
 add chain=prerouting in-interface=intranet connection-mark=empat action=mark-routing new-routing-mark=empat passthrough=no comment="" disabled=no

===============================

sekian semoga membatu dan selamat mencoba!! D

You may also like

3 Comments

  1. koneksi bagi LAN akan putus nyambung
    dalam artian speed down (ada benere), coz 4 mati 1 jadi 3
    koneksi down ada benere juga, coz pas akses melalui yg mati, otomatis gak isa nyambung..

Leave a Reply

Your email address will not be published. Required fields are marked *