From owner-freebsd-questions@freebsd.org Thu Jul 20 03:07:02 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DD4E6DA4F71 for ; Thu, 20 Jul 2017 03:07:02 +0000 (UTC) (envelope-from galtsev@kicp.uchicago.edu) Received: from cosmo.uchicago.edu (cosmo.uchicago.edu [128.135.20.71]) by mx1.freebsd.org (Postfix) with ESMTP id A89137DD11 for ; Thu, 20 Jul 2017 03:07:01 +0000 (UTC) (envelope-from galtsev@kicp.uchicago.edu) Received: by cosmo.uchicago.edu (Postfix, from userid 48) id 68734CB8CF0; Wed, 19 Jul 2017 22:07:00 -0500 (CDT) Received: from 69.209.232.160 (SquirrelMail authenticated user valeri) by cosmo.uchicago.edu with HTTP; Wed, 19 Jul 2017 22:07:00 -0500 (CDT) Message-ID: <62518.69.209.232.160.1500520020.squirrel@cosmo.uchicago.edu> Date: Wed, 19 Jul 2017 22:07:00 -0500 (CDT) Subject: Re: Lagg eth+WiFi configuration - works but not "by the book" From: "Valeri Galtsev" To: "Boris Samorodov" Cc: freebsd-questions@freebsd.org Reply-To: galtsev@kicp.uchicago.edu User-Agent: SquirrelMail/1.4.8-5.el5.centos.7 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal References: <25403.128.135.52.6.1500477382.squirrel@cosmo.uchicago.edu> In-Reply-To: X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Jul 2017 03:07:03 -0000 On Wed, July 19, 2017 1:42 pm, Boris Samorodov wrote: > 19.07.2017 18:16, Valeri Galtsev пишет: >> Dear Experts, >> I run FreeBSD on my laptop for a couple of years at least, but finally I >> decided to climb off the tree, and configure networking right. Namely: make a single configuration, and have it using wired connection when available, and wireless when disconnected from wired network. Lagg with failover from wired to wireless seems to be right thing, so I followed brilliant FreeBSD handbook: >> https://www.freebsd.org/doc/handbook/network-aggregation.html >> Which never worked for me (WiFi claimed authentication failure), even though each of connections enabled one at a time worked well. > > Recently there was a similar discussion at freebsd-current@ ML with subject "Failover Mode Between Ethernet and Wireless Interfaces broken on >= 11". > >> I have found workaround: Instead of starting wlan0 with MAC address of wired adapter as described in handbook, I did the opposite and started wired interface with MAC address of wireless, then created lagg, - did the >> rest by the book. Which works nicely, I'll paste my /etc/rc.conf below in >> case someone has trouble I had. >> I wonder what I was doing wrong when I followed the handbook and it didn't >> work for me. Any obvious "pilot error"? >> Here is relevant portion of my working /etc/rc.conf (with obfuscated MAC >> address, note that MAC address I start wired card with 70:18:8b:XX:XX:XX >> is MAC address that WiFi card has): >> ifconfig >> ... >> wlan0: flags=8843 metric 0 mtu 1500 >> ether 70:18:8b:XX:XX:XX >> ... >> cat /etc/rc.conf >> ... >> ifconfig_em0="up" >> ifconfig_em0="ether 70:18:8b:XX:XX:XX" >> wlans_ath0="wlan0" >> ifconfig_wlan0="WPA" >> create_args_wlan0="country US" >> cloned_interfaces="lagg0" >> ifconfig_lagg0="up laggproto failover laggport em0 laggport wlan0 DHCP" ... > > You didn't show the configuration that failed to work for you. I use almost configuration as at the Handbook but the line after the > "create_args_wlan0" line: > --- > ifconfig_wlan0=up > --- > My fault. Here is portion of /etc/rc.conf done by the book (by me...) that didn't work for me (MAC address of my wired interface is obfuscated): --- ifconfig_em0="up" wlans_ath0="wlan0" ifconfig_wlan0="WPA" create_args_wlan0="wlanaddr 00:21:70:XX:XX:XX" cloned_interfaces="lagg0" ifconfig_lagg0="up laggproto failover laggport em0 laggport wlan0 DHCP" --- I modified it as you suggested (any mistakes?): --- ifconfig_em0="up" wlans_ath0="wlan0" ifconfig_wlan0="WPA" create_args_wlan0="wlanaddr 00:21:70:XX:XX:XX" ifconfig_wlan0=up cloned_interfaces="lagg0" ifconfig_lagg0="up laggproto failover laggport em0 laggport wlan0 DHCP" --- --- But it didn't help: still "no carrier". I also tried to add "country US" to args as folloows: --- ... create_args_wlan0="wlanaddr 00:21:70:e9:ff:97 country US" ... --- (did I screw up with syntax here?) which didn't help either (I have "country US" in my working configuration, but it seems I don't need it as starting wireless on its own without using lagg works without this option. Thanks, Boris for your help. I still have a feeling I am doing something wrong. But luckily, I have working workaround (having wired interface with MAC address of wireless - as opposed to what handbook describes), so I did successfully climbed down off the tree (or out of cave ;-) and made my FreeBSD laptop use wired and wireless connections intelligently (as my macintosh does). Thanks. Valeri > > HTH > -- > WBR, bsam > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" ++++++++++++++++++++++++++++++++++++++++ Valeri Galtsev Sr System Administrator Department of Astronomy and Astrophysics Kavli Institute for Cosmological Physics University of Chicago Phone: 773-702-4247 ++++++++++++++++++++++++++++++++++++++++