LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-21-2005, 08:35 AM   #1
Snerkel
Member
 
Registered: Jul 2004
Location: England
Distribution: 1 Gentoo 2005.0 system(desktop), 1 hardened-gentoo SeLinux stage1 server ;)
Posts: 262

Rep: Reputation: 30
Fedora load balancing over NIC's


Hi,

I am running fedora purely as a webserver which gets very busy. I was wondering how easy it was to setup load balancing between the 2 NIC's i have installed would be. Would i need to start rebuilding the kernel or would it be a more simple job?

Any advice would be much apricated.

Thanks, Ben.
 
Old 09-23-2005, 10:25 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
We did "bonding" on our setup on Redhat AS 3:

In /etc/modules.conf added:
alias bond0 bonding
options bonding miimon=100


In /etc/sysconfig/network-scripts:

1) Created ifcfg_bond0 with the following contents:
# Bonding Device for eth2 and eth3
DEVICE=bond0
IPADDR=172.16.0.1
NETMASK=255.255.255.0
NETWORK=172.16.0.0
BROADCAST=172.16.0.255
ONBOOT=yes
BOOTPROTO=none
USRCTL=no

2) Modified ifcfg_eth2 and ifcfg_eth3.
# Intel Corp.|82546EB Gigabit Ethernet Controller (Copper)
DEVICE=eth2
HWADDR=xx:xx:xx:xx:xx:xx
ONBOOT=yes
TYPE=Ethernet
USERCTL=no
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
ETHTOOL_OPTS="autoneg off speed 100 duplex full"

Note that in item 2 the HWADDR would be your MAC so would be different for each card. The "ETHTOOL_OPTS" is something I added to turn off autonegotiation and hard set the speed to 100 and full duplex. (See man ethtool for more on what it does.) You don't have to have those options for the bonding.

Also if you only have 2 NICs you'd likely want to do eth0 and eth1 instead of eth2 and eth3.

Once done do service network restart.
 
  


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
How to do load balancing tkt Linux - Networking 0 04-27-2005 01:22 AM
Load Balancing otisthegbs Linux - Networking 4 02-10-2005 02:16 PM
Load Balancing matux Linux - Networking 0 01-05-2005 10:59 AM
Load Balancing? gsibble Linux - Networking 3 12-09-2003 10:39 PM
new to load balancing suliu Linux - General 3 05-12-2003 08:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:12 AM.

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