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.