LOADBALANCE 3 ISP METODE PCC PADA MIKROTIK


 

Load balance pada mikrotik adalah teknik untuk mendistribusikan beban trafik pada dua atau lebih jalur koneksi secara seimbang, agar trafik dapat berjalan optimal, memaksimalkan throughput, memperkecil waktu tanggap dan menghindari overload pada salah satu jalur koneksi.

Dipostingan yang sebelumnya admin sudah membagikan script loadbalance 2 ISP yang mungkin sudah kalian coba, semoga script yang admin bagikan berjalan dengan baik juga di setingan jaringan teman semuanya.  Kali ini admin akan membagikan script loadbalance 3 isp yang kebetulan sudah admin uji coba pada jaringan rumah sendiri dan script ini berjalan sangat bagus dan maksimal. Langsung aja ada dibawah scriptnya.

SCRIPT LOADBALANCE 3 ISP METODE PCC

/ip address

add address=192.168.1.3/24 interface=ether1-ISP1 network=192.168.1.0

add address=192.168.2.3/24 interface=ether2-ISP2 network=192.168.2.0

add address=192.168.3.3/24 interface=ether3-ISP3 network=192.168.3.0

 

/ip firewall address-list
add address=192.168.0.0/16 list=LOCAL-IP comment="LB PCC"
add address=172.16.0.0/12 list=LOCAL-IP comment="LB PCC"
add address=10.0.0.0/8 list=LOCAL-IP comment="LB PCC"

/ip firewall nat
add action=masquerade chain=srcnat

/ip route
add check-gateway=ping distance=1 gateway="192.168.1.1" routing-mark="to-192.168.1.3" comment="LB PCC"
add check-gateway=ping distance=1 gateway="192.168.2.1" routing-mark="to-192.168.2.3" comment="LB PCC"

add check-gateway=ping distance=1 gateway="192.168.3.1" routing-mark="to-192.168.3.3" comment="LB PCC"

add check-gateway=ping distance=1 gateway=\ 192.168.1.1,192.168.2.1,192.168.3.1 comment="LB PCC"

/ip firewall mangle
add action=mark-connection chain=input in-interface="192.168.1.3" new-connection-mark="cm-192.168.1.3" passthrough=yes comment="LB PCC"
add action=mark-connection chain=input in-interface="192.168.2.3" new-connection-mark="cm-192.168.2.3" passthrough=yes comment="LB PCC"

add action=mark-connection chain=input in-interface="192.168.3.3" new-connection-mark="cm-192.168.3.3" passthrough=yes comment="LB PCC"
add action=mark-routing chain=output connection-mark="cm-192.168.1.3" new-routing-mark="to-192.168.1.3" passthrough=yes comment="LB PCC"
add action=mark-routing chain=output connection-mark="cm-192.168.2.3" new-routing-mark="to-192.168.2.3" passthrough=yes comment="LB PCC"

add action=mark-routing chain=output connection-mark="cm-192.168.3.3" new-routing-mark="to-192.168.3.3" passthrough=yes comment="LB PCC"
add action=mark-connection chain=prerouting dst-address-list=!LOCAL-IP dst-address-type=!local new-connection-mark="cm-192.168.1.3" passthrough=yes per-connection-classifier=both-addresses-and-ports:3/0 src-address-list=LOCAL-IP comment="LB PCC"
add action=mark-connection chain=prerouting dst-address-list=!LOCAL-IP dst-address-type=!local new-connection-mark="cm-192.168.2.3" passthrough=yes per-connection-classifier=both-addresses-and-ports:3/1 src-address-list=LOCAL-IP comment="LB PCC"

add action=mark-connection chain=prerouting dst-address-list=!LOCAL-IP dst-address-type=!local new-connection-mark="cm-192.168.3.3" passthrough=yes per-connection-classifier=both-addresses-and-ports:3/2 src-address-list=LOCAL-IP comment="LB PCC"
add action=mark-routing chain=prerouting connection-mark="cm-192.168.1.3" dst-address-list=!LOCAL-IP new-routing-mark="to-192.168.1.3" passthrough=yes src-address-list=LOCAL-IP comment="LB PCC"
add action=mark-routing chain=prerouting connection-mark="cm-192.168.2.3" dst-address-list=!LOCAL-IP new-routing-mark="to-192.168.2.3" passthrough=yes src-address-list=LOCAL-IP comment="LB PCC"
add action=mark-routing chain=prerouting connection-mark="cm-192.168.3.3" dst-address-list=!LOCAL-IP new-routing-mark="to-192.168.3.3" passthrough=yes src-address-list=LOCAL-IP comment="LB PCC"

NOTE :
" sesuaikan dengan kondisi jaringan masing-masing, karena kondisi jaringan dilain tempat pasti berbeda"

itulah script loadbalance 3 ISP yang bisa admin bagikan kepada teman-teman semua, semoga dapat dipergunakan dengan baik, apabila ada kurang dan lebihnya mohon ditambahkan. terima kasih.

Sumber Script : buananet.pbun 
Modifikasi Script oleh : supono


Subscribe to receive free email updates:

3 Responses to "LOADBALANCE 3 ISP METODE PCC PADA MIKROTIK"

  1. Min. Kalau satu router di setting untuk 2 akun wifi bisa kagak?

    ReplyDelete
  2. Bisa gan, kalo pakai mikrotik bisa lebih dari satu akun.

    ReplyDelete
  3. terimaksih untuk infonya gan, berbagi ilmu

    Jasa Sewa Gudang

    ReplyDelete