Operating System - Linux
1830237 Members
13036 Online
109999 Solutions
New Discussion

Network teaming under linux

 
BruceP_2
New Member

Network teaming under linux

Our company is purchasing some BL465c blade servers and I'm trying to read up as much as I can on them so that we're ready when they arrive. One thing we're interested in making use of is the network teaming capabilities. I've found detailed documentation on utilizing it under Windows but we're running linux (CentOS, a RedHat clone). According to the OS Support section of http://h18004.www1.hp.com/products/servers/networking/teaming.html linux is supported for some of the basic teaming types, but I've been unable to locate any detailed documentation on how to set it up. Can somebody point me to documentation on how to set up teaming under linux?
12 REPLIES 12
melvyn burnard
Honored Contributor

Re: Network teaming under linux

thread placed under completely the wrong forum, moved to more appropriate forum
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
JohnHoover
New Member

Re: Network teaming under linux

You'll proabably want to see if your NICs have a specific driver for "bonding". Once that driver is loaded (or if the driver you currently use is certified for bonding connections), you should be able to set up 2 or more cards into a single bond. ie eth0 and eth1 become bond0. You can then set how you want them to treat the bond.

Blatently stolen, but it's the correct procedure:

Stolen from here:http://www.databasejournal.com/features/oracle/article.php/3652706


To setup bonding involves simple four tasks.

TASK 1: First, you need to create bond0 config file:


# vi /etc/sysconfig/network-scripts/ifcfg-bond0 Append following lines to DEVICE=bond0
BOOTPROTO=static
ONBOOT=yes
IPADDR=11.65.21.82
NETMASK=255.255.255.0
GATEWAY=11.65.21.1
USERCTL=no

TASK 2: Modify eth0 and eth1 config files:

Open both configuration using VI text editor and make sure file read as follows for eth0 and eth1 interfaces.

[root@linuxhost network-scripts]# more ifcfg-eth0
DEVICE=eth0
ONBOOT=no
MASTER=bond0
SLAVE=yes
USERCTL=no
[root@linuxhost network-scripts]# more ifcfg-eth1
DEVICE=eth1
ONBOOT=no
MASTER=bond0
SLAVE=yes
USERCTL=no

TASK 3: Load driver module:

Make sure bonding module is loaded when the channel-bonding interface (bond0) is brought up. You need to modify the kernel modules configuration file so that it looks like the one below.

[root@linuxhost network-scripts]# more /etc/modprobe.conf
alias bond0 bonding
options bond0 mode=balance-alb miimon=100

TASK 4: Test configuration by modprobe and service network restart commands.

[root@linuxhost network-scripts]# modprobe bonding
[root@linuxhost network-scripts]# service network restart

Let me know if you need more help.
rick jones
Honored Contributor

Re: Network teaming under linux

on a sufficiently contemporary distro (eg 2.6) there should be a bonding.txt file on the system you can find via the find command. It will have lots of useful information about the bonding driver you will use to setup link bonding/teaming/aggregation
there is no rest for the wicked yet the virtuous have no pillows
AbdulKhan
New Member

Re: Network teaming under linux

Hi John,

Thans for the info.

I am new Linux and have just managed to install Fedora Core 6 on HP DL 360G5 server.

Can you please help me create network team(Load balancing and failover) in fedora 6.

Thanks,
Abdul
rpmXperts
New Member

Re: Network teaming under linux

Please can u explain the meaning of the following line:

options bond0 mode=balance-alb miimon=100 ?

Rgds,

K
JHoover
Occasional Advisor

Re: Network teaming under linux

Abdul, sorry to take so long to get back. The above instructions should work fine in FC6, so long as you have decent network cards (Intel or Broadcom chipsets are the two I've had good results with).

Quote:
Please can u explain the meaning of the following line:

options bond0 mode=balance-alb miimon=100 ?

Rgds,

K

These are the different options for the bond0 interface. The "mode=balance-alb" means that the bonding driver will try to Active Load Balance (alb) the data across all of the ethX interface that are part of bond0. "miimon=100" will force the bond0 interface to 100Mbps.

I lost the login I had before, and due to an email address change at work, couldn't recover the password, hence the change in username as well...

HTH
John
Silence is golden, duct tape is silver
rpmXperts
New Member

Re: Network teaming under linux

Thx for the response,

So miimon=100 means 100 FDX mbps
and miimon=1000 means 1000 Mbps

if i don't include miimon than it is on AUTO ?

Rgds,

RpmX
JHoover
Occasional Advisor

Re: Network teaming under linux

Crap... I lead you astray, and replied before my second cup of coffee... miimon is something different. the miimon is how often it monitors the interface to make sure they're up, in milliseconds. miimon=100 means that it polls every 100ms, miimon=1000 means every 1000ms (1second). 100 should be fine with good network cards, but if you have cheapies, they sometimes can't take 10 polls a second without detriments to the performance. I had this happen with $10 Realteks in a built from parts laying around test box.

Sorry I sent you the wrong way before.
Silence is golden, duct tape is silver
rick jones
Honored Contributor

Re: Network teaming under linux

Do a find for the bonding.txt file - it will explain all the options. IIRC it will be somewhere under /usr. On an SLES10sp2 system I have at my finger tips it is under:

/usr/src//Documentation/networking/bonding.txt

there is no rest for the wicked yet the virtuous have no pillows
Court Campbell
Honored Contributor

Re: Network teaming under linux

you will need to install the kernel-docs.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
rpmXperts
New Member

Re: Network teaming under linux

Thanks pal, You confirm my thinking.

Court Campbell
Honored Contributor

Re: Network teaming under linux

Well,

I guess I could have put a link to a bonding.txt doc:

http://www.mjmwired.net/kernel/Documentation/networking/bonding.txt

but i thought that is what google was for.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"