Step 1
Configure your AP with these options:
WPA2-PSK/TKIP or WPA2-PSK/AES+TKIP or WPA2-PSK/AES
Timeout equal to 3600 (WPA Group Rekey Interval)
Give a Name to SSID (anything)
And of course the passphrase (password).
Step 2
Create a passphrase with wpa_passphrase:
usage: wpa_passphrase
# wpa_passphrase YOURSSID YOURPASSPHRASE >>
/etc/wpa_supplicant/wpa_supplicant.conf
My wpa_supplicant.conf
network={
ssid="MYSSID"
scan_ssid=1 # It's because I use the hidden ssid option (see man 5 wpa_supplicant.conf)
priority=5
psk=????????????????????????????? # (My PassPhrase)
}
Step 3
Configure Your Network Wlan. Here, My Config.
# cat /etc/sysconfig/network-scripts/ifcfg-wlan0
DEVICE=wlan0 # change for your nic
HWADDR=??:15:??:AC:??:?? # change for your hw nic
TYPE=Wireless
MODE=Managed
ESSID=(My SSID) # change for your ssid name
ONBOOT=yes
BOOTPROTO=static
IPV6INIT=no
IPADDR=YOUR NET IP HERE
NETMASK=YOUR NETMASK HERE
NETWORK=YOUR NETWORK NUMBER HERE
BROADCAST=YOUR BROADCAST NUMBER HERE
GATEWAY=YOUR GW HERE
or use DHCP.
Step 4:
Configure the wpa_supplicant start options:
# cat /etc/sysconfig/wpa_supplicant
INTERFACES="-iwlan0"
DRIVERS="-Dwext"
OTHER_ARGS="-u -f /var/log/wpa_supplicant.log
-P /var/run/wpa_supplicant.pid"
And check if wpa_supplicant start at boot.
# chkconfig --list | grep wpa
wpa_supplicant 0:off 1:off 2:off 3:off 4:off 5:on 6:of
# chkconfig --level 5 wpa_supplicant on
or
# chkconfig --levels 345 wpa_supplicant on
Simple Troubleshooting:
iwconfig show if you stay connected. See the logs with
# tail -f /var/log/wpa_supplicant.log
and have fun!
biOos
No comments:
Post a Comment