[Bug 974218] Re: Ifenslave-2.6 problem in ubuntu 12;04 precise

simonnix 974218 at bugs.launchpad.net
Mon May 21 12:27:34 UTC 2012


I was unable to make it work as it should.

My setup is as follow :

I have to NIC to bond using the 802.3ad mode. That bond is to be used
with VLAN. When started the bond0 interface and my two NICs should have
the same MAC address but they do not.

>From my reading I should have :
===
auto eth0
iface eth0 inet manual
        bond-master bond0

auto eth1
iface eth1 inet manual
        bond-master bond0

auto bond0
iface bond0 inet manual
        bond-slaves none
        bond-mode 802.3ad
        bond-miimon 100
        bond-updelay 200
        bond-downdelay 500

auto xenbr0
iface xenbr0 inet static
        address 192.168.0.100
        netmask 255.255.255.0
        gateway 192.168.0.1
        bridge_maxwait 10
        bridge_stp on
        bridge_ports bond0.10
===

When doing that setup the bond0 interface comes up but the MAC address
does not match.

The only way I had it to work as expected is not to "auto" eth0 and eth1
and use the "up" stanzas to bring those interface inside the bond :

===
iface eth0 inet manual
        bond-master bond0

iface eth1 inet manual
        bond-master bond0

auto bond0
iface bond0 inet manual
        up ifup eth0
        up ifup eth1
        bond-slaves none
        bond-mode 802.3ad
        bond-miimon 100
        bond-updelay 200
        bond-downdelay 500

auto xenbr0
iface xenbr0 inet static
        address 192.168.0.100
        netmask 255.255.255.0
        gateway 192.168.0.1
        bridge_maxwait 10
        bridge_stp on
        bridge_ports bond0.10
===

I tried the "allow-bond0 ethX" stanzas instead of "auto ethX" but it
does not seem to work at all.

I tried to reproduce the bond0 configuration parameters inside each NIC
but it does not work either.

Now the interface bond0 start with a 60 seconds waiting time at boot
(which I reduced in the scripts to 10 seconds).

===

So the event based startup of the bond is broken. Could we have it
working once and for all?

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ifenslave-2.6 in Ubuntu.
https://bugs.launchpad.net/bugs/974218

Title:
  Ifenslave-2.6 problem in ubuntu 12;04 precise

Status in “ifenslave-2.6” package in Ubuntu:
  Confirmed

Bug description:
  Hi,

  I use ubuntu in my server, i have two interfaces bonds connected,
  bond0 -> eth2 and eth3
  bond1 -> eth3 and eth4

  In old versions the package ifenslave, my interface bound, works
  without problems

  But in latest version the package ( 1.1.0-19ubuntu5 ) , the interface
  up but not ping.

  Now i use version ifenslave-2.6 (1.1.0-19ubuntu1) and my interfaces
  works without problems.

  My archive :
  /etc/init.d/network/interfaces :

  auto bond0
  iface bond0 inet static
     pre-up ip link set eth2 up
     pre-up ip link set eth3 up
     address 192.168.0.2
     broadcast 192.168.0.255
     post-up ifconfig bond0 mtu 9000
     netmask 255.255.255.0
     slaves eth2 eth3
     bond_mode broadcast
     bond_miimon 100
     bond_updelay 200
     bond_downdelay 500
     bond_usecarrier 1
  auto bond1
  iface bond1 inet static
     broadcast 192.168.1.255
     address 192.168.2.2
     pre-up ip link set eth4 up
     pre-up ip link set eth5 up
     netmask 255.255.255.0
     post-up ifconfig bond1 mtu 9000
     slaves eth4 eth5
     bond_mode broadcast
     bond_miimon 100
     bond_updelay 200
     bond_downdelay 500
     bond_usecarrier 1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ifenslave-2.6/+bug/974218/+subscriptions




More information about the foundations-bugs mailing list