User Tools

Site Tools


bsd:notes:wifi

This is an old revision of the document!


Resources

Interface

ifconfig wlan create wlandev iwm0
sysrc wlans_iwm0="wlan0"

rc.conf

  • TODO: Test static/DHCP different SSIDs
ee '/etc/rc.conf'
# Wifi
wlans_iwm0="wlan0"
ifconfig_wlan0="WPA SYNCDHCP"
ifconfig_wlan0="WPA inet '192.168.1.150/24' ssid 'Highgate (5GHz)'"
ifconfig_wlan0="WPA inet '192.168.1.150/24' ssid 'The Crossroads (2.4GHz)'"
ifconfig_wlan0_ipv6="inet6 accept_rtadv"

wpa_supplicant.conf

ee '/etc/wpa_supplicant.conf'
ctrl_interface=/var/run/wpa_supplicant
eapol_version=2
ap_scan=1
fast_reauth=1

network={
  ssid="Highgate (5GHz)"
  psk=
  key_mgmt=WPA-PSK
  priority=5
}

network={
  ssid="The Crossroads (2.4GHz)"
  psk=
  key_mgmt=WPA-PSK
  priority=4
}

network={
  ssid="Izaro"
  psk=
  key_mgmt=WPA-PSK
  priority=3
}

network={
  ssid="Kitava (iPhone XR)"
  psk=
  key_mgmt=WPA-PSK
  priority=2
}

# End

wpa_passphrase

wpa_passphrase 'Highgate (5GHz)'
wpa_passphrase 'The Crossroads (2.4GHz)'
wpa_passphrase 'Izaro'
wpa_passphrase 'Kitava (iPhone XR)'

Test

  • TODO: Had suspicious error messages but conf works fine; test what?
wpa_supplicant -d -c '/etc/wpa_supplicant.conf' -i 'wlan0'

Network Restart

su -
service 'netif' restart
'/etc/netstart'

Etc

sysctl 'net.wlan.devices'
dhclient 'wlan0'

Default

  • Included with fresh-install, might be useful for connecting to random APs?
network={
        priority=0
        key_mgmt=NONE
}
/usr/local/www/wiki/data/attic/bsd/notes/wifi.1755248140.txt.gz · Last modified: by Sean Rhone