Saturday, March 09, 2013

configure wireless on centos

ref: http://www.apolonio.com/node/40


You can check if the module was installed properly by running
/sbin/iwconfig
You should see the wlan0 interface
At this point you should be able to run the command
iwlist wlan0 scan 
and it should display all the SSID’s being broadcasted.
 

Setting up WPA2

From here on, it is assumed you will be logged in as root
Run the command where myssid is your ssid and mypassphrase is the passphrase for your wireless.
wpa_passphrase myssid mypassphrase
This should produce something like this
network={
        ssid="myssid"
        #psk="mypassphrase"
        psk=c22c1e6febc7875af85d033bbf15f5ca836633bac8eb16693fd58bff66fcb66c
}
 
Append that to  /etc/wpa_supplicant/wpa_supplicant.conf 
Here is a shortcut
wpa_passphrase myssid mypassphrase  >> /etc/wpa_supplicant/wpa_supplicant.conf
and make sure to add proto=WPA2
 
network={
        ssid="myssid"
        proto=WPA2
        #psk="mypassphrase"
        psk=c22c1e6febc7875af85d033bbf15f5ca836633bac8eb16693fd58bff66fcb66c
}
 
Now edit /etc/sysconfig/wpa_supplicant
The final line should is
DRIVERS="-Dndiswrapper"
Change that to
DRIVERS="-Dwext"
Start the wpa_supplicant service
service wpa_supplicant start
and you should be able to run dhclient to grab an IP address from your wireless network,
dhclient wlan0

No comments:

Related Posts Plugin for WordPress, Blogger...