[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Create bonded interfaces



On Thu, 2006-10-19 at 17:16 -0400, Mark Haney wrote:
> Marc wrote:
> > google for 'ethernet channel bonding'....commands should be the same 
> > as RHEL. 
> >
> > Never done this in FC.  Is this a clustered environment as in GFS/RHCS? 
> >
> > Marc
> >
> > On 10/19/06, **
> Nope, it's just a dual Opteron SAN server with 2 dual port Gbit NICs.
> 
> It worked on the upgrade to FC4, I just wanted to set it up again since 
> I just freshly installed FC5.

You simply configure the slaves in /etc/sysconfig/network-scripts:

/etc/sysconfig/network-scripts/ifcfg-eth0:
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=none
SLAVE=yes
MASTER=bond0

/etc/sysconfig/network-scripts/ifcfg-eth1:
DEVICE=eth1
ONBOOT=yes
BOOTPROTO=none
SLAVE=yes
MASTER=bond0

And set up your bond device:

/etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
ONBOOT=yes
BOOTPROTO=static
BONDING_MASTER=yes
BONDING_SLAVE0=eth0
BONDING_SLAVE1=eth1
IPADDR=www.xxx.yyy.zzz
NETMASK=aaa.bbb.ccc.ddd

Edit /etc/modprobe.conf and add these lines if they're not already
there:

	alias bond0 bonding
	options bond0 mode=mode-string miimon=100

"mode-string" is one of the available mode strings:

	balance-rr ("0"): Balanced round-robin (default)
	active-backup ("1"): Active-passive failover
	balance-xor ("2"): Use transmit hash algorithm
	broadcast ("3"): Broadcast (transmit on all slaves)
	802.3ad ("4"): Use dynamic link aggregation
	balance-tlb ("5"): Transmit load balance based on NIC load
	balance-alb ("6"): Adaptive load balance

(you can use the number in the parenthesis instead of the string, e.g.
"mode=2").

Then "service network restart" and it should be alive and kicking in
whatever mode you specified.

This is all described in the

	/usr/share/doc/kernel-doc*/Documentation/networking/bonding.txt

file if you installed the kernel-doc RPM.

----------------------------------------------------------------------
- Rick Stevens, Senior Systems Engineer     rstevens vitalstream com -
- VitalStream, Inc.                       http://www.vitalstream.com -
-                                                                    -
-    I don't suffer from insanity...I enjoy every minute of it!      -
----------------------------------------------------------------------


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]