Monday, July 2, 2007

Fedora 7 & WPA

Inspirion 5160 Dell 1350 Wireless Card

*Note this clobbers the conf file that was there
wpa_passphrase ssid > /etc/wpa_supplicant/wpa_supplicant.conf

Open the config in a text editor and delete the commented line which has your PSK in plain text. Also edit the line by using an example from /usr/share/doc/wpa_supplicant*/examples
vi /etc/wpa_supplicant/wpa_supplicant.conf

Start WPA
wpa_supplicant -Dwext -iwlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf

Make sure it's assocaited
iwconfig
ifconfig

Get an IP address
dhclient wlan0

Test
ping -c 4 www.google.com

Add to startup
echo "wpa_supplicant -Dwext -iwlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf &" >> /etc/rc.local
cd /etc/sysconfig/network-scripts/
mv ifcfg-eth0 ifcfg-wlan0
Replace eth0 w/ wlan0 & delete the line with HWADDR
vi ifcfg-wlan0

No comments: