I have centos 7 server working as a gateway for my network with three LAN cards and two internet connections from different ISPs , i want to combine the two connections and balance the network load between them .. I've tried bonding and it didn't work for me well and all the tutorials i watched about load balancing in Linux wasn't good . any ideas !?
-
What do you mean with "load balance"?– gxxMay 8, 2016 at 22:35
-
I want to share the two connections side by side to my network and make load balancing between them i think it means that all the network traffic will be shared between them to increase speed and availability– MTitaMay 8, 2016 at 23:07
-
Well, if you refer to "doing round-robin for your traffic" on both lines using "load balance", then, I'm afraid, this needs more than bonding at your place. You would have to setup a remote point as well, to do bonding over there, so your traffic originates from one source IP. You could do this via a publicly reachable machine somewhere and tunneling your traffic to this point. Or you could set up a stateful firewall which could keep track of your connections and ensures that...– gxxMay 8, 2016 at 23:13
-
...traffic to the same destination is send over one line. Besides: I'm unsure if you know how routing and TCP/IP works, but maybe it would be good to some research first.– gxxMay 8, 2016 at 23:18
-
1You can also consider this: zeroshell.org/load-balancing-failover It's a linux distro in its own right, but poking around may give you some ideas how they do it. More routing examples here: lartc.org/howto/lartc.rpdb.multiple-links.html– JayMcTeeMay 9, 2016 at 8:11
|
Show 5 more comments