https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=214264

--- Comment #4 from Neptunium <neptunium.elem...@gmail.com> ---
Sean Farley wrote:

> According to rc.conf(5):
>       If a wlans_<interface> variable is set, an wlan(4) interface
>       will be created for each item in the list with the wlandev
>       argument set to interface.  Further wlan cloning arguments
> 
> 
> This is my network configuration on my laptop running FreeBSD 11.  I have 
> lagg > setup with it too.
> 
> ifconfig_bge0="up"
> wlans_iwn0="wlan0"
> ifconfig_wlan0="ether aa:bb:cc:dd:ee:ff WPA"
> cloned_interfaces="lagg0"
> ifconfig_lagg0="laggproto failover laggport bge0 laggport wlan0 DHCP"
> ifconfig_lagg0_ipv6="inet6 accept_rtadv"

Hm, I'm a bit confused... Let me explain this way: my previous setup, which
used to work for me more than 3 years, was like this:

defaultrouter="192.168.1.1"
wlans_iwn0="wlan0"
ifconfig_wlan0="inet 192.168.1.2 netmask 255.255.255.0 WPA ssid ABCDEFG"

After upgrading to 11.0, I experienced a regression described in my original
post. Per your suggestion that "ifconfig_iwn0=..." is "causing something to
trip", I tried to remove that line, which resolved all my problems described in
PR, but, of course, caused that no wlan is being created at boot. To overcome
that problem, I now have this in my rc.conf:

defaultrouter="192.168.1.1"
if ifconfig | grep wlan0 ; then
  # do nothing
else
  wlans_iwn0="wlan0"
fi
ifconfig_wlan0="inet 192.168.1.2 netmask 255.255.255.0 WPA ssid ABCDEFG"

And now it works just as it used to on 10.X. I asked if there was a more
elegant way to achieve this.

> Do you have /etc/wpa_supplicant.conf setup?  You should not have to set SSID 
> in /etc/rc.conf if you do; it will just switch networks for you.  I think 
> that is what you are asking, yes?

I have /etc/wpa_supplicant.conf, but it is not convenient for me to use
automatic switching of wifi networks: sometimes I need static IP, sometimes I
have to use DHCP, so, AFAIU, I have to manually change such settings in rc.conf
every time I switch. 

I mean, one can't have separate ifconfig_wlan0 settings for each entry in
wpa_supplicant.conf. If I'm wrong, please correct me (but this was not my
problem, just an inconvenience I used to live with).

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-wireless@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to "freebsd-wireless-unsubscr...@freebsd.org"

Reply via email to