AR8161 NIC is not recognized

Source: Internet
Author: User

Background

recently need to deploy a cobbler environment, specifically to get a PC host, installed on the CentOS6.5, start to discover:

1, can't find/etc/sysconfig/network this file

2. Ifconfig-a cannot see the NIC device (except LO)


Analysis

This is because the desktop network card is not recognized, we have to do is to find out the model of the network card, and then, download the driver of this network card, and then, the driver installed, the problem can be solved.


Solution

1. Use the following command to find out the NIC model (AR8161) of this machine

[Email protected] ~]# Lspci | grep Ethernet

2, to the Internet to download the corresponding driver (will be given in the annex)

3, put the driver on the host, we can put the driver on the USB stick, and then mount the USB stick to the system


Premise

When installing the driver, need to compile, so, GCC related package to install, you can choose to put the package on the USB flash drive, mount the last line installation, or, re-install it, the installation, the development package assembly (I did so, the solution package dependencies, will take more time, Yum's approach is not feasible, Your network card is not recognized, how to surf the Internet? )

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/5A/16/wKioL1T2dkqyIrJIAAB774304QI353.jpg "title=" Ar-1.png "alt=" Wkiol1t2dkqyirjiaab774304qi353.jpg "/>


650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/5A/16/wKioL1T2dljiCyprAAFkwfupIGo807.jpg "title=" Ar-2.png "alt=" Wkiol1t2dljicypraafkwfupigo807.jpg "/>


Steps

The following are the detailed steps to resolve

1, the AR8161 network card driver copied to the current host, insert a USB flash drive

[Email protected] ~]# mount/dev/sdb4/mnt #我这边显示的是sdb4, we may not be the same [[email protected] ~]# cp/mnt/alx-linux-v2.0.0. 6.tar.gz/usr/local


2, unzip the driver, compile

[[email protected] ~]# cd/usr/local[[email protected] ~]# tar-zxf alx-linux-v2.0.0.6.tar.gz[[email protected] ~]# CD Alx-linux-v2.0.0.6/src[[email protected] ~]# make #这一步会生成alx a file for. ko [[email protected] ~]# mkdir/lib/modules/2.6.32-3 58.6.2.el6.x86_64/kernel/net/wired #为其创建一个目录


3. Copy the KO file that we compiled into the directory created above

[[Email protected] ~] #cp/usr/local/alx-linux-v2.0.0.6/src/alx.ko/lib/modules/2.6.32-358.6.2.el6.x86_64/kernel/ Net/wired


4. The KO file in the driver of our compiled NIC is assigned to the system.

[[Email protected] ~] #vi/lib/modules/2.6.32-358.6.2.el6.x86_64/modules.networking alx.ko #加入alx. Ko


5. Add module files for NIC

[[Email protected] ~] #vi/ETC/SYSCONFIG/MODULES/ALX.MODULES#!/BIN/BASHIF [!-c/dev/input/alx.ko]; Then Exec/sbin/modprobe alx >/dev/null 2>&1fi


6. Finally, load this module

[[Email protected] ~] #depmod-a[[email protected] ~] #modprobe alx #加载模块


7. Create a configuration file for eth0 this NIC

[[Email protected] ~] #cd/etc/sysconfig/network-scripts[[email protected] ~] #cp ifcfg-lo ifcfg-eth0[[email protected] ~ ] #vim ifcfg-eth0device=eth0type=ethernetonboot=yesnm_controlled=nobootproto=noneipaddr=192.168.1.20netmask= 255.255.255.0gateway=192.168.1.1dns1=192.168.1.2ipv6init=nouserctl=no


End

To this, self-compiled network card driver process is over, restart the network server can, if there are other problems, welcome to discuss together, the above is their first encounter this situation, at the same time, but also thanks to other online sharing solutions partners.


This article is from the "Child Naked Fart" blog, please be sure to keep this source http://cshang.blog.51cto.com/6143980/1617170

AR8161 NIC is not recognized

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.