CentOS Wired Unable to access solution network card driver installation

Source: Internet
Author: User

By:ailson, Jack.

date:2014.04.21

My personal blog: www.only2fire.com, the other content inside may have you need oh.

This article in my blog URL is: http://www.only2fire.com/archives/30.html, typesetting better, not letter, open look ^_^. Well, if you don't want to go to my blog, the following is the text.

Note: This article refers to the relevant information on the Internet, and passed my attempt.

If your computer is not wired to the internet after it has been installed CentOS, follow this command:

lspci| grep-i ETH

My terminal Displays the result:02:00.0 Ethernet controller:qualcomm atheros AR8161 Gigabit Ethernet (rev.)

Then execute the order again:ifconfg

The terminal shows no eth0 or ethx(x represents 1~ ...). The relevant information ,

If your computer terminal is also similar to the appeal of the case, then do not tangle, this is the NIC driver did not install well, then I will share my solution:

Note: My computer's network card is Atheros AR8161 This, maybe your computer is not this, then please go to download the relevant driver you, but the installation methods are similar.

I am here for the installation of Atheros AR8161.

First need to prepare: with your computer-related network card driver

1, download Atheros AR8161 Drive, the following is the Web site

Http://pan.baidu.com/s/1gd3hNvd

After the download, to extract, extract directory: alx-linux-v2.0.0.6

2, CentOS default is not installed GCC, you can perform:gcc

If the terminal displays:Bash:gcc:comman not found

So that means your computer hasn't installed GCC yet, execute the following command to install GCC

Execute command:yum install gcc waits for the GCC installation to complete.

3, install Kernel-headers and kernel-devel:

Execute the following command at the terminal:

Yum Install kernel-headers-$ (uname-r) kernel-devel-$ (uname-r)-y

4, in the terminal under the switch path to just unzip the file, the path will be switched to the folder alx-linux-v2.0.0.6 inside

Then execute the command:CD./src/

Then execute the command : Make now produces a Alx.ko file in the SRC folder

Then execute the command:mkdir/lib/modules/2.6.32-358.6.2.el6.x86_64/kernel/net/wired do not have to knock the whole, with the TAB key, as long as the search for their own kernel directory on the line, This step is to create a wired directory, so it is important to use the TAB key to find your own directory.


5, copy Alx.ko to the folder created in the previous step

Then execute the command:vi/lib/modules/2.6.32-358.6.2.el6.x86_64/modules.networking do not have to knock the whole, with the TAB key, as long as the search for their own kernel directory on the line, It's important to find your own directory.

Add Alx.ko to the first line of Modules.networking, as shown in the following figure:

6. Execute the Order:vi/etc/sysconfig/modules/alx.modules

Add the following content to the Alx.modules:

#!/bin/sh

if [!-c/dev/input/alx.ko]; then

exec/sbin/modprobe alx >/dev/null 2>&1

fi



7, the final implementation of other orders:

First execute command:depmod-a

Then execute the command:modprobe alx . so far, the network card driver installation is done, to see if your network is connected to it, anyway, I was connected to the ^_^

NOTE: Reprint please indicate the source, thank you. ^_^

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.