Wireless Networks Made Easy (cont'd)

Client:

$ sudo ifconfig ath0 up mode 11b chan 11 nwid unwiredbsd nwkey 0x1deadbeef9
$ sudo dhclient ath0
DHCPREQUEST on ath0 to 255.255.255.255 port 67
DHCPREQUEST on ath0 to 255.255.255.255 port 67
DHCPACK from 10.50.90.1
bound to 10.50.90.11 -- renewal in 1800 seconds.

Make permanent with /etc/hostname.ath0

up media autoselect mode 11b chan 6 nwid unwiredbsd nwkey 0x1deadbeef9
dhcp

WPA pre-shared

up media autoselect mode 11b chan 6 nwid unwiredbsd \ 
wpa wpapsk $(wpa-psk unwiredbsd mylongpassphrase)

Again OpenBSD 4.9 is easier:

up media autoselect mode 11b chan 6 nwid unwiredbsd \ 
wpakey mylongpassphrase