AR8151 Network card driver not installed after CentOS minimized installation workaround

Source: Internet
Author: User

Recently brought a pc,12 years when the installation of the CentOS6.2 (x64), the use of the external network card, the minimum installation system, the motherboard comes with a network card is not displayed also did not notice, but recently need to use the dual network card, it is depressed. So the following series of questions occurred.

1. LSPCI Command No

Problems encountered:

CENTOS6 in the minimized installation. x system, use the LSPCI command to view hardware information, prompting for command not found.

[Email protected] netperf-2.6.0]# LSPCI

-bash:lspci:command not found

Workaround Installation: Pciutils

# yum Install Pciutils

2, check the system has what network card

[Email protected] netperf-2.6.0]# Lspci | grep Ethernet

02:00.0 Ethernet Controller:atheros Communications Inc. AR8151 v2.0 Gigabit Ethernet (rev C0)

04:00.0 Ethernet Controller:realtek Semiconductor Co., Ltd. RTL-8169 Gigabit Ethernet (rev 10)

In fact, I have this system also has a wireless card, USB

3. Check the NIC driver

Here ifconfig-a can only see eth0 and Lo0, and the eth0 driver information is as follows, indicating that the AR8151 driver is not installed

[email protected] netperf-2.6.0]# ethtool-i eth0
driver:r8169
Version:2.3lk-napi
Firmware-version:
bus-info:0000:04:00.0


4. AR8151 Network card driver installed under CentOS


Problems encountered:

Search the Internet, say to download the driver package, then make and so on.

Download ar81family-linux-v1.0.1.9.tar.gz (since this method is not actually available for eggs, so it is not provided)

However, it is not possible to make in SRC (see the Readme in the solution file) as it is said on the web, and the result is "makefile:61: * * * Linux kernel source not found. Stop "such a mistake; after searching on the internet, it is thought that some kernel packages have not been installed, and the kernel, Kernel-devel, Kernel-devel, kernel-headers rpm packages are still reported the same error.


Workaround:

found that the network card is incompatible finally found a solution on the Internet:

(1) Open the/sys/bus/pci/drivers path, start Here is not a directory called ATL1C (if there is no matter).

(2) Modprobe atl1c and then see/sys/bus/pci/drivers, is there a atl1c directory?

(3) echo "1969 1083" >/sys/bus/pci/drivers/atl1c/new_id (Insufficient display rights)

Note: If you are the root user, you will not be prompted with insufficient permissions, and there is no need to do 4, 5, 6 steps.

(4) chmod 777/sys/bus/pci/drivers/atl1c/new_id

(5) echo "1969 1083" >/sys/bus/pci/drivers/atl1c/new_id

(6) chmod 400/sys/bus/pci/drivers/atl1c/new_id


After performing the above steps, you need to restart the network

#service Network Restart


But the problem comes again, I can not always boot after the above steps ah, too much trouble, and if someone else to operate, if not know the situation is even worse.


Then write a boot script, very simple, nothing complicated.

[[email protected] ~]# cd/etc/init.d/ //Enter into the boot script directory

[Email protected] init.d]# VI atl.sh

#!/bin/sh

# This script start AR8151--by [email protected]

#

# Chkconfig:-90 25

Modprobe atl1c

echo "1969 1083" >/sys/bus/pci/drivers/atl1c/new_id

Service Network restart

~

"Atl.sh" [New] 11L, 183C written

[[email protected] init.d]# chmod +x atl.sh //give permission to execute

[Email protected] init.d]#./atl.sh

Shutting down interface eth0: Device status: 3 (Disconnected)

Determine

Close Loopback interface: [OK]

Eject loopback interface: [OK]

Popup interface eth0: Active connection Status: activated

Active connection path:/ORG/FREEDESKTOP/NETWORKMANAGER/ACTIVECONNECTION/1

Determine

[[email protected] init.d]# chkconfig atl.sh on //Add boot entry

PS: Originally wanted to add a command in the/etc/rc.local to implement, but found that after rebooting the system, and did not add the NIC driver, so still write a simple script.


Reference Document: Http://www.idcnote.com/article.asp?id=85

This article is from the "Flying Pig" blog, please be sure to keep this source http://thinkpig007.blog.51cto.com/971471/1671974

AR8151 Network card driver not installed after CentOS minimized installation workaround

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.