Linux Nic Compilation

Source: Internet
Author: User
Linux Nic compilation-general Linux technology-Linux technology and application information. For details, refer to the following section. When installing the linux system, you may encounter a problem, that is, after installing the system, the NIC cannot recognize it.

This is a headache. There are two ways to solve this problem: first, buy an independent NIC and add it, A single 8139 Mbit/s Nic can recognize the NIC driver without compiling the NIC Driver. This method is simple and convenient. 2. Find the NIC Driver of the corresponding model and compile the driver. the second method has several difficulties. One is to find the NIC Driver of the corresponding model, and the other is to compile the method. Even if the NIC Driver is correct, if the linux version is different, there are also different compilation methods.

Here is an example:
Environment: The NIC Driver used by the motherboard Giga 945 and nic RTL8110 when different versions are installed and different compilation methods:

I. as4 Kernel
Cp r8169-6.003.00.tar.bz2/tmp
Su-
Cd/tmp
Tar jxvf r8169-6.003.00.tar.bz2
Cd r8169-6.003.00
Make
Make install
Cd/tmp
Depmod-
Insmod./src/r8169
Lsmod | grep r8169
Ifconfig-
Ifconfig eth0 up

Ii. redhat 9.0
Cp r1000_v1.06.tgz/tmp/u
Cd/tmp/u
Tar zxvf r1000_v1.06.tgz
Cd r1000_v1.06
Make
Reboot
During the restart process, a dialog box is displayed. the dialog box contains three options. Select the first option. The ip Address Configuration window appears, and you can configure the ip address.

Iii. Version cannot be remembered
Cp r8169.tar.bz2/lib/modules/2.6.xxxsml/kernel/drivers/net
Tar jxvf r8169.tar.bz2
Lsmod | grep r8169
Cd/lib/modules/2.6xxx/kernel/drivers/net
Make clean modules
Make install
Depmod-
Insmod./src/r8169.ko
Lsmod | grep r8169
Ifconfig-
Ifconfig eth0 up

Postscript:
Of course we can't exhaust all of them here, just a few of what I 've met.
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.