Regression: ethernet + wireless/ath under lagg
Adrian Chadd
adrian.chadd at gmail.com
Wed Oct 12 16:08:22 UTC 2016
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 <fbsd at opal.com> 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 at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-wireless
> To unsubscribe, send any mail to "freebsd-wireless-unsubscribe at freebsd.org"
More information about the freebsd-wireless
mailing list