CentOS6.4安装Atheros AR8161 驱动
2013-10-11 13:22
309 查看
一、驱动下载地址:
下载地址1:
http://pan.baidu.com/s/1yzpMB
下载地址2:
http://fichiers.touslesdrivers.com/34178/alx-linux-v2.0.0.6.rar
二、安装步骤:
1.获取网卡名称:
[root@master ~]# lspci | grep Ethernet
00:19.0 Ethernet controller: Intel Corporation Ethernet Connection I217-V (rev 04)
02:00.0 Ethernet controller: Atheros Communications Inc. AR8161 Gigabit Ethernet (rev 10)
2.修改CentOS-Base.repo文件(yum rar包需要):
[root@master ~]# vi /etc/yum.repos.d/CentOS-Base.repo
在文件末尾加入:
[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
enabled=1
gpgkey=http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
2.yum软件包:
[root@master ~]# yum -y install pciutils rar make gcc gcc-c++ kernel-devel
[root@master ~]# rpm -ivh http://elrepo.org/linux/elrepo/el6/x86_64/RPMS/elrepo-release-6-5.el6.elrepo.noarch.rpm
[root@master ~]# yum --enablerepo=elrepo-testing install kmod-alx
[root@master ~]# cd /lib/modules/2.6.32-358.el6.x86_64
3.修改链接目录:
[root@master 2.6.32-358.el6.x86_64]# rm -rf build
[root@master 2.6.32-358.el6.x86_64]# ln -s ../../../usr/src/kernels/2.6.32-358.18.1.el6.x86_64 build
[root@master 2.6.32-358.el6.x86_64]# cd ..
[root@master modules]# ln -s 2.6.32-358.el6.x86_64 2.6.32-358.18.1.el6.x86_64
4.编译安装驱动:
[root@master modules]# cd
[root@master ~]# mkdir alx-linux-v2.0.0.6
[root@master ~]# mv alx-linux-v2.0.0.6.rar alx-linux-v2.0.0.6/
[root@master ~]# cd alx-linux-v2.0.0.6
[root@master alx-linux-v2.0.0.6]# rar x alx-linux-v2.0.0.6.rar
[root@master alx-linux-v2.0.0.6]# make
[root@master alx-linux-v2.0.0.6]# make install
4.添加alx.ko驱动:
[root@master alx-linux-v2.0.0.6]# cd /lib/modules/2.6.32-358.el6.x86_64
[root@master 2.6.32-358.el6.x86_64]# echo "alx.ko" >> modules.networking
[root@master 2.6.32-358.el6.x86_64]# modprobe alx
[root@master 2.6.32-358.el6.x86_64]# lsmod | grep alx
alx 90622 0
[root@master 2.6.32-358.el6.x86_64]# cd
[root@master ~]# reboot
其他:
双网卡情况要注意路由选择:
添加静态路由:
route add default gw IP
删除静态路由:
route del default gw IP
下载地址1:
http://pan.baidu.com/s/1yzpMB
下载地址2:
http://fichiers.touslesdrivers.com/34178/alx-linux-v2.0.0.6.rar
二、安装步骤:
1.获取网卡名称:
[root@master ~]# lspci | grep Ethernet
00:19.0 Ethernet controller: Intel Corporation Ethernet Connection I217-V (rev 04)
02:00.0 Ethernet controller: Atheros Communications Inc. AR8161 Gigabit Ethernet (rev 10)
2.修改CentOS-Base.repo文件(yum rar包需要):
[root@master ~]# vi /etc/yum.repos.d/CentOS-Base.repo
在文件末尾加入:
[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
enabled=1
gpgkey=http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
2.yum软件包:
[root@master ~]# yum -y install pciutils rar make gcc gcc-c++ kernel-devel
[root@master ~]# rpm -ivh http://elrepo.org/linux/elrepo/el6/x86_64/RPMS/elrepo-release-6-5.el6.elrepo.noarch.rpm
[root@master ~]# yum --enablerepo=elrepo-testing install kmod-alx
[root@master ~]# cd /lib/modules/2.6.32-358.el6.x86_64
3.修改链接目录:
[root@master 2.6.32-358.el6.x86_64]# rm -rf build
[root@master 2.6.32-358.el6.x86_64]# ln -s ../../../usr/src/kernels/2.6.32-358.18.1.el6.x86_64 build
[root@master 2.6.32-358.el6.x86_64]# cd ..
[root@master modules]# ln -s 2.6.32-358.el6.x86_64 2.6.32-358.18.1.el6.x86_64
4.编译安装驱动:
[root@master modules]# cd
[root@master ~]# mkdir alx-linux-v2.0.0.6
[root@master ~]# mv alx-linux-v2.0.0.6.rar alx-linux-v2.0.0.6/
[root@master ~]# cd alx-linux-v2.0.0.6
[root@master alx-linux-v2.0.0.6]# rar x alx-linux-v2.0.0.6.rar
[root@master alx-linux-v2.0.0.6]# make
[root@master alx-linux-v2.0.0.6]# make install
4.添加alx.ko驱动:
[root@master alx-linux-v2.0.0.6]# cd /lib/modules/2.6.32-358.el6.x86_64
[root@master 2.6.32-358.el6.x86_64]# echo "alx.ko" >> modules.networking
[root@master 2.6.32-358.el6.x86_64]# modprobe alx
[root@master 2.6.32-358.el6.x86_64]# lsmod | grep alx
alx 90622 0
[root@master 2.6.32-358.el6.x86_64]# cd
[root@master ~]# reboot
其他:
双网卡情况要注意路由选择:
添加静态路由:
route add default gw IP
删除静态路由:
route del default gw IP
相关文章推荐
- Centos 6.x Atheros AR8161网卡驱动安装
- ubuntu12.04 64bits 安装 Atheros AR8161 有线网卡驱动的解决方法
- Ubuntu下Atheros AR8161网卡驱动安装
- CentOS杂七杂八之二:安装AR8161网卡驱动
- CentOS minimal笔记(二):安装Qualcomm Atheros AR8161 Gigabit Ethernet网卡驱动
- 在Centos6.5下安装AR8161网卡驱动
- ubuntu12.04 64bits 安装 Atheros AR8161 有线网卡驱动的解决方法
- ubuntu12.04 64bits 安装 Atheros AR8161 有线网卡驱动的解决方法
- CentOS 6.4安装在物理机上,Atheros AR8161/AR8162网卡驱动问题
- dell 笔记本 ubuntu 安装 无线网卡驱动(Qualcomm Atheros QCA9565 / AR9565 Wireless Network Adapter)
- linux下ga-g31m-es2c v2.3 主板网卡atheros ar8132 驱动安装
- centos6.4 64位下安装BCM43225无线网卡驱动
- 内核驱动小记(三)——单独编译Atheros AR8161网卡驱动
- linux下ga-g31m-es2c v2.3 主板网卡atheros ar8132 驱动安装
- 关于12.12无法AR8161 8165无法安装网卡驱动的解决方法.新手看看吧
- Ubuntu Server 12.04 LTS 安装 AR8161 驱动
- Ubuntu Server 12.04 LTS 安装 AR8161 驱动
- CentOS6.4 编译安装RTL8192CU芯片驱动,使用TP_LINK wn823n无线网卡
- CentOS 6.4 安装无线网卡驱动
- Linux系统(CentOS 6.4)的NTFS驱动-NTFS-3g的安装和配置