LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 08-22-2004, 12:40 PM   #1
univaco
LQ Newbie
 
Registered: Aug 2004
Distribution: Slackware 10
Posts: 1

Rep: Reputation: 0
outbound web traffic load balancing across multiple nics


Anyone know how to load balance outbound web traffic across multiple nics on a linux server? Each nic would be attached to the same switch and network connection; the goal is to increase bandwidth capacity in case of dos attack and to provide nic redundancy. Thanks.
 
Old 08-22-2004, 03:53 PM   #2
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
Apache automatically listens on all available IP addresses (so network interfaces), unless configured not to.

In truth, you are very unlikely to get any benefit at all from multiple NICs, especially if one is part of the mainboard. The chances of just the NIC failing on it's own are very low (none if a NIC is part of the mainboard). You are unlikely to be able to saturate a 100 Mbps interface unless it serves very large files and/or has very large numbers of simultaneous connections. All NICs are attached to the same (PCI) bus on a standard system, as well.

I think that the better solution to the issues you're mentioned are to have multiple boxes and use a round-robin DNS entry to split the traffic between them. The base line spec for Web serving is literally a 486, so the boxes can be as big or small as you like. A simple script can keep the files on multiple servers identical.
 
Old 08-22-2004, 08:55 PM   #3
littleking
Member
 
Registered: Jun 2003
Location: New Albany, OH
Posts: 190

Rep: Reputation: 30
you could do ether-channel (channel-bonding)

as for round robin dns... to slow
 
Old 10-23-2008, 12:41 PM   #4
mndar
Member
 
Registered: Feb 2005
Posts: 34

Rep: Reputation: 16
I had posted a method to get perfect load balancing on another forum a while back. You might find it useful
http://forums.fedoraforum.org/showthread.php?p=835704

To use some specific iptables features, you may have to re-compile it. This link will help
http://mndar.phpnet.us/tutorials/Lin...s_goodies.html
 
Old 01-21-2009, 12:35 PM   #5
MMan
LQ Newbie
 
Registered: Jan 2009
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by littleking View Post
you could do ether-channel (channel-bonding)

as for round robin dns... to slow
Any clues whether Linux supports multichassis bonding?
 
Old 01-21-2009, 01:25 PM   #6
NaCo
Member
 
Registered: Jun 2002
Location: L.A.
Distribution: Fedora
Posts: 46

Rep: Reputation: 15
Linux Enterprise Cluster

Check out this book:
Linux Enterprise Cluster

http://www.amazon.com/Linux-Enterpri...2565376&sr=8-1

You could accomplished that by having a cluster. A cluster is not replacement for bandwidth though , instead it will enable to have failover and to load balance traffic among several linux boxes.

Good luck.
Angel
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
traffic shaping and link load balancing d4rksid3 Linux - Networking 7 10-22-2008 10:34 PM
load balancing nics... roofy Linux - Networking 8 12-22-2005 11:24 AM
HELP:Load balancing 2 NICs (with a twist!) pxumsgdxpcvjm Linux - Networking 6 12-06-2005 03:40 PM
Setup Dual nics for load balancing/failover thistleair Linux - Networking 4 05-11-2005 02:15 PM
Spike in outbound traffic- where to look? htmlcoder Linux - Security 3 03-19-2005 03:13 PM


All times are GMT -5. The time now is 03:34 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration