Java Mailing List Archive

http://www.redhatconfig.com/

Home » Red Hat Enterprise Linux 5 »

[rhelv5-list] Re: running bonds with different configs ?

Jan-Frode Myklebust

2008-04-16

Replies:

Author LoginPost Reply
On 2008-04-16, Gerrard Geldenhuis <Gerrard.Geldenhuis@(protected):
> Try setting your bonding options in ifcfg-bond0 like the following:
>
> DEVICE=bond0
> BOOTPROTO=static
> ONBOOT=yes
> IPADDR=192.168.0.1
> NETMASK=255.255.255.0
> BONDING_OPTS="mode=active-backup miimon=5 updelay=250"
>
> You should be able to do that for each bond although I have not tested
> it so don't know if it will work.
>

Great, thanks! That seems to be what I was looking for. And
then /etc/sysconfig/network-scripts/ifup-eth is echoing the
BONDING_OPTS into the individual bonds:

  for arg in $BONDING_OPTS ; do  
    key=${arg%%=*};
    value=${arg##*=};
    echo $value > /sys/class/net/${DEVICE}/bonding/$key
  done


-jf

_______________________________________________
rhelv5-list mailing list
rhelv5-list@(protected)
https://www.redhat.com/mailman/listinfo/rhelv5-list
©2008 redhatconfig.com - Jax Systems, LLC, U.S.A.