Re: How to correctly create multiple bonding interfaces in kernel 2.6.29.6

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

 



On Tue, 2010-02-02 at 15:40 -0500, Hugo wrote:
> Folks,
> 
> I am currently working with kernel 2.6.29.6-0.16.smp.gcc3.4.x86_64 .
> Per this conversation:
> 
> [Bonding-devel] [PATCH] bonding: fix multiple module load problem
> http://lkml.indiana.edu/hypermail/linux/kernel/0906.1/01121.html
> 
> , I would like to know how to correctly create multiple bonding 
> interfaces with different options / modes.
> 
> Can anybody help me with that?
> 
> I recently upgraded from kernel 2.6.26 which was working fine using 
> something like in modprobe.conf:
> 
> install bond0 /sbin/modprobe --ignore-install bonding -o bond0 
> mode=balance-alb miimon=100
> install bond1 /sbin/modprobe --ignore-install bonding -o bond1 
> mode=balance-rr miimon=100
> 
> , unfortunately kernel 2.6.29 does not seem to like these and when I 
> test the bonding interfaces using just a ping, I got a kernel panic.
> 
> Also, I have trying several different ways to configure the bonding 
> interface, but it is never stable.
> Ping will work for 10 seconds, time out for another 0 or so and back 
> and forth.
> 
> Any help / thoughts / comments will be greatly appreciated.

What distro are you using?

There are a few ways to configure bonding under Debian, the OS I use.

Here are a couple:

cat /etc/network/interfaces
auto bond0
iface bond0 inet static
  address 131.212.100.1
  netmask 255.255.255.0
  network 131.212.100.0
  broadcast 131.212.100.255
  gateway 131.212.100.254
  pre-up echo balance-rr > /sys/class/net/bond0/bonding/mode
  up echo 100 > /sys/class/net/bond0/bonding/miimon
  up echo 200 > /sys/class/net/bond0/bonding/downdelay
  up echo 200 > /sys/class/net/bond0/bonding/updelay
  up echo +eth0 > /sys/class/net/bond0/bonding/slaves
  up echo +eth1 > /sys/class/net/bond0/bonding/slaves


or

sudo aptitude install ifenslave-2.6
cat /etc/network/interfaces
auto bond0
iface bond0 inet static
  address 131.212.100.1
  netmask 255.255.255.0
  network 131.212.100.0
  broadcast 131.212.100.255
  gateway 131.212.100.254
  slaves eth0 eth1
  bond_mode active-backup
  bond_miimon 100
  bond_downdelay 200
  bond_updelay 200
  bond_primary eth0

You can also check out Documentation/networking/bonding.txt in your
kernel source tree.

You may need to

echo bonding >> /etc/modules

to get it to survive a reboot.


-- 
Matt Zagrabelny - mzagrabe@xxxxxxxxx - (218) 726 8844
University of Minnesota Duluth
Information Technology Systems & Services
PGP key 4096R/42A00942 2009-12-16
Fingerprint: 5814 2CCE 2383 2991 83FF  C899 07E2 BFA8 42A0 0942

He is not a fool who gives up what he cannot keep to gain what he cannot
lose.
-Jim Elliot

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux