From owner-freebsd-mobile@FreeBSD.ORG Tue Mar 31 16:24:10 2009 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DF125106566B for ; Tue, 31 Mar 2009 16:24:10 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.freebsd.org (Postfix) with ESMTP id 90FC58FC42 for ; Tue, 31 Mar 2009 16:24:10 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from Macintosh-4.local ([10.0.0.194]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id n2VGO9eu091680 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 31 Mar 2009 09:24:09 -0700 (PDT) (envelope-from sam@freebsd.org) Message-ID: <49D243A8.5050601@freebsd.org> Date: Tue, 31 Mar 2009 09:24:08 -0700 From: Sam Leffler Organization: FreeBSD Project User-Agent: Thunderbird 2.0.0.21 (Macintosh/20090302) MIME-Version: 1.0 To: Mel Flynn References: <1238217783.00093348.1238205603@10.7.7.3> <49CFBA6D.9070208@freebsd.org> <200903311054.35181.mel.flynn@mailing.thruhere.net> In-Reply-To: <200903311054.35181.mel.flynn@mailing.thruhere.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-DCC-sonic.net-Metrics: ebb.errno.com; whitelist Cc: freebsd-mobile@freebsd.org Subject: Re: Switching from wired to wireless getting "network down" X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Mar 2009 16:24:11 -0000 Mel Flynn wrote: > On Sunday 29 March 2009 20:14:05 Sam Leffler wrote: >> Daniel Eischen wrote: >>> On Sat, 28 Mar 2009, Daniel Eischen wrote: >>>> No, there's no PR as far as I can tell. I'll try and set up a >>>> test system to duplicate it again, so I have proper information >>>> for a PR. >>>> >>>> I seem to recall that if wlanX is your primary/first lagg >>>> interface, then it uses the MAC address from the underlying >>>> interface as lagg's MAC address. In this case it works, >>>> but that's not the usual case 'cause you'd rather use a >>>> faster wired interface first if it exists. >>>> >>>> So this works: >>>> >>>> ifconfig lagg0 laggproto failover laggport wlan0 laggport bge0 >>>> >>>> but this doesn't: >>>> >>>> ifconfig lagg0 laggproto failover laggport bge0 laggport wlan0 >>>> >>>> In the latter case, lagg only works when bge0 is up. >>> Also note that lagg(4) still references ath0 in its example instead >>> of wlan0. >>> >>> # ifconfig em0 up >>> # ifconfig ath0 nwid my_net up >>> # ifconfig lagg0 laggproto failover laggport em0 laggport ath0 \ >>> 192.168.1.1 netmask 255.255.255.0 >> r190526 makes it possible to do the wired/wireless failover in HEAD. >> The only caveat is you must manually set the mac address of the wireless >> device to match the wired device because lagg's automatic setting of the >> wlanX ifnet doesn't propagate to the underlying device (the way >> if_setlladdr works makes it difficult). In the mean time you can do: >> >> ifconfig ath0 ether 00:11:22:33:44:55 >> >> where the mac address is whatever your wired nic's address is and then >> setup lagg0 using the wlan; e.g. >> >> ifconfig ath0 ether 00:11:22:33:44:55 >> ifconfig wlan create wlandev ath0 ssid my_net up >> ifconfig lagg create laggproto failover laggport em0 laggport wlan0 ... >> >> I also verified it works with WPA. In fact I tested this on a thinkpad >> in a docking station and it did the right thing just un-docking and >> re-docking. My only complaint is my ping running during all this lost >> one packet in the transition; not sure where. > > Great! Does this also work for hostap mode now? I'd like to unify my internal > network, currently using rum as hostap. > If the answer is no, I pledge to file a PR. ;) I don't understand what you're looking for but it's unlikely this will do what you want. lagg's failover protocol acts like a single-position switch funneling packets to one of several devices (all of which are assigned the same mac address). Sam