首先必须安装wpa_supplicant这个软件包了。
修改配置文件1
[root@elm ~]# more /etc/sysconfig/wpa_supplicant
INTERFACES="-ieth1"
DRIVERS=""
[root@elm ~]#
修改配置文件2
[root@elm ~]# more /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
network={
ssid="ELM"
#psk="12345678"
psk=e0a4dc68bb1e2a58dff205b422d71a638bf2967a4cd0a3b708c70720cee663ea
}
[root@elm ~]#
密码字串如何生成:
[root@elm ~]# wpa_passphrase ELM 12345678
network={
ssid="ELM"
#psk="12345678"
psk=e0a4dc68bb1e2a58dff205b422d71a638bf2967a4cd0a3b708c70720cee663ea
}
[root@elm ~]#
启动wpa_supplicant服务
/etc/init.d/wpa_supplicant start
dhclient eth1
呵呵,应该不是很难吧。