Install the NIC driver when no network is available in debian

Source: Internet
Author: User
If no network is available in debian, install the NIC Driver-Linux Release Technology-Debian information. For more information, see the following. 0. Origin
If lenny (testing) is installed on a dell machine as debian, the NIC is of the intel (R) 82562V-2 model and cannot be recognized by the kernel. Therefore, network installation cannot be performed; when using cd for installation, the NIC cannot be identified. As a result, there is no network link after installation, and you need to manually compile the NIC Driver.

1. Install the system
On the official website http://cdimage.debian.org/cdimage/weekly-builds/download the corresponding cd image (I use it as a debian-testing-amd64-CD-1.iso), engraved into the cd with cdrom for installation. No network is selected during the installation process. After the installation is complete, you can enter the console and cannot access the Internet.

2. Prepare materials
Download the network card driver code package e1000-7.6.15.4.tar.gz (you can search for the model of the network card and download it on the corresponding page) from the official intel.com website on 1st and decompress the package. You need to prepare the package or download it from another machine. Copy the source code to/tmp (you can use a USB flash drive, a mobile hard disk, or a windows partition on the same machine for sharing or other methods ).
$ Cd/tmp
$ Tar zxvf e1000-7.6.15.4.tar.gz
(2) Place the cd used for installation to the optical drive, and enter
# Apt-cdrom add
Index the content of the CD to the system to install the following content.
(3) Input
# Apt-get install linux-headers
If the kernel header file cannot be installed, use apt-cache search linux-headers to search and use apt-get install to install the kernel header file of the corresponding version.
(4) Input
# Apt-get install build-essential
Install and create a tool
(5) If necessary, install tools such as gcc and make, and install them with apt-get install. All cd images are attached.

3. Backup Files
# Cp/lib/modules/2.6.22-3-amd64/kernel/drivers/net/e1000/e1000.ko ~ /E1000.ko. orig
Among them, 2.6.22-3-amd64 is the kernel version number. There is only one folder under modules, and a tab key is directly displayed.

4. Create a Driver Module
# Cd/tmp/e1000-7.6.15.4/src
# Make

5. Install the driver module
# Install-D-m 644 e1000.ko/lib/modules/2.6.22-3-amd64/kernel/drivers/net/e1000/e1000.ko
# Modprobe e1000

6. Test Results
# Ifconfig
Check whether eth0 exists. If eth0 exists, the installation is complete. You can configure the network.

7. automatically load the eth0 Device
Echo "e1000">/etc/modules

8. reboot test results
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.