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

Re: Adding wifi to a LAN Bridge for Xen



	Hi.

On Tue, 3 Nov 2015 18:50:40 -0800 (PST)
ray <ray@aarden.us> wrote:

> I have a LAN connection on a laptop with jessie designed for a Xen installation.  The /etc/network/interfaces looks like:
> 
> auto lo
> iface lo inet loopback
> allow-hotplug usb0
> iface usb0 inet manual
> auto xenbr0
> iface xenbr0 inet dhcp
> bridge_ports usb0 
> 
> I would like to add wifi to this such that transitioning from a wired location to a wifi hotspot, there will not be an interruption; or if one of the service are lost, the machine can automatically use the other.
> 
> I have seen a dual Ethernet card implementation model for redundant cards for the host and any of the guests.
> It seems like the way to do this with wifi would be to include another bridge associated with the wlan0.  Would it be functional to repeat the usb0 and xenbr0 stanza and replace usb0 with wlan0 and xenbr0 with xenwbr0?

This needs to be done differently. Because, first things first - you
can not include a single network interface into two or more bridges.

What you can do is either:

a) Include both usb0 and wlan0 (or whatever your wireless interface is
called) into xenbr0. It should work only if both usb0 and wlan0 are the
part of the same network (i.e. they use the same DHCP server).

auto lo
iface lo inet loopback

allow-hotplug usb0
iface usb0 inet manual

auto wlan0
iface wlan0 inet manual
	wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

auto xenbr0
iface xenbr0 inet dhcp
	bridge_ports usb0 wlan0


b) In the case you're feeling lucky - try bonding. May not work at all,
and can lead to the kernel panic depending on the phase of the Moon and
quality of the wireless driver you're using. Again, it's assumed that
both usb0 and wlan0 are part of the same network. The following may
require "ifenslave" package. And note that everyone and their dog are
using bonding on wired interfaces usually.

auto lo
iface lo inet loopback

allow-hotplug usb0
iface usb0 inet manual

auto wlan0
iface wlan0 inet manual
	wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

auto bond0
iface bond0 inet manual
	bond-slaves usb0 wlan0
	bond-mode active-backup

auto xenbr0
iface xenbr0 inet dhcp
	bridge_ports bond0


A big warning - I have not tried any of these configurations.
Inappropriate usage of bridges (especially if combined with bonding)
can lead to ARP storm.

Reco


Reply to: