-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 5/9/2011 8:25 PM, ads...@genis-x.com wrote:
> I tried adding the options to /etc/modprobe.conf
> alias bond0 bonding
> options bonding mode=0 miimon=100 downdelay=200 updelay=200
> 
> Saving and rebooting, and so far so good, bonding module is up but no
> interfaces assigned to it.
> 
> My /etc/network/interfaces doesn't seem to work.
> This is what I have.
> 
> auto bond0
> iface bond0 inet static
>         address 10.0.10.228
>         netmask 255.255.255.0
>         broadcast 10.0.10.255
>         bond-slaves eth1 eth2
>         bond-mode active-backup
> 
> This doesn't work at all.
> 
> Can anyone advise?

I seriously doubt the LEAF version of ifup/ifdown (which I believe comes
from busybox) will directly support bonding, so you'll likely have to do
this the old-fashioned way.

Following is an example from one of my older Debian systems, before
bonding was handled more gracefully...it should work on LEAF.  Modify as
required to fit your NICs, IP address, etc:

iface bond0 inet static
        address 64.62.198.40
        netmask 255.255.255.224
        broadcast 64.62.198.63
        gateway 64.62.198.33
        # Uncomment if you need a specific MAC address for the bond
        #hwaddress ether 00:02:B3:48:50:2C
        pre-up ifconfig bond0 up
        pre-up ifconfig eth0 up
        pre-up ifconfig eth1 up
        pre-up ifenslave bond0 eth0 eth1
        down ifenslave -d bond0 eth0 eth1
        down ifconfig eth0 down
        down ifconfig eth1 down

As an alternative, you can put the pre-up and down commands in the
/etc/network/if-<option>.d/ directories.

NOTE:
I notice you're using a custom bond-mode (the default is round-robin,
not active-backup).  The easiest way to handle this (and other low-level
bonding functionality) is likely by passing the appropriate parameter
when loading the module, rather than in /etc/network/interfaces.

- -- 
Charles Steinkuehler
char...@steinkuehler.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk3Iom0ACgkQLywbqEHdNFxKvACgmc2n3ZFT83f6Lq5wA/gZGEuQ
JNEAniPilFBj0Mb2WUlIDsDTK0uVtQC9
=fKBb
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
------------------------------------------------------------------------
leaf-user mailing list: leaf-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-user
Support Request -- http://leaf-project.org/

Reply via email to