Install NIC Driver in centos 5.2

Source: Internet
Author: User

The Linux kernel is incompatible with the NIC of the current motherboard.

The damn Yingtai a780 G is integrated with the damn rtl8168 Nic module ..

1. First determine the reason why the network cannot be accessed: Enter the command miI-tool. If no support is displayed, it must be because the network card has no driver. You can also use dmesg | grep ETH to determine whether the NIC is not driven.

2. Check the motherboard model and find the NIC module integrated with the Board on the official website of the motherboard. (Linux is not compatible with the rtl8111 series or rtl8168 series)

3. Save time, go directly to the network card module provider's official website http://www.realtek.com.tw/, search for your network card model. (Select Unix/Linux)

4. Check the system kernel version: uname-R (my version is 2.6.18-92. E15)

5. Install the main compiling environment package. I get the RPM package by attaching a CD. (The advantage of CD-based installation is that the versions are consistent)

Install all GCC packages (not available) ---------------> rpm-ivh gcc * -- nodeps

Install kernel-headrs --------------------------------------> rpm-IVH kernel-headers -- nodeps

Install kernel-devel ----------------------------------------> rpm-IVH kernel-devel -- nodeps

Kernel-devel will generate a kernels folder in your/usr/src directory. Directly go to the driver directory and execute step 1.

6. Find the driver on the RealTek official website. After downloading the driver, go to the NIC file directory and run the command (according to the NIC installation instructions:

Find and delete the built-in NIC Driver Module before compilation to prevent driver conflicts. (My system comes with r8169)

# Lsmod | grep r81 *

Delete the displayed Driver Module

# Rmmod r8169


Start compilation and Installation

# Make clean modules
# Make install
# Depmod-
# Insmod./src/r8168.ko -------------------------> SRC is under the downloaded driver directory.


For example, if the "build" directory does not exist and there is no r8168.ko file, it is basically caused by a lack of compiling environment. Therefore, you must be patient, especially the GCC, kernel. devel, and kernel. headers packages.

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.