User Tools

Site Tools


bsd:notes:wifi

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
bsd:notes:wifi [2025/08/15 04:55] – [rc.conf] Sean Rhonebsd:notes:wifi [2025/08/24 19:42] (current) Sean Rhone
Line 5: Line 5:
   * [[https://man.freebsd.org/cgi/man.cgi?query=wpa_supplicant.conf&apropos=0&sektion=0&manpath=FreeBSD+14.2-RELEASE+and+Ports&arch=default&format=html|wpa_supplicant.conf]]   * [[https://man.freebsd.org/cgi/man.cgi?query=wpa_supplicant.conf&apropos=0&sektion=0&manpath=FreeBSD+14.2-RELEASE+and+Ports&arch=default&format=html|wpa_supplicant.conf]]
  
-  * [[bsd:freebsd_14.3_xfce]] +  * [[bsd:freebsd_14.3_xfce|FreeBSD 14.3 (Xfce)]]
- +
-====== Interface ====== +
- +
-  ifconfig wlan create wlandev iwm0 +
- +
-  sysrc wlans_iwm0="wlan0"+
  
 ====== rc.conf ====== ====== rc.conf ======
  
-  * TODO: Test static/DHCP different SSIDs+  su -
  
   ee '/etc/rc.conf'   ee '/etc/rc.conf'
  
 <code> <code>
-wlans_iwm0="wlan0+wlans_iwlwifi0="wlan0" 
-ifconfig_wlan0="WPA SYNCDHCP+ifconfig_wlan0="WPA inet 192.168.1.150 netmask 255.255.255.0
-ifconfig_wlan0="WPA inet '192.168.1.150/24' ssid 'Highgate (5GHz)'+defaultrouter="192.168.1.1"</code> 
-ifconfig_wlan0="WPA inet '192.168.1.150/24' ssid 'The Crossroads (2.4GHz)'+ 
-ifconfig_wlan0_ipv6="inet6 accept_rtadv"</code>+===== DHCP ===== 
 + 
 +<code> 
 +wlans_iwlwifi0="wlan0
 +ifconfig_wlan0="WPA DHCP" 
 +#ifconfig_ue0="SYNCDHCP"</code>
  
 ====== wpa_supplicant.conf ====== ====== wpa_supplicant.conf ======
 +
 +  * :!: Blank line between ''ssid'' and ''key_mgmt'' is for ''psk='' from [[#wpa_passphrase]]
  
   ee '/etc/wpa_supplicant.conf'   ee '/etc/wpa_supplicant.conf'
Line 38: Line 39:
 network={ network={
   ssid="Highgate (5GHz)"   ssid="Highgate (5GHz)"
-  psk= +  
-  key_mgmt=WPA-PSK +
-  priority=5 +
-+
- +
-network={ +
-  ssid="The Crossroads (2.4GHz)" +
-  psk=+
   key_mgmt=WPA-PSK   key_mgmt=WPA-PSK
   priority=4   priority=4
Line 52: Line 46:
 network={ network={
   ssid="Izaro"   ssid="Izaro"
-  psk=+  
   key_mgmt=WPA-PSK   key_mgmt=WPA-PSK
   priority=3   priority=3
Line 59: Line 53:
 network={ network={
   ssid="Kitava (iPhone XR)"   ssid="Kitava (iPhone XR)"
-  psk=+  
   key_mgmt=WPA-PSK   key_mgmt=WPA-PSK
   priority=2   priority=2
Line 69: Line 63:
  
   wpa_passphrase 'Highgate (5GHz)'   wpa_passphrase 'Highgate (5GHz)'
- 
-  wpa_passphrase 'The Crossroads (2.4GHz)' 
  
   wpa_passphrase 'Izaro'   wpa_passphrase 'Izaro'
  
   wpa_passphrase 'Kitava (iPhone XR)'   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 ====== ====== Network Restart ======
  
-  su - +****
- +
-  service 'netif' restart+
  
-  '/etc/netstart'+  su 'root' -c "service 'netif' restart && '/etc/netstart'"
  
 ====== Etc ====== ====== Etc ======
/usr/local/www/wiki/data/attic/bsd/notes/wifi.1755248123.txt.gz · Last modified: by Sean Rhone