[Bug 574456] Re: hotplug-style bonding does not work after reboot - "service networking restart" needed to get it working
Steve Langasek
steve.langasek at canonical.com
Sat Nov 5 16:44:54 UTC 2011
On Sat, Nov 05, 2011 at 04:08:44PM -0000, Shawn Teague wrote:
> Here is my final /etc/interfaces
> ****
> auto lo
> iface lo inet loopback
> auto bond0
> iface bond0 inet manual
> bond-slaves eth0 eth1
> auto eth0
> allow-bond0 eth0
> iface eth0 inet manual
This is not a supported method of configuring bonded interfaces in Ubuntu.
The event-driven startup means that the bonding has to be initiated from the
side of the physical interface, not from the bonding interface.
You should have the following instead:
auto bond0
iface bond0 inet manual
bond-slaves none
bond-primary eth0 eth1
auto eth0
iface eth0 inet manual
bond-master bond0
bond-primary eth0 eth1
auto eth1
iface eth1 inet manual
bond-master bond0
bond-primary eth0 eth1
(You don't have to list both interfaces as primary, but at least one of them
should be AIUI.)
> auto bond0.100
> iface bond0.100 inet manual
> auto bond0.30
> iface bond0.30 inet manual
> auto bond0.31
> iface bond0.31 inet manual
> auto bond0.40
> iface bond0.40 inet manual
I think these can all be left out since you aren't actually bringing up any
configuration on them. And anyway, these would often fail to be started by
ifupdown at all with an event-based boot.
--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
Ubuntu Developer http://www.debian.org/
slangasek at ubuntu.com vorlon at debian.org
--
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/574456
Title:
hotplug-style bonding does not work after reboot - "service networking
restart" needed to get it working
Status in “ifenslave-2.6” package in Ubuntu:
Confirmed
Bug description:
Binary package hint: ifenslave-2.6
i just installed a fresh ubuntu 10.04 lts and tried to get bonding to
work.
i used the hotplug style as suggested in the release notes ob 10.04 -
but it only works as long as i don't reboot the system! when the
system gets rebootet you have to restart networking service.
kernel version:
Linux 1004 2.6.32-21-generic-pae #32-Ubuntu SMP Fri Apr 16 09:39:35 UTC 2010 i686 GNU/Linux
package:
ifenslave-2.6 1.1.0-14ubuntu2
/etc/network/interfaces:
auto bond0
iface bond0 inet static
address 192.168.10.10
netmask 255.255.255.0
gateway 192.168.10.1
bond-slaves none
bond-mode 1
bond-miimon 100
auto eth0
iface eth0 inet manual
bond-master bond0
bond-primary eth0 eth1
auto eth1
iface eth1 inet manual
bond-master bond0
bond-primary eth0 eth1
this does not work after reboot of the system!
when i use the old style with loaded module it works for me.
working example:
/etc/modprobe.d/bonding
install bond0 /sbin/modprobe bonding -o bond0 mode=balance-xor miimon=100
/etc/network/interfaces:
auto bond0
iface bond0 inet static
address 192.168.10.10
netmask 255.255.255.0
gateway 192.168.10.1
post-up ifenslave bond0 eth0 eth1
pre-down ifenslave -d bond0 eth0 eth1
i hope this infos help to get the "hotplug-stlye" version up and
running even if a system reboots! :-)
thx
manfred
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ifenslave-2.6/+bug/574456/+subscriptions
More information about the foundations-bugs
mailing list