Community discussions

MikroTik App
 
rajamani779
Member Candidate
Member Candidate
Topic Author
Posts: 125
Joined: Sat Mar 26, 2011 7:56 pm

Problem with 2 dsl lines with load balancing.

Mon Apr 04, 2011 7:54 pm

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.
 
rajamani779
Member Candidate
Member Candidate
Topic Author
Posts: 125
Joined: Sat Mar 26, 2011 7:56 pm

Re: Problem with 2 dsl lines with load balancing.

Mon Apr 04, 2011 8:27 pm

waiting for reply
 
User avatar
JP_Wireless
Member Candidate
Member Candidate
Posts: 276
Joined: Thu Dec 13, 2007 4:31 pm
Location: Lagos Nigeria
Contact:

Re: Problem with 2 dsl lines with load balancing.

Mon Apr 04, 2011 11:06 pm

can you post your configuration for better understanding of what you did?
 
rajamani779
Member Candidate
Member Candidate
Topic Author
Posts: 125
Joined: Sat Mar 26, 2011 7:56 pm

Re: Problem with 2 dsl lines with load balancing.

Tue Apr 05, 2011 2:34 am

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...
 
User avatar
Egate
Long time Member
Long time Member
Posts: 555
Joined: Thu May 15, 2008 10:43 am
Location: South Africa

Re: Problem with 2 dsl lines with load balancing.

Tue Apr 05, 2011 9:43 am

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.
 
rajamani779
Member Candidate
Member Candidate
Topic Author
Posts: 125
Joined: Sat Mar 26, 2011 7:56 pm

Re: Problem with 2 dsl lines with load balancing.

Tue Apr 05, 2011 12:15 pm

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
 
rajamani779
Member Candidate
Member Candidate
Topic Author
Posts: 125
Joined: Sat Mar 26, 2011 7:56 pm

Re: Problem with 2 dsl lines with load balancing.

Tue Apr 05, 2011 12:18 pm

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.
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.
 
rajamani779
Member Candidate
Member Candidate
Topic Author
Posts: 125
Joined: Sat Mar 26, 2011 7:56 pm

Re: Problem with 2 dsl lines with load balancing.

Tue Apr 05, 2011 4:53 pm

plz help me its urgent.
 
rajamani779
Member Candidate
Member Candidate
Topic Author
Posts: 125
Joined: Sat Mar 26, 2011 7:56 pm

Re: Problem with 2 dsl lines with load balancing.

Tue Apr 05, 2011 10:50 pm

still waiting for solution of my problem... anyone please help me...
 
User avatar
macgaiver
Forum Guru
Forum Guru
Posts: 1770
Joined: Wed May 18, 2005 5:57 pm
Location: Sol III, Sol system, Sector 001, Alpha Quadrant

Re: Problem with 2 dsl lines with load balancing.

Wed Apr 06, 2011 8:51 am

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:PC ... _Balancing

and then you need to think how PPPoE and Hotspot will work with this setup.
 
rajamani779
Member Candidate
Member Candidate
Topic Author
Posts: 125
Joined: Sat Mar 26, 2011 7:56 pm

Re: Problem with 2 dsl lines with load balancing.

Thu Apr 07, 2011 3:23 pm

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:PC ... _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.
 
User avatar
Egate
Long time Member
Long time Member
Posts: 555
Joined: Thu May 15, 2008 10:43 am
Location: South Africa

Re: Problem with 2 dsl lines with load balancing.

Fri Apr 08, 2011 4:17 pm

In PPP interface under Dial Out tab, uncheck add default route.
 
rajamani779
Member Candidate
Member Candidate
Topic Author
Posts: 125
Joined: Sat Mar 26, 2011 7:56 pm

Re: Problem with 2 dsl lines with load balancing.

Fri Apr 08, 2011 10:21 pm

solved now. and having another problem..