LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 10-03-2006, 07:16 PM   #1
jetpig
LQ Newbie
 
Registered: Oct 2005
Posts: 20

Rep: Reputation: 0
network load balancing?


I'm gonna set up a NAS using a mobo that has two gigabit nics. i'd like to do load balancing between the two nics so that if i'm copying 30 gigs off the nas to a computer, a media box can still reliably stream hi-def movies off it.

example:


nas
| |
SWITCH - router - internet
| | |
all other comps
 
Old 10-03-2006, 07:41 PM   #2
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Rep: Reputation: 51
Quote:
Originally Posted by jetpig
I'm gonna set up a NAS using a mobo that has two gigabit nics. i'd like to do load balancing between the two nics so that if i'm copying 30 gigs off the nas to a computer, a media box can still reliably stream hi-def movies off it.

example:


nas
| |
SWITCH - router - internet
| | |
all other comps
Is this a question or a statement?

I'll assume it's a question. You're looking for link aggregation which is done with the bonding module and the ifenslave program. It sounds like you want the 802.3ad protocol which maximizes throughput, allowing full gigE speed (well, as full as is allowed with latency, overhead, etc. etc.) on each port. Your switch will need to support this protocol (called different things by different switches & the docs on load balancing with consumer switches is usually pretty sparse).

I run a Linksys managed switch. For my setup, I need to turn on "LACP" (Link Aggregation Control Protocol) and "LAG" (Link Aggregate Group) for all ports in the aggregate.

I've done this before with a Netgrear switch - it was a bit more convoluded... it's called something like vlan trunking. I think there's half a paragraph in the docs on it.

If your switch is not managed (ie, there's no web/telnet configuration interface), this will not work with a single switch.

for info on how to setup your machine, check out this link: http://linux-net.osdl.org/index.php/Bonding - all the info you'll need to know is there.

FYI: Your life will be easier if you *only* run the link aggregation... don't be fnacy & try to do a maintenance port or anything, just make the bond your main interface.

To test that everything is working, install and monitor all interfaces with "iptraf"


edit: As should be obvious, you may run into other issues, like hard drive speed/throughput, internal bandwidth, etc. My file server runs 2 64-bit procs, & has both the RAID & NIC's on 64-bit, 133MHz PCI-Express slots. My old file server was only running 1 32 bit proc & only used 32 bits of the 64-bit PCI Card & was running into lots of bandwidth issues.

Last edited by BrianK; 10-03-2006 at 07:48 PM.
 
Old 10-05-2006, 05:32 PM   #3
jetpig
LQ Newbie
 
Registered: Oct 2005
Posts: 20

Original Poster
Rep: Reputation: 0
thanks for the answer, shoulda put in teh actual question >_< you got it right though. i'll be using a single 64 bit proc and an areca pci-e raid card using 8 sata drives in raid 5. the computer currently has a gigabyte k8nxp-sli mobo which has two gigabit nics. thanks for the info on bonding, i'll have to see if i can get it working. =D
 
Old 11-08-2006, 05:25 PM   #4
sn9ke_eyes
Member
 
Registered: Feb 2003
Location: Texas
Distribution: slackware 11
Posts: 90

Rep: Reputation: 15
Quote:
Originally Posted by BrianK
for info on how to setup your machine, check out this link: http://linux-net.osdl.org/index.php/Bonding - all the info you'll need to know is there.
Thank's for the link, that's a very nice doc.
 
  


Reply



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
2 network cards, single network, load balancing? tormentum Linux - Networking 1 02-13-2005 02:37 PM
Network Load Balancing namdn Linux - Networking 1 09-20-2004 03:14 AM
Network Load Balancing bwilliam79 Linux - Networking 1 08-10-2004 10:38 AM
Network Load Balancing & DNS round robin scooby snacks Linux - Networking 1 04-19-2004 12:28 PM
Network load balancing?? trycoon Linux - Networking 3 01-21-2003 03:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:51 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration