CentOS Assorted II: Installing the AR8161 NIC driver

Source: Internet
Author: User

Note: This article refers to the network data collation experiment.
Environment: The NIC is Atheros Communications Inc. AR8161 Gigabit Ethernet (rev 10) and the system is CentOS6.4 2.6.32-358.x86_64
Use the command to find the NIC type, Lspci |grep Ethernet
It is said that the AR8161 network card in Linux because of its test phase, so the kernel does not join the network card driver, so it takes a little time to install themselves, Linux does not have a network that is really boring, nothing can do.

Download driver: Online search, Xx.2.0.0.6.rar, with Windows software extract, copy
such as: cd/home/test/xx.2.0.0.6
Execute the Line
Make
Make install//If you need a package such as GCC, then modify the Yum source for local source with Yum installation, or extract the installation package one by one to install its dependency package, or select the software development mode when the system is installed, this mode requires the basic package of GCC.
Generate Src/alx.ko File

mkdir/lib/modules/2.6.32-358.6.2.el6.x86_64/kernel/net/wired//Do not need to knock the whole, with the TAB key can just find the kernel directory of their own line.
CP Src/alx.ko/lib/modules/2.6.32-358.6.2.el6. X86_64/kernel/net/wired
Vi/lib/modules/2.6.32-358.6.2.el6.x86_64/modules.networking
Join Alx.ko

In addition, the network material to edit a document, later to fill in, first left blank.
Add the following:
Vi/etc/sysconfig/modules/alx.modules
------------------------------------------------------------------------------------------------------------
#!/bin/sh

if [!-c/dev/input/alx.ko]; Then
Exec/sbin/modprobe Alx >/dev/null 2>&1
Fi
================
Depmod-a
modprobe Alx
See if/var/log/messages is started

This is almost the case, I have installed two times before success, the reason is unclear.
Note: In addition, if the kernel is upgraded after Yum update, the NIC will be reinstalled again, so remember to correspond to the corresponding kernel version directory in the process.
Some machines ifconfig not see the installed network card, need to add a parameter.

About the network card configuration, we can use the Setup to configure, if there is no ifcfg-eth0 in the Network-script, write their own line, I look at the toss just.

==the END

CentOS Assorted II: Installing the AR8161 NIC driver

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.