升级 Linux 系统到最新版试试吧。
如果还不行,那就只能去换别的货了。
恩,还有,NdisWrapper 可以跑 Windows 下面的无限网卡驱动。不知道这个能不能跑有线 USB 网卡的驱动。
linux系统如何安装网卡驱动
很多初学者都觉得能够在自己的笔记本上安装linux系统是一件很酷的事情,结果两个小时安装好linux系统,却发现缺少各种驱动, 为了让各位少走一些弯路,我在这里把linux如何安装有线网卡驱动的方法整理了下,方便大家学习。
场景:联想笔记本电脑安装的centos系统,安装完成后发现缺少网卡驱动
1. 检查是否安装网卡驱动
执行命令:lspci | grep -i eth
终端显示的结果为:02:00.0 Ethernet controller: Qualcomm Atheros AR8161 Gigabit Ethernet (rev 08)
接着再执行一下命令:ifconfg
终端显示的连接中没有eth0的相关信息,只有一个lo 和virbr0
很明显,网卡驱动没有装好。我是这样来解决的.。
注意:我电脑是联想Y400 网卡是上面的Atheros AR8161这个,网卡驱动下载链接 http://pan.baidu.com/s/1gd3hNvd
下载后解压得到: alx-linux-v2.0.0.6 目录
2. 检查自己的系统环境
gcc
kernel-headers 和 kernel-devel 是否已经安装,我安装系统时候就安装了开发组件和桌面,所以这里没必要再安装。
如果没有安装开发组件,可以进行如下 *** 作(用yum前需要提前配好yum源)
yum install gcc
yum install kernel-headers
yum install kernel-devel
3. 编译:
进入 alx-linux-v2.0.6的目录
执行make
此时在src文件件夹中产生了一个alx.ko文件
4. 配置文件的修改:
mkdir /lib/modules/2.6.32-358.6.2.el6.x86_64/kernel/net/wired //创建文件夹wired
在vi /lib/modules/2.6.32-358.6.2.el6.x86_64/modules.networking 文件里添加 alx.ko
执行命令:vi /etc/sysconfig/modules/alx.modules
在alx.modules中添加如下脚本内容:
#!/bin/sh
if [ ! -c /dev/input/alx.ko ] then
exec /sbin/modprobe alx >/dev/null 2>&1
fi
5.最后执行其他命令:
首先执行命令:depmod -a
接着执行命令:modprobe alx
此时用ifconfig 就可以找到eth0 了
6.如果还是找不到
执行ifconfig -a //这样就可以发现eth0了(eth0是第一个,如果你有其他网卡,就会有eth1,2,3...)
ifconfig eth0 up //启动eth0
好了。到此为止,网卡驱动已经安装好了,接下来开始配置网络文件,开始愉快的玩耍吧!
不过我还是要强烈呼吁初学者,不要安装双系统,不要在笔记本安装linux系统。用windows+虚拟机的模式来学习是最快的学习方式。
首先查看网卡型号,如下:[plain] view plain copy print?
root@yongmi-hn:~# lsusb
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 002: ID 046d:c52f Logitech, Inc. Wireless Mouse M305
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
详细信息:
[plain] view plain copy print?
root@yongmi-hn:~# lsusb -v -d 0bda:8176
Bus 002 Device 002: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN
Device Descriptor:
bLength18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize064
idVendor 0x0bda Realtek Semiconductor Corp.
idProduct 0x8176 RTL8188CUS 802.11n WLAN
bcdDevice2.00
iManufacturer 1 Realtek
iProduct2 802.11n WLAN Adapter
iSerial 3 00e04c000001
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 46
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber0
bAlternateSetting 0
bNumEndpoints 4
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass255 Vendor Specific Subclass
bInterfaceProtocol255 Vendor Specific Protocol
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes2
Transfer TypeBulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes2
Transfer TypeBulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
bmAttributes2
Transfer TypeBulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x84 EP 4 IN
bmAttributes3
Transfer TypeInterrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 1
Device Qualifier (for other device speed):
bLength10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize064
bNumConfigurations 1
Device Status: 0x0000
(Bus Powered)
在此看到芯片型号为RTL8188CUS,使用google可以找到该芯片驱动下载地址:
http://www.realtek.com/downloads/downloadsView.aspx?Langid=1&PNid=21&PFid=48&Level=5&Conn=4&ProdID=274&DownTypeID=3&GetDown=false&Downloads=true#2742
此时剩下的就是下载代码,编译,安装,重启系统即可。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)