From owner-freebsd-questions@freebsd.org Wed Jul 19 18:42:42 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 01809CFF95C for ; Wed, 19 Jul 2017 18:42:42 +0000 (UTC) (envelope-from bsam@passap.ru) Received: from forward4o.cmail.yandex.net (forward4o.cmail.yandex.net [37.9.109.248]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Yandex CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7C9ED66B1B for ; Wed, 19 Jul 2017 18:42:40 +0000 (UTC) (envelope-from bsam@passap.ru) Received: from smtp2o.mail.yandex.net (smtp2o.mail.yandex.net [37.140.190.27]) by forward4o.cmail.yandex.net (Yandex) with ESMTP id 02FBA206D2 for ; Wed, 19 Jul 2017 21:42:37 +0300 (MSK) Received: from smtp2o.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp2o.mail.yandex.net (Yandex) with ESMTP id D70605080D9F for ; Wed, 19 Jul 2017 21:42:36 +0300 (MSK) Received: by smtp2o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id WrqpN8fNO0-gZEG7GnL; Wed, 19 Jul 2017 21:42:35 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=passap.ru; s=mail; t=1500489755; bh=Cv8cWwtKrS40M5nlMUVg7b+9xz2v2TRF4b8/ubTOrtM=; h=Subject:To:References:From:Message-ID:Date:In-Reply-To; b=YTjWNv8wMSQc2UHGSdg/0Y/XiGkkzgzOFJBa5Pzlei6AWoOcnaQyAhLOCBn/5JKoy xdevwR99rEXDDv2h8xe1zk21Unp8Idyd0xxUWkE9sPPfyHQdwVbAg3iNR/xv9pLFLz NY4VAgErEIpDkc78yImR2CZUrKxXYbivgpzv+ty4= Authentication-Results: smtp2o.mail.yandex.net; dkim=pass header.i=@passap.ru X-Yandex-Suid-Status: 1 0 Subject: Re: Lagg eth+WiFi configuration - works but not "by the book" To: freebsd-questions@freebsd.org References: <25403.128.135.52.6.1500477382.squirrel@cosmo.uchicago.edu> From: Boris Samorodov Message-ID: Date: Wed, 19 Jul 2017 21:42:35 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <25403.128.135.52.6.1500477382.squirrel@cosmo.uchicago.edu> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit 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: Wed, 19 Jul 2017 18:42:42 -0000 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 --- HTH -- WBR, bsam