Connecting FreeBSD to a WPA Wireless Network
Dec 09, 2009
This uses the new VAP interface setup that comes with FreeBSD 8.0 and newer.
- # vi /etc/rc.conf
- --- snip --- snip ---
- wlans_ath0="wlan0"
- ifconfig_wlan0="WPA DHCP"
- # vi /etc/wpa_supplicant.conf
- network={
- ssid="ssid_goes_here"
- key_mgmt=WPA-PSK
- psk="password_here"
- }
- # /etc/rc.d/netif restart
Wait a few seconds for your wireless card to associate with the wireless device and see (1) if you are associated and (2) that you have an IP address.
- # ifconfig wlan0
If you have multiple access points around and want a certain one over the other, add priority=1 (you change number), to the host's block in /etc/wpa_supplicant.conf. The lower the number, the higher the priority.
Test IP connectivity to the public Internet.
- # ping 4.2.2.1
Test DNS resolution against a public hostname.
- # cat /etc/resolv.conf
- -- list of nameservers from DHCP lease --
- # ping www.google.com
If you happen to not have anything there, you can try using the 4.2.2.1 and 4.2.2.2 nameservers.
- # vi /etc/resolv.conf
- nameserver 4.2.2.1
- nameserver 4.2.2.2
Post a New Comment
Posted Comments
anonymous
Feb 01, 2012
Hi! my name is Jully. I would like to meemeet respected urchin :)
This is my homepage <a href=>http://jskdh5jkd7djh4.com/</a>l
- Tags
- AI (1)
- ALIX (1)
- digitalfoo.net (2)
- embedded (6)
- FreeBSD (30)
- Java (1)
- Linux (26)
- misc (7)
- my projects (1)
- MySQL (2)
- NanoBSD (3)
- opensource (7)
- perl (1)
- PHP (3)
- programming (11)
- Python (1)
- security (4)
- Archives
- 2011
- February (1)
- March (1)
- June (1)
- July (1)
- August (1)
- 2010
- June (5)
- July (2)
- December (4)
- April (6)
- March (2)
- May (1)
- August (2)
- October (1)
- November (1)
- 2009
- August (7)
- July (8)
- April (4)
- May (4)
- December (2)
- June (1)
- September (1)
- November (4)
- October (1)
- Web Tools
- Index
- dig-shovel Live
- SQL Injection Encoder
- Links
-

