[Bug 515315] Re: WiFi/ethernet bonding config fails to launch wpa_supplicant
mlx
515315 at bugs.launchpad.net
Sat Jun 30 18:42:47 UTC 2012
Hi and thanks for replying.
Just for clarification - how do you expect me to use the bonding feature? I'm not using it on a server where, in the absence of network-manager, the interfaces would be configured by the interfaces during startup; rather, this is a laptop where NM is used whenever possible - which doesn't include bonding setup (at least until NM v0.9.4).
I use bonding like this:
1. # stop network-manager
2. Run a command that (preferably) configures everything with zero assumptions about previous state.
Now, about your suggested config:
To work at all, it needs "auto wlan0" line added before the wlan0 stanza (wlan1 = wlan0; I did this when I upgraded my wlan card and didn't know about 70-persistent-net). This makes it equvalent to the suggested config in examples/ethernet+hotplug_wifi under ifenslave docs. This solution works, if I use "/etc/init.d/networking restart" as step 2. (About the wlan0 MAC address - don't worry, that's what the wpa-bridge line is for - the supplicant takes the MAC from there and authenticates with it. As long as the hardware/driver doesn't have issues using a different MAC address, it works perfectly.)
Howver, back before I filed this bug, I used "ifup bond0" as step 2.
With "none" as bond slaves in bond0 stanza, this does not work AT ALL.
No slave is added to the bond0 interface, the script waits for 60
seconds and then proceeds to run dhclient on bond0 (which receives no
offers for obvious reasons).
So, on one hand, I have found how to make bonding work again on 12.04, and thanks for that.
OTOH, I do wish that using ifup and ifdown on bond0 would also work - I'd hate to imagine using this in a setup with other, unrelated interfaces I'd rather not down and up just to bring up a bond.
--
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/515315
Title:
WiFi/ethernet bonding config fails to launch wpa_supplicant
Status in “ifenslave-2.6” package in Ubuntu:
Incomplete
Bug description:
Binary package hint: ifupdown
Versions:
Kubuntu 9.10,
ifupdown 0.6.8ubuntu21
I'm trying to use bonding to provide seamless failover between the
wired and wireless interfaces. Wired>eth0 wireless>wlan1. Since
network manager doesn't support bonding yet, I stop it (# stop
network-manager) and (try to) manage the interfaces using ifup and
ifdown utilities. Using the example in
/usr/share/doc/ifenslave-2.6/examples/ethernet+wifi, I set up my
interfaces file:
auto lo
iface lo inet loopback
auto bond0
iface bond0 inet dhcp
bond-slaves eth0 wlan1
bond-mode 1
bond-miimon 100
bond-primary eth0
iface wlan1 inet manual
bond-give-a-chance 10
wpa-bridge bond0
wpa-ssid ASUS
wpa-psk ****
wpa-key-mgmt WPA-PSK
wpa-group CCMP TKIP
My problem is that with this setup, running ifup -v bond0 shows that
wpa_supplicant is never run, thus leaving the wireless interface down.
Is there something I'm missing? Using the interfaces file to connect
directly (no bonding interface) with wlan1 works fine.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ifenslave-2.6/+bug/515315/+subscriptions
More information about the foundations-bugs
mailing list