Cara Loadbalancing mikrotik 2 ISP speedy



Beberapa waktu lalu saya diminta untuk menggabungkan 2 isp menjadi 1 menggunakan speedy indihome , bahasa kerennya (loadbalancing) , dibawah ini sudah ditester dan berjalan , tinggal sedikit modifikasi pada beberapa bagian.


/interface ethernet 
set [ find default-name=ether1 ] name=inet1
set [ find default-name=ether2 ] name=inet2
set [ find default-name=ether3 ] name=lan
set [ find default-name=ether4 ] name=ether4
/ip pool
add name=dhcp_pool1 ranges=192.168.100.10-192.168.100.102
/ip address
add address=192.168.20.2/24 interface=ether1-inet1 network=192.168.20.0
add address=192.168.30.2/24 interface=ether2-inet2 network=192.168.30.0
add address=192.168.100.1/24 interface=ether3-lan network=192.168.100.0
/ip dhcp-server network
add address=192.168.100.0/24 gateway=192.168.100.1
/ip dns
set servers=8.8.8.8,8.8.4.4
/ip firewall mangle
add action=mark-connection chain=input connection-state=new in-interface=\
    inet1 new-connection-mark=speedy-1
add action=mark-connection chain=input connection-state=new in-interface=\
    inet2 new-connection-mark=speedy-2
add action=mark-routing chain=output connection-mark=speedy-1 new-routing-mark=\
    line-1 passthrough=no
add action=mark-routing chain=output connection-mark=speedy-2 new-routing-mark=\
    line-2 passthrough=no
add action=mark-connection chain=prerouting dst-address-type=!local \
    in-interface=lan new-connection-mark=speedy-1 \
    per-connection-classifier=both-addresses-and-ports:2/0
add action=mark-connection chain=prerouting dst-address-type=!local \
    in-interface=lan new-connection-mark=speedy-2 \
    per-connection-classifier=both-addresses-and-ports:2/1
add action=mark-routing chain=prerouting connection-mark=speedy-1 in-interface=\
    lan new-routing-mark=line-1
add action=mark-routing chain=prerouting connection-mark=speedy-2 in-interface=\
    lan new-routing-mark=line-2
/ip firewall nat
add action=masquerade chain=srcnat out-interface=inet1
add action=masquerade chain=srcnat out-interface=inet2
/ip route
add distance=1 gateway=192.168.20.1 routing-mark=line-1
add distance=2 gateway=192.168.30.1 routing-mark=line-2
add distance=1 gateway=192.168.20.1
add distance=2 gateway=192.168.30.1
Semoga bermanfaat, dan gudluck ^^ .