Load balancing 6 line speedy di Mikrotik

Posted by

Salah satu fitur yang ada di mikrotik adalah sebagai mesin load balancer.dalam tulisan kali ini saya akan membahas langkah pembuatan load balancing dengan 6 line speedy di Mikrotik.









/ip address
add address=100.100.100.1/24 broadcast=100.100.100.255 comment="" disabled=no interface=local network=100.100.100.0
add address=192.168.1.2/24 broadcast=192.168.1.255 comment="" disabled=no interface=speedy1 network=192.168.1.0
add address=192.168.2.2/24 broadcast=192.168.2.255 comment="" disabled=no interface=speedy2 network=192.168.2.0
add address=192.168.3.2/24 broadcast=192.168.3.255 comment="" disabled=no interface=speedy3 network=192.168.3.0
add address=192.168.4.2/24 broadcast=192.168.4.255 comment="" disabled=no interface=speedy4 network=192.168.4.0
add address=192.168.5.2/24 broadcast=192.168.5.255 comment="" disabled=no interface=speedy5 network=192.168.5.0
add address=192.168.6.2/24 broadcast=192.168.6.255 comment="" disabled=no interface=speedy6 network=192.168.6.0

/ip firewall nat
add action=masquerade chain=srcnat comment="" disabled=no out-interface=speedy1
add action=masquerade chain=srcnat comment="" disabled=no out-interface=speedy2
add action=masquerade chain=srcnat comment="" disabled=no out-interface=speedy3
add action=masquerade chain=srcnat comment="" disabled=no out-interface=speedy4
add action=masquerade chain=srcnat comment="" disabled=no out-interface=speedy5
add action=masquerade chain=srcnat comment="" disabled=no out-interface=speedy6
add action=masquerade chain=srcnat comment="masquerade hotspot network" disabled=no src-address=100.100.100.0/24

/ip firewall mangle

add action=mark-connection chain=prerouting comment="" connection-state=new disabled=no in-interface=local new-connection-mark=lb_1 nth=6,1 passthrough=yes
add action=mark-routing chain=prerouting comment="" connection-mark=lb_1 disabled=no in-interface=local new-routing-mark=route_1 passthrough=no
add action=mark-connection chain=prerouting comment="" connection-state=new disabled=no in-interface=local new-connection-mark=lb_2 nth=5,1 passthrough=yes
add action=mark-routing chain=prerouting comment="" connection-mark=lb_2 disabled=no in-interface=local new-routing-mark=route_2 passthrough=no
add action=mark-connection chain=prerouting comment="" connection-state=new disabled=no in-interface=local new-connection-mark=lb_3 nth=4,1 passthrough=yes
add action=mark-routing chain=prerouting comment="" connection-mark=lb_3 disabled=no in-interface=local new-routing-mark=route_3 passthrough=no
add action=mark-connection chain=prerouting comment="" connection-state=new disabled=no in-interface=local new-connection-mark=lb_4 nth=3,1 passthrough=yes
add action=mark-routing chain=prerouting comment="" connection-mark=lb_4 disabled=no in-interface=local new-routing-mark=route_4 passthrough=no
add action=mark-connection chain=prerouting comment="" connection-state=new disabled=no in-interface=local new-connection-mark=lb_5 nth=2,1 passthrough=yes
add action=mark-routing chain=prerouting comment="" connection-mark=lb_5 disabled=no in-interface=local new-routing-mark=route_5 passthrough=no
add action=mark-connection chain=prerouting comment="" connection-state=new disabled=no in-interface=local new-connection-mark=lb_6 nth=1,1 passthrough=yes
add action=mark-routing chain=prerouting comment="" connection-mark=lb_6 disabled=no in-interface=local new-routing-mark=route_6 passthrough=no

/ip route

add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.1.1 scope=255 target-scope=10
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.1.1 routing-mark=route_1 scope=255 target-scope=10
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.2.1 routing-mark=route_2 scope=255 target-scope=10
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.3.1 routing-mark=route_3 scope=255 target-scope=10
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.4.1 routing-mark=route_4 scope=255 target-scope=10
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.5.1 routing-mark=route_5 scope=255 target-scope=10
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.6.1 routing-mark=route_6 scope=255 target-scope=10
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.1.1 scope=255 target-scope=10
add comment="" disabled=no distance=2 dst-address=0.0.0.0/0 gateway=192.168.2.1 scope=255 target-scope=10
add comment="" disabled=no distance=3 dst-address=0.0.0.0/0 gateway=192.168.3.1 scope=255 target-scope=10
add comment="" disabled=no distance=4 dst-address=0.0.0.0/0 gateway=192.168.4.1 scope=255 target-scope=10
add comment="" disabled=no distance=5 dst-address=0.0.0.0/0 gateway=192.168.5.1 scope=255 target-scope=10
add comment="" disabled=no distance=6 dst-address=0.0.0.0/0 gateway=192.168.6.1 scope=255 target-scope=10


Mudah-mudahan saya tidak salah copy paste pada saat pembuatan sistem,semoga bermanfaat..(jangan lupa Klik KB nya :D ..piss..)


FOLLOW and JOIN to Get Update!

Social Media Widget SM Widgets




Demo Blog NJW V2 Updated at: Sunday, August 01, 2010
Suryadi Syamsu. Powered by Blogger.

Category

Jadi Jutawan Cuma Modal Nulis

Popular Posts