How to install an Intel Gigabit NIC Driver in Linux

Source: Internet
Author: User
How to install an Intel Gigabit NIC driver in a Linux system-Linux Enterprise Application-Linux server application information. The Linux driver directly downloaded on the intel.net is e1000-5.2.52.tar.gz (the version may change). This compressed package does not contain the compiled. o file. It must be compiled in Linux before it can be used,

Because the NIC needs to be compiled, make sure that the kernel source file is installed. The following describes how to install the kernel source file.

Add kernel source files in Linux
1. Use rpm? Qa | grep kernel-source check whether the package is installed;
If the returned result contains kernel-source-xxx (xxx is the current redhat kernel version, for example, rhel3 is 2.4.21-4EL), it is installed. If no result is returned, install the kernel-source package. Find the kernel-source-xxx.i386.rpm in the installation disc and run the following command to install the rpm package:

2. If rpm-V kernel-source is installed to check whether any file is lost, if no output is available, the file is complete;

3. If any loss occurs, use rpm-ivh -- force kernel-source-xxxx... to reinstall the package;

This kernel-source package, in your RH installation CD, in Redhat/RPMS, if this package has not been installed before, use rpm-ivh kernel-source-xxxx... to install. If you have installed it, overwrite the Installation and Use rpm-ivh -- force kernel-source-xxxx... this command is forced to install.

Note: AS 4, there is no kernel-source package. Replace it with the kernel-dev package. Check whether the package is installed in the same way AS above.

Driver Installation Steps:
1. Copy the tar file to a user-defined directory, for example:
/Home/username/e1000 or/usr/local/src/e1000

2. Run the tar command to decompress the compressed package:
Tar zxf e1000-5.2.52.tar.gz

3. Switch to the driver's src directory:
Cd e1000-5.2.52/src/

4. Compile the driver module:
Make

Then install this module
Make install

The binary element will be installed in the following position:
/Lib/modules/[KERNEL_VERSION]/kernel/drivers/net/e1000.o

The above path is the default installation location, which may be another location in some linux versions. For more information, see the ldistrib.txt file in the tarcompressed package of the driver.

5. Installation module:
Insmod e1000

6. Set the nic ip Address:
Ifconfig ethx X is the ID of the NIC interface.

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.