Latest Updates

Load Balance di Mikrotik dengan metode PCC

Hallo sahabat CS Newbie kali ini saya akan memposting tentang mikrotik, coretan ini saya buat ketika setelah membantu teman setting wanetnya yang kebetulan memakai 2 line internet yang akan kita jadikan satu line. kasusnya ip dari ISP sudah di routing. OK..langsung saja janagan banyak basa-basi

IP LAN=192.168.3.1/24
gateway WAN1=192.168.1.1 ---> IP modem 1
gateway WAN2=192.168.2.1 ---> IP modem 2

######==========START PCC load balancing=============########
LAN IP = 192.168.3.1
SPEEDY1 IP = 192.168.1.1
SPEEDY2 IP = 192.168.2.1

/ip address
add address=192.168.3.1/24 network=192.168.0.0 broadcast=192.168.0.255 interface=Lan
add address=192.168.1.1/24 network=192.168.1.0 broadcast=192.168.1.255 interface=speedy1 === /24 itu hitung2an subnetting
add address=192.168.2.1/24 network=192.168.2.0 broadcast=192.168.2.255 interface=speedy2

/ip dns set allow-remote-requests=yes cache-max-ttl=1w cache-size=5000KiB max-udp-packet-size=512 servers=221.132.112.8,8.8.8.8

/ip firewall mangle
add chain=input in-interface=speedy1 action=mark-connection new-connection-mark=speedy1_conn
add chain=input in-interface=speedy2 action=mark-connection new-connection-mark=speedy2_conn

add chain=output connection-mark=speedy1_conn action=mark-routing new-routing-mark=to_speedy1
add chain=output connection-mark=speedy2_conn action=mark-routing new-routing-mark=to_speedy2

add chain=prerouting dst-address=192.168.1.0/24 action=accept in-interface=lan
add chain=prerouting dst-address=192.168.2.0/24 action=accept in-interface=lan

add chain=prerouting dst-address-type=!local in-interface=lan per-connection-classifier=both-addresses-and-ports:2/0 action=mark-connection new-connection-mark=speedy1_conn passthrough=yes
add chain=prerouting dst-address-type=!local in-interface=lan per-connection-classifier=both-addresses-and-ports:2/1 action=mark-connection new-connection-mark=speedy2_conn passthrough=yes

add chain=prerouting connection-mark=speedy1_conn in-interface=lan action=mark-routing new-routing-mark=to_speedy1
add chain=prerouting connection-mark=speedy2_conn in-interface=lan action=mark-routing new-routing-mark=to_speedy2

/ip route
add dst-address=0.0.0.0/0 gateway=192.168.1.1 routing-mark=to_WAN1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.2.1 routing-mark=to_WAN2 check-gateway=ping

add dst-address=0.0.0.0/0 gateway=192.168.1.1 distance=1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.2.1 distance=2 check-gateway=ping

/ip firewall nat
add chain=srcnat out-interface=speedy1 action=masquerade
add chain=srcnat out-interface=speedy2 action=masquerade

######==========END PCC load balancing=============########

0 Response to "Load Balance di Mikrotik dengan metode PCC"

:) :( ;) :D ;;-) :-/ :x :P :-* =(( :-O X( :7 B-) :-S #:-S 7:) :(( :)) :| /:) =)) O:-) :-B =; :-c :)] ~X( :-h :-t 8-7 I-) 8-| L-) :-a :-$ [-( :O) 8-} 2:-P (:| =P~ #-o =D7 :-SS @-) :^o :-w 7:P 2):) X_X :!! \m/ :-q :-bd ^#(^ :ar!

Post a Comment