Problem with 2 dsl lines with load balancing.

Hello,

I am facing problem in routeros. i have 3 ethernet cards.
1- ether01 working as LAN (192.168.9.1)
2- ether02 (192.168.7.254) and ether03 (192.168.8.254)

i also setup load balancing but when i plug one dsl link then internet work fine. but when i plug second dsl in ether02 then internet not work on hotspot and pppeo.
When i plug one dsl link ether02 or ether03 then internet work fine.

waiting for urgent answer.

waiting for reply

can you post your configuration for better understanding of what you did?

Routes Configurations, Firewall NAT and Mangles and Address list settings with interface lists are following.

Interface List

 #    NAME                         TYPE             RX-RATE    TX-RATE    MTU  
 0  R LAN                          ether            0          0          1500 
 1  R WAN1                         ether            0          0          1500 
 2  R WAN2                         ether            0          0          1500 
 3 DR <pppoe-home>                 pppoe-in         0          0          1480



Routes Configrations 
Flags: X - disabled, A - active, D - dynamic, 
C - connect, S - static, r - rip, b - bgp, o - ospf 
 #     DST-ADDRESS        PREF-SRC        G GATEWAY         DIS INTERFACE   
 0 ADC 192.168.2.48/32    192.168.2.3                           <pppoe-home>
 1 ADC 192.168.7.0/24     192.168.7.1                           WAN2        
 2 ADC 192.168.8.0/24     192.168.8.1                           WAN1        
 3 ADC 192.168.9.0/24     192.168.9.1                           LAN         
 4 A S 0.0.0.0/0                          r 192.168.7.254       WAN2        
                                          r 192.168.8.254       WAN1        
 5   S 0.0.0.0/0                          r 192.168.8.254       WAN1        
 6 A S 0.0.0.0/0                          r 192.168.7.254       WAN2



Firewall NAT configurations

Flags: X - disabled, I - invalid, D - dynamic 
 0   chain=srcnat out-interface=WAN1 action=masquerade 

 1   chain=srcnat out-interface=WAN2 action=masquerade 

 2   ;;; masquerade hotspot network
     chain=srcnat src-address=192.168.9.0/24 action=masquerade 

 3   chain=dstnat protocol=tcp dst-port=80 action=redirect to-ports=8080



 Firewall Mangles Configurations

Flags: X - disabled, I - invalid, D - dynamic 
 0   chain=input in-interface=WAN1 action=mark-connection 
     new-connection-mark=WAN1_conn passthrough=yes 

 1   chain=input in-interface=WAN2 action=mark-connection 
     new-connection-mark=WAN2_conn passthrough=yes 

 2   chain=output connection-mark=WAN1_conn action=mark-routing 
     new-routing-mark=to_wan1 passthrough=yes 

 3   chain=output connection-mark=WAN1_conn action=mark-routing 
     new-routing-mark=to_wan2 passthrough=yes 

 4   chain=prerouting src-address=192.168.9.0/24 protocol=tcp 
     action=mark-connection new-connection-mark=user passthrough=yes 

 5   chain=prerouting connection-mark=user action=mark-packet 
     new-packet-mark=user_conn passthrough=yes

and Address lists

Flags: X - disabled, I - invalid, D - dynamic 
 #   ADDRESS            NETWORK         BROADCAST       INTERFACE   
 0   192.168.9.1/24     192.168.9.0     192.168.9.255   LAN         
 1   192.168.8.1/24     192.168.8.0     192.168.8.255   WAN1        
 2   192.168.7.1/24     192.168.7.0     192.168.7.255   WAN2        
 3 D 192.168.2.3/32     192.168.2.48    0.0.0.0         <pppoe-home>

Please tell me where is problem waiting for answer…

Disable nat rule 2 already masquerade data on wan’s and also disable rule 4. Think 4 might be your problem. Never got proxy to work satisfactory with two or more wan’s. Also look into doing PCC load balancing. Your way is easy but secure sites and games won’t work.

i disable rule 2 of NAT and now my NAT Configurations are following.

Firewall NAT Configurations

Flags: X - disabled, I - invalid, D - dynamic 
 0   chain=srcnat out-interface=WAN1 action=masquerade 

 1   chain=srcnat out-interface=WAN2 action=masquerade 

 2 X ;;; masquerade hotspot network
     chain=srcnat src-address=192.168.9.0/24 action=masquerade 

 3   chain=dstnat protocol=tcp dst-port=80 action=redirect to-ports=8080



IP Firewall MANGLE Configurations

 0   chain=input in-interface=WAN1 action=mark-connection new-connection-mark=WAN1_conn passthrough=yes 

 1   chain=input in-interface=WAN2 action=mark-connection new-connection-mark=WAN2_conn passthrough=yes 

 2   chain=output connection-mark=WAN1_conn action=mark-routing new-routing-mark=to_wan1 passthrough=yes 

 3   chain=output connection-mark=WAN2_conn action=mark-routing new-routing-mark=to_wan2 passthrough=yes 

 4   chain=prerouting src-address=192.168.9.0/24 protocol=tcp action=mark-connection 
     new-connection-mark=user passthrough=yes 

 5   chain=prerouting connection-mark=user action=mark-packet new-packet-mark=user_conn passthrough=yes

But still facing problem. 2 dsl lines are not working together.

waiting for urgent solution

My Proxy is not working on single line. My Clients Messenger also disconnect after 5 to 8 minutes. Can you suggest me rules for working 2 dsl lines together with secure sites and gaming sites working and also proxy.

plz help me its urgent.

still waiting for solution of my problem… anyone please help me…

I love “internet not work” complains - what exactly doesn’t work? ping? web pages? DNS?

Load balancing is much more than few mangle rules. Take a look at this example:
http://wiki.mikrotik.com/wiki/Manual:PCC#Application_Example_-_Load_Balancing

and then you need to think how PPPoE and Hotspot will work with this setup.

Hello,

i also send my all rules , routes and other settings above in this topic. Actually problem is this when i power on my second dsl line then internet gone on all hotspot and ppoe users. Both dsl lines not working togather but they working great single single. But i want to on both dsl lines for balancing our load. THis is our problem. Please guide me soon.

See our settings and rules above.

In PPP interface under Dial Out tab, uncheck add default route.

solved now. and having another problem..