Community discussions

MikroTik App
 
AtifKhan
just joined
Topic Author
Posts: 15
Joined: Mon Apr 02, 2007 8:05 pm
Location: Jeddah

Load Balancing with 3 DSL Modems

Wed Dec 19, 2007 4:20 am

Hello Guys ;)

I have 3 DSL modem going to internet. I completed the configuration from http://wiki.mikrotik.com/wiki/Load_Balancing

Everything is working fine but i have little issue

The 3rd DSL modem is not taking any traffic. I see 0 packets and 0 bytes in /ip firewall nat for 3rd DSL Modem which is link3.

Here is the code

/ip firewall nat
0 chain=srcnat connection-mark=link1 action=src-nat to-addresses=192.168.2.2 to-ports=0-65535

1 chain=srcnat connection-mark=link2 action=src-nat to-addresses=192.168.3.2 to-ports=0-65535

2 chain=srcnat connection-mark=link3 action=src-nat to-addresses=192.168.4.2 to-ports=0-65535

/ip firewall mangle
0 chain=prerouting in-interface=ether1 connection-state=new nth=1,1,0 action=mark-connection new-connection-mark=link1 passthrough=yes

1 chain=prerouting in-interface=ether1 connection-mark=link1 action=mark-routing new-routing-mark=link1 passthrough=no

2 chain=prerouting in-interface=ether1 connection-mark=link2 action=mark-routing new-routing-mark=link2 passthrough=no

3 chain=prerouting in-interface=ether1 connection-state=new nth=1,1,1 action=mark-connection new-connection-mark=link2 passthrough=yes

4 chain=prerouting in-interface=ether1 connection-state=new nth=1,1,2 action=mark-connection new-connection-mark=link3 passthrough=yes

5 chain=prerouting in-interface=ether1 connection-mark=link3 action=mark-routing new-routing-mark=link3 passthrough=no

/ip route
# DST-ADDRESS PREF-SRC G GATEWAY DISTANCE INTERFACE
0 ADC 192.168.1.0/24 192.168.1.254 ether1
1 ADC 192.168.2.0/24 192.168.2.2 ether2
2 ADC 192.168.3.0/24 192.168.3.2 ether3
3 ADC 192.168.4.0/24 192.168.4.2 ether4
4 A S 0.0.0.0/0 r 192.168.2.1 ether2
5 A S 0.0.0.0/0 r 192.168.3.1 ether3
6 A S 0.0.0.0/0 r 192.168.4.1 ether4
7 A S 0.0.0.0/0 r 192.168.4.1 ether4


If you guys can help me out regarding this issue
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7198
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: Load Balancing with 3 DSL Modems

Wed Dec 19, 2007 10:59 am

nth values should be 2,1,0 2,1,1 and 2,1,2, also mangle rule 2 should be below rule 3