Community discussions

MikroTik App
 
chojrakrock
just joined
Topic Author
Posts: 3
Joined: Fri Dec 06, 2013 2:25 pm

DUAL WAN load balanced problem

Fri Dec 06, 2013 2:45 pm

Hi guys im new here.

I wanna make dual wan load balance (first w/o fail over) i tryed with few tutorials but this not working i think because i wanna use it in different way.

I have 12km bridge on rockets M5 i wanna make another bridge and load balance my all trafic on this two bridges.
I wanna distribute all trafic for 2 bridges and later maybe fail over if any1 will down.
i tryed this http://aacable.wordpress.com/?s=dual+wan but its dont work :/


/ip firewall mangle
add action=mark-connection chain=input in-interface=WAN1 new-connection-mark=WAN1_conn
add action=mark-connection chain=input in-interface=WAN2 new-connection-mark=WAN2_conn
add action=mark-routing chain=output connection-mark=WAN1_conn new-routing-mark=to_WAN1
add action=mark-routing chain=output connection-mark=WAN2_conn new-routing-mark=to_WAN2
add chain=prerouting dst-address=192.168.1.0/24 in-interface=Local
add chain=prerouting dst-address=192.168.2.0/24 in-interface=Local
add action=mark-connection chain=prerouting dst-address-type=!local in-interface=Local new-connection-mark=WAN1_conn per-connection-classifier=\
both-addresses-and-ports:2/0
add action=mark-connection chain=prerouting dst-address-type=!local in-interface=Local new-connection-mark=WAN2_conn per-connection-classifier=\
both-addresses-and-ports:2/1
add action=mark-routing chain=prerouting connection-mark=WAN1_conn in-interface=Local new-routing-mark=to_WAN1
add action=mark-routing chain=prerouting connection-mark=WAN2_conn in-interface=Local new-routing-mark=to_WAN2

/ip firewall nat
add action=masquerade chain=srcnat out-interface=WAN1
add action=masquerade chain=srcnat out-interface=WAN2

/ip route
add check-gateway=ping distance=1 gateway=192.168.1.1 routing-mark=to_WAN1
add check-gateway=ping distance=1 gateway=192.168.2.1 routing-mark=to_WAN2
add check-gateway=ping distance=1 gateway=192.168.1.1
add check-gateway=ping distance=2 gateway=192.168.2.1



second rb working fine after the bridge i just cant load balanced on first rb 750
i hope i wrote everything tnx for help
You do not have the required permissions to view the files attached to this post.
 
aaronhun22
Frequent Visitor
Frequent Visitor
Posts: 97
Joined: Fri Nov 15, 2013 2:15 am
Location: Las Vegas, Nevada, USA

Re: DUAL WAN load balanced problem

Fri Dec 06, 2013 11:56 pm

From your config it looks like this is your controlled LAN? Wouldn't it be easier to just bond the two interfaces then to use mangle rules? If you apply 802.3ad (LACP) to both sides it will make 1 solid link between the two sides as well as fail over.
 
chojrakrock
just joined
Topic Author
Posts: 3
Joined: Fri Dec 06, 2013 2:25 pm

Re: DUAL WAN load balanced problem

Sat Dec 07, 2013 10:10 am

Great ida tnx for a clue, i will try this today and lt you know how its works.
 
chojrakrock
just joined
Topic Author
Posts: 3
Joined: Fri Dec 06, 2013 2:25 pm

Re: DUAL WAN load balanced problem

Sat Dec 07, 2013 5:27 pm

aaronhun22 tnx for clue, i did it today and all work perfectly. Once again thanks for help, i totaly forgot about bonding.

Who is online

Users browsing this forum: Google [Bot], GoogleOther [Bot], jaclaz, shahzaddj1 and 122 guests