一、安装wireless_tools,http://www.linuxfromscratch.org/blfs/view/svn/basicnet/wireless_tools.html
二、vi /etc/sysconfig/network-scripts/ifcfg-wlan0,内容如下:
DEVICE="wlan0"
BOOTPROTO=DHCP
HWADDR="00:22:5F:34:4F:1A"
ONBOOT="yes"
NM_CONTROLLED="no"
TYPE=Wireless
ESSID="laughingbear" //根据实际修改
CHANNEL=6
三、vi /etc/sysconfig/network-scripts/keys-wlan0,内容如下:
KEY=s:************ //13个ASCII字符,wep型密码
四、iwlist wlan0 scanning 找到可用的无线
iwconfig wlan0 essid laughingbear key
"s:*************" 选择要使用的无线
ifup wlan0 启用设备
dhclient wlan0 自动分配ip
五、测试网络
ping www.baidu.com
时间: 2024-12-05 09:35:10