Community discussions

MikroTik App
 
costel
newbie
Topic Author
Posts: 29
Joined: Sat May 05, 2012 6:05 pm

Two ISP - load balancing for a single internal IP

Mon May 07, 2012 3:20 pm

Hello!

I bought a RB450G a week ago. I was told I can use QoS, shaping and make load balancing with it. My networking knowledge is limited to basics.
I already did bandwidth shapping - fixed bandwidth equaly distributed to connected users and implemented QoS prioritization.
I need some advice for the last step - Load Balancing/bonding
My purpose is to add another connection from second ISP and "link" it to just one internal IP.
Example:
ISP1 - ADSL modem - 192.168.2.205 -> Mikrotik RB450G -> internal clients with DHCP assigned IP 192.168.88.0/24
ISP2 - Ethernet cable - public IP let's say 86.109.XXX.XXX -> Mikrotik RB450G -> client with IP 192.168.88.254 (DNAT)
So, client with IP 192.168.88.254 will have simultaneos access to Internet via both ISP.

For now I have
 #    NAME                                                                   MTU MAC-ADDRESS       ARP        MASTER-PORT                                                               SWITCH                                                              
 0 R  ether1-gateway                                                        1500 00:0C:42:AA:62:91 enabled    none                                                                      switch1                                                             
 1 R  ether2-master-local                                                   1500 00:0C:42:AA:62:92 enabled    none                                                                      switch1                                                             
 2 RS ether3-slave-local                                                    1500 00:0C:42:AA:62:93 enabled    ether2-master-local                                                       switch1                                                             
 3  S ether4-slave-local                                                    1500 00:0C:42:AA:62:94 enabled    ether2-master-local                                                       switch1                                                             
 4    ether5-gateway                                                        1500 00:0C:42:AA:62:95 enabled    none                                                                      switch1                                                             
ether5-gateway it's just renamed. Was ether5-slave-local and ether2-master-local was his master-port. No other modification was made.

I don't know where to start what should I use to do that (DNAT and load balancing, bonding). Long story short, I'm confused.
Could you give me some hints, documentation link please ?
 
CelticComms
Forum Guru
Forum Guru
Posts: 1765
Joined: Wed May 02, 2012 5:48 am

Re: Two ISP - load balancing for a single internal IP

Mon May 07, 2012 10:24 pm

You can only bond the two ISP paths using either a protocol supported by the ISP(s) or a third party VPN approach.

As regards load balancing there are various options like sending certain types of traffic to certain ISPs depending on the traffic type, source address and/or destination address. The details would depend on the relative speeds etc. of the two ISP connections and the traffic types/load that you expect/observe.
 
costel
newbie
Topic Author
Posts: 29
Joined: Sat May 05, 2012 6:05 pm

Re: Two ISP - load balancing for a single internal IP

Thu May 10, 2012 8:08 am

Well, in the end, I accomplished to fully setup the router.
For this last problem I used PPC and Load Balancing.
Thanks for pointing me in the right direction.
 
vortex1
just joined
Posts: 20
Joined: Tue Sep 28, 2010 10:07 am

Re: Two ISP - load balancing for a single internal IP

Thu May 31, 2012 9:57 am

Hi costel. will u be able to send me the config?
i do need to do something similar.
 
costel
newbie
Topic Author
Posts: 29
Joined: Sat May 05, 2012 6:05 pm

Re: Two ISP - load balancing for a single internal IP

Fri Jun 01, 2012 5:02 pm

Hello!

Yes, glady, but my setup it's changed. Now, I'm using QoS so I have to take other aproach for load balancing.
I attached my current configuration. Sorry, didn't cross my mind to keep the old one.
The current setup:
- two ISP - ether1-WAN1 and ether3-WAN2
- two internal networks - ether2-LAN1 and ether4-LAN2 (with ether5 as slave of it)
- QoS for LAN1
- shaping - equal shared between connected users for LAN1
As you can see there are no limitations or special config for LAN2.
Only two computers are connected in LAN2, both running Gentoo Linux.

For load balancing I use these paches - http://www.ssi.bg/~ja/#routes-2.6 and this script - http://www.ssi.bg/~ja/tmp/mpath2.sh
Best Load Balancing result I gained using a slightly modified version of - http://aacable.wordpress.com/2011/06/04 ... t-by-zaib/
Unfortunately one packet can't be market multiple times. So I have had to chose between implementing load balancing or QoS. In the end I chosed QoS.
You do not have the required permissions to view the files attached to this post.