- 安装wireless-tools
$ yum install -y wireless-tools
- 检查无线网卡驱动是否已安装
$ iwconfig

如果出现了wlan0字样,说明无线网卡驱动已安装。
配置无线网卡
- 安装wpa_supplicant
$ yum install -y wpa_supplicant
- 配置无线账号及密码
$ vim /etc/wpa_supplicant/wpa_supplicant.conf
ssid为wifi名称,psk为wifi密码。

$ wpa_supplicant -Dwext -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf -dd -B
- 启动连接
$ dhclient wlan0
- 无线网卡开机自启
$ vim /etc/sysconfig/network-scripts/ifcfg-wlan0
将ONBOOT=no
改为yes
参考资料:
http://blog.csdn.net/chenzhongwei99/article/details/44141041
网友评论