Community discussions

MikroTik App
 
pochbba
newbie
Topic Author
Posts: 26
Joined: Mon Jun 19, 2006 10:00 pm
Location: Argentina

Load Balancing.. cannot make it work well....

Thu Aug 10, 2006 11:13 pm

The main problem isnt the configuration of it..
in fact i can load balance exactly like the wiki says.. but.. 10 minutes after i finish the config (or after i reboot) one line aparently goes down and of course everything else stops working..


im asking if anyone else got stuck in the same situation, and the way to solve this..

one thing i can see is that when you ping some public ips (at random), from a computer behind the MT, you get response when the icmp packets go through 1 of the loadbalanced interfaces, and, you get timeout or loss from the other, no matter if it is the same ip youre pinging on the other interface.


if i get the lines out of the mt to another (not balanced) MT, or directly to a pc, they both work excellent...

i dont know if it is a config problem, i used this wiki

http://wiki.mikrotik.com/wiki/Load_Balancing

by the way thanks to you all
 
User avatar
Eugene
Forum Veteran
Forum Veteran
Posts: 986
Joined: Mon May 31, 2004 5:06 pm
Location: Cranfield, UK

Fri Aug 11, 2006 1:24 pm

the wiki example does not provide fail-over. You should make fail-over script on your own.

Eugene
 
pochbba
newbie
Topic Author
Posts: 26
Joined: Mon Jun 19, 2006 10:00 pm
Location: Argentina

Sat Aug 12, 2006 2:20 am

thats what sounds strange of it.., it would not be necessary to use failover, because the lines arent falling down, that is not the problem.. if i test the "theorically down" lines they work excellent on their own.. it only happens when after 10 minutes i loadbalance them..

to be more precise, when this stange problem happens, if i send all the traffic through the "theorically dead line" without loadbalancing, it works

look this configs

ifaces LAN (local)
WAN1 (isp1 5mbps/5mbps dedicated - ATM - 99.8% efectivity)
WAN2 (isp2 5mbps/5mbps dedicated - ATM - 99.8% efectivity)

ip address add address=192.168.0.1/24 interface=LAN
ip address add address=200.80.140.xxx/27 interface=WAN1
ip address add address=200.80.221.yyy/27 interface=WAN2

config 1 (10 minutes and falls)

WIKI CONFIG..

config 2 (works perfect, even if i test it after config 1 fails and config 3 works)

ip route add gateway=200.80.140.xxx

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

config 3 (works perfect, even if i test it after config 1 fails and config 2 works)

ip route add gateway=200.80.221.yyy

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

-------------

if anyone had the same problem and know how to solve it, please let me know..


thank you all

pochbba
 
pochbba
newbie
Topic Author
Posts: 26
Joined: Mon Jun 19, 2006 10:00 pm
Location: Argentina

Got It

Mon Aug 14, 2006 3:07 am

well.. after a week of tests, i finally got it working...


it wasnt neither a config problem nor mtbox problem, the key is the gateway routers you are using, after i changed them all started working perfectly...

Tip, use another MT, or sth like cisco for both gateways..

tnx for your help..

Who is online

Users browsing this forum: jompha, leechiing and 15 guests