现在的位置: 首页 > 综合 > 正文

wireless 4965 centos5.4 无线上网

2013年09月06日 ⁄ 综合 ⁄ 共 1994字 ⁄ 字号 评论关闭

引用http://pub.itpub.net/post/2102/496647/

 

centos 5.4 x86_64 T61 无线网卡型号为 4965

1。首先确认内核是否支持

配置文件.config中查到

[root@ljh ~]# grep CONFIG_IWL4965 /boot/config-2.6.18-164.11.1.el5
CONFIG_IWL4965=y

2。再看是否有相应的模块

在网上查到4965对应的模块为iwl4965,而实际对应的模块为 iwlagn .这个在centos5.3和ubuntu9,04上都是这样的。(这一点着实费了我好长时间)

[root@ljh ~]# lsmod | grep iw
iwlagn 134361 0
iwlcore 131397 1 iwlagn
mac80211 183113 2 iwlagn,iwlcore
cfg80211 63825 3 iwlagn,iwlcore,mac80211

[root@ljh ~]# cat /etc/modprobe.conf
alias eth0 e1000e
alias scsi_hostadapter ata_piix
alias snd-card-0 snd-hda-intel
options snd-card-0 index=0
install
snd-hda-intel /sbin/modprobe --ignore-install snd-hda-intel &&
/usr/sbin/alsactl restore >/dev/null 2>&1 || :
remove
snd-hda-intel { /usr/sbin/alsactl store >/dev/null 2>&1 || :
; }; /sbin/modprobe -r --ignore-remove snd-hda-intel
alias usb-controller ehci-hcd
alias usb-controller1 uhci-hcd
alias wlan0 iwlagn

都能看到是这个 iwlagn模块

好了,模块有了,启动网卡

#ifconfig wlan0 up 报错

正在决定 wlan0 的 IP 信息...SIOCSIFFLAGS: 没有那个文件或目录
SIOCSIFFLAGS: 没有那个文件或目录

 

上网google的结果为/lib/firmware/下缺少 相应的ucode

下载该网卡的ucode

[root@ljh ~]# wget http://intellinuxwireless.org/iwlwifi/downloads/iwlwifi-4965-ucode-228.61.2.24.tgz
--2010-02-05 22:05:16-- http://intellinuxwireless.org/iwlwifi/downloads/iwlwifi-4965-ucode-228.61.2.24.tgz
正在解析主机 intellinuxwireless.org... 204.253.143.234
Connecting to intellinuxwireless.org|204.253.143.234|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:81309 (79K) [application/x-gzip]
Saving to: `iwlwifi-4965-ucode-228.61.2.24.tgz'

100%[=====================================>] 81,309 54.7K/s in 1.5s

2010-02-05 22:05:18 (54.7 KB/s) - `iwlwifi-4965-ucode-228.61.2.24.tgz' saved [81309/81309]

[root@ljh ~]# tar xvf iwlwifi-4965-ucode-228.61.2.24.tgz
iwlwifi-4965-ucode-228.61.2.24/
iwlwifi-4965-ucode-228.61.2.24/LICENSE.iwlwifi-4965-ucode
iwlwifi-4965-ucode-228.61.2.24/README.iwlwifi-4965-ucode
iwlwifi-4965-ucode-228.61.2.24/iwlwifi-4965-2.ucode

将文件夹下的*.ucode文件copy到/lib/firmware下就可以 了

[root@ljh ~]# cp iwlwifi-4965-ucode-228.61.2.24/iwlwifi-4965-2.ucode /lib/firmware/

重起网卡。

ifconfig wlan0 up

这时会发现无线的指示灯亮了。

下面开始设定网络。

 

补充:

使用NetworkManager

#start NetworkManager start

#chkconfig NetworkManager on

抱歉!评论已关闭.