From owner-freebsd-wireless@freebsd.org Wed Oct 12 16:08:22 2016 Return-Path: Delivered-To: freebsd-wireless@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 1C203C0EBA8 for ; Wed, 12 Oct 2016 16:08:22 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-it0-x22b.google.com (mail-it0-x22b.google.com [IPv6:2607:f8b0:4001:c0b::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DBC2B7E4 for ; Wed, 12 Oct 2016 16:08:21 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-it0-x22b.google.com with SMTP id e203so92449394itc.0 for ; Wed, 12 Oct 2016 09:08:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Bia0snmdIRhasPOVAP+pWT2V8KL36E2b6hqmoAmhPCc=; b=fqYNQgOAHiUD1RCcDWcwCWWGneeEEUDj6QMij0dtGua5/zohkaccNaR8KDaRgqLt/o PVCDsDYUhrjnljGz2x+0fg4h4T2Ei4coNywPSKKgosjrslaZEaEfh7kzb1fyFkp46Bq1 ftHJmZVuC2W+jbVuMpGJ2bNWMcc1Z+yZvD7KDaGrv1q8K1jHJMd/9CixO+0Fo4SotA2+ sZ6P/o/pBzc56RLXUCBc8wWoTPU9NwaDQKYs07MlsDJSnmqQEcoXUytj6v6D48nl6azX 3Y2YrPtdJ7iHwGQperHIXJrgJRUwSN2T1MVfqt/9VXNeZfUNQqXm8ZNaw4lHNsJutIdI xbOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Bia0snmdIRhasPOVAP+pWT2V8KL36E2b6hqmoAmhPCc=; b=U1c7amqzVa/MtrWLs7s3L8vtQ0218wylwTzswRfT2BSaN9EFI8Ll0zOgCVVVw35eHl hFiZRDICPgo+EaiWu9GBZi2VoPL7dieKxsOJI5QgdRmYcoEKFV6jfF2sdi0DnRjoBRFR 6snG3p6xbc2oYvnKXlMUM5jFRiTX/hoiwXB3HcbikXvtIueHZuR5YWsgHaF+gDybCXkI G++Xi1G5bncrtYNAyEDrD42IRDVoA7zHyIvlq2eUOxyG8u8weC4sZrmpr+rOmi2kYIjX m6djJcM7Ygu+Ds84U1PEqyMmR3grAOnxc7s9zJog1YF//AlMk5y5odZSJIJCojAvFthT vqWw== X-Gm-Message-State: AA6/9RnLDmZ4YHl7+kI21ErHjAsRAz8bAiuepxrkK+sQtjFVIX1O7AVNIkMQliRo6GPTWq+1/kkSROcVwJ2ELA== X-Received: by 10.36.69.9 with SMTP id y9mr3171333ita.39.1476288501244; Wed, 12 Oct 2016 09:08:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.36.141.129 with HTTP; Wed, 12 Oct 2016 09:08:20 -0700 (PDT) In-Reply-To: <20161012171700.5b4f9ea8@shibato> References: <20161012171700.5b4f9ea8@shibato> From: Adrian Chadd Date: Wed, 12 Oct 2016 09:08:20 -0700 Message-ID: Subject: Re: Regression: ethernet + wireless/ath under lagg To: "J.R. Oldroyd" Cc: "freebsd-wireless@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Oct 2016 16:08:22 -0000 hiya, there should be a way to create a vap with a specific mac address upon creation time. Sorry, doing lagg+wlan is not something we've been collectively using. :( Thanks, -adrian On 12 October 2016 at 08:17, J.R. Oldroyd wrote: > Since something like 9.0-release, I have used the following to config > an re and an ath interface together in a lagg. The intent is to have > both ethernet and wireless interfaces share the lagg and be seamlessly > pluggable between the two networks. It was necessary to set the ath's > MAC address to be the same as the re's, else the wlan created from the > ath would not associate. (The wlan's MAC address must be the same as > the underlying device's MAC, else the wlan fails WPA authentication. > Changing the underlying device's MAC before the wlan is created works > OK.) This config has worked just fine on both 9.x and 10.x: > > In /etc/rc.conf: > > ifconfig_re0="up" > ifconfig_re0_ipv6="inet6 accept_rtadv" > ifconfig_ath0="`ifconfig re0 ether`" > ifconfig_ath0="ether ${ifconfig_ath0##*ether }" > wlans_ath0=wlan0 > create_args_wlan0="regdomain FCC country US" > ifconfig_wlan0="WPA" > ifconfig_wlan0_ipv6="inet6 accept_rtadv" > cloned_interfaces="lagg0" > ifconfig_lagg0="laggproto failover laggport re0 laggport wlan0 DHCP" # WAN_IF > ifconfig_lagg0_ipv6="inet6 accept_rtadv" > > Now, with 11.0-release, this no longer works because the ath interface > doesn't exist any more, so ifconfig cannot pre-change its MAC. And, I > have been unable to find a way of either determining or setting the > ath's MAC address using sysctls. > > Now, the following does work, hard-coding the ath's MAC, and changing > the re's address to that value, instead of the other way around: > > ether_ath0="70:1a:11:22:33:44" # actual ath0 MAC address > ifconfig_re0="ether $ether_ath0 up" > ifconfig_re0_ipv6="inet6 accept_rtadv" > wlans_ath0=wlan0 > create_args_wlan0="regdomain FCC country US" > ifconfig_wlan0="WPA" > ifconfig_wlan0_ipv6="inet6 accept_rtadv" > cloned_interfaces="lagg0" > ifconfig_lagg0="laggproto failover laggport re0 laggport wlan0 DHCP" # WAN_IF > ifconfig_lagg0_ipv6="inet6 accept_rtadv" > > Obviously, hard-coding a MAC address isn't a good solution. > > Am I missing something? Is there a way to config this without a > hard-coded address? > > Or, do we need to fix the bug that is preventing setting the wlan's > MAC address to be something different from the underlying ath's > address? > > -jr > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.org"