From owner-freebsd-current@freebsd.org Wed Jun 21 17:56:49 2017 Return-Path: Delivered-To: freebsd-current@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 EDBBBD9507C for ; Wed, 21 Jun 2017 17:56:49 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from mail.madpilot.net (grunt.madpilot.net [78.47.145.38]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B4F62761AC; Wed, 21 Jun 2017 17:56:49 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from mail (mail [192.168.254.3]) by mail.madpilot.net (Postfix) with ESMTP id 3wtC8G4g1YzZqg; Wed, 21 Jun 2017 19:56:46 +0200 (CEST) Received: from mail.madpilot.net ([192.168.254.3]) by mail (mail.madpilot.net [192.168.254.3]) (amavisd-new, port 10024) with ESMTP id 9SV8rdP0-XFT; Wed, 21 Jun 2017 19:56:44 +0200 (CEST) Received: from tommy.madpilot.net (micro.madpilot.net [88.149.173.206]) by mail.madpilot.net (Postfix) with ESMTPSA; Wed, 21 Jun 2017 19:56:44 +0200 (CEST) Subject: Re: Failover Mode Between Ethernet and Wireless Interfaces broken on >= 11 To: Renato Botelho , freebsd-current@freebsd.org References: <1c1e5c6f-35e5-ca14-2e23-5e33d86a5266@FreeBSD.org> From: Guido Falsi Message-ID: Date: Wed, 21 Jun 2017 19:56:44 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 MIME-Version: 1.0 In-Reply-To: <1c1e5c6f-35e5-ca14-2e23-5e33d86a5266@FreeBSD.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2017 17:56:50 -0000 On 06/21/17 19:48, Renato Botelho wrote: > I've already sent it to net, but I suspect this is the appropriate place > to discuss this subject. [...] > > My next attempt was to do the other way round and make lagg to use wlan0 > mac address instead of em0's. but even doing this my wireless interface > ended up not working. Strange enough, this works for me. My laptop has a bge interface. Maybe that's relevant. [...] > > And configured it to use wlan0 mac address on rc.conf: > > ifconfig_em0="ether 60:67:20:c5:2d:48 up" > wlans_iwn0="wlan0" > ifconfig_wlan0="WPA" > cloned_interfaces="lagg0" > ifconfig_lagg0="up laggproto failover laggport em0 laggport wlan0 DHCP" > > and it's now working as expected. I can confirm this is exactly what I've been doing for a while on my laptop. As noted before I did not need to patch the kernel to have this working. > > Other than that, I believe if wlan interfaces cannot have their mac > address changed, ifconfig should return an error when user attempts to > do it, and if_setlladdr() should do the same. > > Thoughts? I agree returning some error code would be nicer on users. -- Guido Falsi