Load Balancing Mikrotik

Embed Size (px)

DESCRIPTION

Load balancing mikrotik

Citation preview

/in ethset ether1 name=speedy-1 disabled=noset ether2 name=speedy-2 disabled=noset ether3 name=speedy-3 disabled=noset ether4 name=speedy-4 disabled=noset ether5 name=LAN 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=LAN comment=untuk warnet/ ip firewall mangleadd chain=prerouting in-interface=LAN connection-state=new nth=2,3,0 action=mark-connection new-connection-mark=satu passthrough=yes comment=""add chain=prerouting in-interface=LAN connection-mark=satu action=mark-routing new-routing-mark=satu passthrough=no comment=""add chain=prerouting in-interface=LAN connection-state=new nth=2,3,1 action=mark-connection new-connection-mark=dua passthrough=yes comment=""add chain=prerouting in-interface=LAN connection-mark=dua action=mark-routing new-routing-mark=dua passthrough=no comment="" disabled=noadd chain=prerouting in-interface=LAN connection-state=new nth=2,3,2 action=mark-connection new-connection-mark=tiga passthrough=yes comment=""add chain=prerouting in-interface=LAN connection-mark=tiga action=mark-routing new-routing-mark=tiga passthrough=no comment=""/ 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/ 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.1.1 scope=255 target-scope=10jika anda memakai mikrotik versi 3.1* keatas, ganti mangel diatas dengan yang ini, beda di setting NTH./ ip firewall mangleadd chain=prerouting in-interface=LAN connection-state=new nth=3,1 action=mark-connection new-connection-mark=satu passthrough=yes comment=" add chain=prerouting in-interface=LAN connection-mark=satu action=mark-routing new-routing-mark=satu passthrough=no comment=" add chain=prerouting in-interface=LAN connection-state=new nth=3,2 action=mark-connection new-connection-mark=dua passthrough=yes comment=" add chain=prerouting in-interface=LAN connection-mark=dua action=mark-routing new-routing-mark=dua passthrough=no comment=" disabled=no add chain=prerouting in-interface=LAN connection-state=new nth=3,3 action=mark-connection new-connection-mark=tiga passthrough=yes comment=" add chain=prerouting in-interface=LAN connection-mark=tiga action=mark-routing new-routing-mark=tiga passthrough=no comment="