Load Balancing Mikrotik 2 ISP

Written by computers on Tuesday, October 09, 2012 at 17:27

 Load Balancing Mikrotik

it's easy to make load balancing use this methods and i am sure you're all
will not confuse to use it.
this is a simple Load balancing.

/ip firewall mangle
add action=mark-connection chain=input comment=”NEW Load Balance” connection-state=new disabled=no in-interface=\
pppoe-speedy1 new-connection-mark=ISP1 passthrough=yes
add action=mark-connection chain=input comment=”" connection-state=new disabled=no in-interface=pppoe-speedy2 \
new-connection-mark=ISP2 passthrough=yes

add action=mark-routing chain=output comment=”" connection-mark=speedy1 disabled=no new-routing-mark=ISP1 passthrough=\
no
add action=mark-routing chain=output comment=”" connection-mark=speedy2 disabled=no new-routing-mark=ISP2 passthrough=\
no

add action=mark-connection chain=prerouting comment=”" disabled=no dst-address-type=!local in-interface=local \
new-connection-mark=speedy1 passthrough=yes per-connection-classifier=both-addresses-and-ports:2/0
add action=mark-connection chain=prerouting comment=”" disabled=no dst-address-type=!local in-interface=local \
new-connection-mark=speedy2 passthrough=yes per-connection-classifier=both-addresses-and-ports:2/1

add action=mark-routing chain=prerouting comment=”" connection-mark=ISP1 disabled=no in-interface=local \
new-routing-mark=ISP1 passthrough=yes
add action=mark-routing chain=prerouting comment=”" connection-mark=ISP2 disabled=no in-interface=local \
new-routing-mark=ISP1 passthrough=yes

and then --> /Ip Firewall NAT

/ip firewall nat
add action=masquerade chain=srcnat comment=”masquerade lokal network” disabled=no src-address=”local Ip ”

/Ip route

/ip route
add comment=”" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-speedy2 routing-mark=ISP2
add comment=”" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-speedy1 routing-mark=ISP1
add comment=”" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-speedy1
add comment=”" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-speedy2


good luck......

About the author

This is the area where you will put in information about who you are, your experience blogging, and what your blog is about. You aren't limited, however, to just putting a biography. You can put whatever you please.