LOADBALANCE 2 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.

Disini admin akan membagikan script loadbalance 2 isp  yang kebetulan sudah admin uji coba pada jaringan rumah sendiri dan script ini berjalan sangat baik dan maksimal.

SCRIPT LOADBALANCE 2 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

/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.1.1,192.168.2.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-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-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:2/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:2/1 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"

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

itulah script mikrotik metode loadbalance 2 isp yang bisa saya bagikan ke teman-teman, apabila ada kurang dan lebihnya mohon bisa menambahkan masukannya. terima kasih.

Sumber Script : buananet.pbun
Modifikasi Script: supono  

Subscribe to receive free email updates:

1 Response to "LOADBALANCE 2 ISP METODE PCC PADA MIKROTIK"