From owner-freebsd-mobile@FreeBSD.ORG Wed Dec 30 14:29:05 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 4F9B9106566B for ; Wed, 30 Dec 2009 14:29:05 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 0B3F08FC08 for ; Wed, 30 Dec 2009 14:29:05 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 9726746B46; Wed, 30 Dec 2009 09:29:04 -0500 (EST) Received: from jhbbsd.localnet (unknown [209.249.190.9]) by bigwig.baldwin.cx (Postfix) with ESMTPA id BD2688A01F; Wed, 30 Dec 2009 09:29:03 -0500 (EST) From: John Baldwin To: freebsd-mobile@freebsd.org Date: Wed, 30 Dec 2009 08:52:56 -0500 User-Agent: KMail/1.12.1 (FreeBSD/7.2-CBSD-20091103; KDE/4.3.1; amd64; ; ) References: <1238217783.00093348.1238205603@10.7.7.3> <49CFBA6D.9070208@freebsd.org> <4B3A74B3.10808@users.sf.net> In-Reply-To: <4B3A74B3.10808@users.sf.net> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200912300852.57010.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (bigwig.baldwin.cx); Wed, 30 Dec 2009 09:29:03 -0500 (EST) X-Virus-Scanned: clamav-milter 0.95.1 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.5 required=4.2 tests=AWL,BAYES_00,RDNS_NONE autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bigwig.baldwin.cx Cc: martinko 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: Wed, 30 Dec 2009 14:29:05 -0000 On Tuesday 29 December 2009 4:29:23 pm martinko wrote: > Sam Leffler wrote: > > > > 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. > > > > Sam > > Hallo, > > I've tried to figure out how to make this persistant via rc.conf and I'm > running into a dependency issue -- lagg is created before wlan: > > This is in my rc.conf: > > ifconfig_sk0="up" > ifconfig_iwi0="ether 00:11:22:33:44:55" # match wired (sk0) > wlans_iwi0="wlan0" > ifconfig_wlan0="wpa" > > cloned_interfaces="lagg0" > ifconfig_lagg0="laggproto failover laggport sk0 laggport wlan0 dhcp" > > And this is the result of /etc/rc.d/netif restart : > > Stopping Network: lo0 sk0 fwe0 fwip0 iwi0 wlan0. > [...] > ifconfig: interface wlan0 does not exist > Starting wpa_supplicant. > ifconfig: SIOCSLAGGPORT: Device busy > Starting Network: lo0 sk0 iwi0 lagg0. > lo0: flags=8049 metric 0 mtu 16384 > options=3 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 > inet6 ::1 prefixlen 128 > inet 127.0.0.1 netmask 0xff000000 > sk0: flags=8843 metric 0 mtu 1500 > options=b > ether 00:11:22:33:44:55 > media: Ethernet autoselect (none) > status: no carrier > iwi0: flags=8843 metric 0 mtu 2290 > ether 00:11:22:33:44:55 > media: IEEE 802.11 Wireless Ethernet autoselect mode 11g > status: associated > lagg0: flags=8843 metric 0 mtu 1500 > options=b > ether 00:11:22:33:44:55 > media: Ethernet autoselect > status: no carrier > laggproto failover > laggport: sk0 flags=1 > > Please note that wlan0 is not part of lagg0 (!) > If I create it from command line it works as described in previous email. > It looks to me that wlan0 is not created fast enough and thus not added > to lagg0. :-/ > Any suggestions how to solve this please ? Use an explicit 'network_interfaces' value in rc.conf that puts lagg0 last. -- John Baldwin