First check your wireless adapter: ifconfig
The output will show your network devices (ethernet and wireless adapter) Is the athn0 driver in the list?
Then configure wpa supplicant:
vi /etc/wpa_supplicant.conf
Example:
network={
ssid="yourssid"
scan_ssid=1
key_mgmt=WPA-PSK
psk="yourpsk"
}
It's important to set your exact SSID (name of your wlan) and of course your exact psk (preshared key). Both are case sensitive.
You can get more information on http://wiki.netbsd.org/tutorials/how_to_use_wpa_supplicant/
Second, configure rc init. Add entries to /etc/rc.conf to configure the network on startup:
dhcpcd_flags="-q -b"
wpa_supplicant="YES"
wpa_supplicant_flags="-B -i athn0 -c /etc/wpa_supplicant.conf"
Use dhcpcd, the DHCP client daemon:
vi /etc/ifconfig.athn0
up
dhcp
Third, start wireless service: you have two possibilities
Restart your computer or
you can start wpa_supplicant with
/etc/rc.d/wpa_supplicant start
then restart your network with
/etc/rc.d/network restart
Last but not least you can try as root a neat program to improve your configuration (in interactive mode):
wpa_cli
reconfigure
status
save_config
quit
After the configuration of your network card test if it's working correctly. Use the ping
command to send 3 packets to the IP address of your localhost or to an DNS name of your choice, for example:
ping -c3 www.netbsd.org
And don't give up! NetBSD is rocksolid, no bloatware and nobody bothers you with systemd
. And as a bonus you can use pkgsrc!
kldstat -v | less
? It looks like the interface name is ugen0(?), for configuring rc.conf and wpa_supplicant?kldstat
here.modstat
instead: "NetBSD and OpenBSD use the modload, modunload, and modstat tools." bsdnewsletter.com/bsda-book/…ath
andath_hal
. Noathn
, noral
. But why? And how load and startathn
orral
?