[Bug 574456] Re: hotplug-style bonding does not work after reboot - "service networking restart" needed to get it working
Shawn Teague
574456 at bugs.launchpad.net
Sat Nov 5 16:08:44 UTC 2011
Scott's post didn't quite work for me.
But I have Bonding interfaces, VLAN segmentation of bond0, bridging of bond0.<vlans>
Everything looked OK on reboot but no actual networking happened, untill I would do a networking restart.
All this is on Ubuntu Server 11.04
What did work for me (YMMV)
Create a /etc/modprobe.d/bonding.conf
****
alias bond0 bonding
options bonding mode=802.3ad ad_select=bandwidth max_bonds=1 lacp_rate=slow miimon=100 use_carrier=1 downdelay=200 updelay=200
****
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
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
auto br100-CONTROL
iface br100-CONTROL inet static
# Static assign the IP, netmask, default gateway.
address 10.9.4.72
netmask 255.255.255.0
gateway 10.9.4.1
# Bind one or more interfaces to the bridge.
bridge_ports bond0.100
# Tune the bridge for a single interface.
bridge_stp off
bridge_fd 0
bridge_maxwait 0
# Create a bridged interface.
auto br30-DMZ
iface br30-DMZ inet manual
bridge_ports bond0.30
bridge_stp off
bridge_fd 0
bridge_maxwait 0
# Create a bridged interface.
auto br31-HOSTED
iface br31-HOSTED inet manual
bridge_ports bond0.31
bridge_stp off
bridge_fd 0
bridge_maxwait 0
# Create a bridged interface.
auto br40-PRODUCTION
iface br40-PRODUCTION inet manual
post-up ifconfig $IFACE up
pre-down ifconfig $IFACE down
bridge_ports bond0.40
bridge_stp off
bridge_fd 0
bridge_maxwait 0
****
--
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