Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to install the Linux network card driver

Shulou Source: shulou.com Published: 2022-06-01 04:53:30 11月01日 Update

The editor will share with you how to install the Linux network card driver. I hope you will get something after reading this article. Let's discuss it together.

Installation and problems of network card driver under Linux:

1. First of all, you need to confirm whether the network card is installed.

PCI details View # lspci\\ if there is information about Ethernet, the Nic hardware exists.

For more information about the network card, check # kudzu--probe--class=network\\ to see the specific model information of the network card.

Note: some network cards integrated on the motherboard need to be activated in the BIOS settings.

BIOS main menu-> IntegratedPeripherals- > onbroadlan set Enabled

2. Check the Nic driver of Linux.

Linux will have many built-in drivers # cd/lib/modules//kernel/drivers/net/

If there is a corresponding network card driver, it will be installed automatically when you install the system, or you can install it yourself manually.

In the directory above, the # insmod Nic driver (2.4kernel is .o file, 2.6kernel is .ko file)

Lsmod View driver installation

3. Install the network card driver

Some unusual network cards need to be installed on their own.

First, make sure that the following software already exists in your Linux system: kernel-source, kernel, gcc, make

Download the Nic driver to the src directory

# makeinstall

Compile successfully to produce .o or .ko file

# insmod.o or .ko

# lsmod confirms whether the driver is installed

4. IP configuration

Ifconfig to configure or configure / etc/sysconfig/network-scripts/ifcfg-eth0 file

Note: sometimes the network card driver of the restart system does not load automatically, check whether there is aliaseth0XXX in the / etc/modprobe.conf file.

Did not add one manually (XXX is the name of the Nic driver)

In this way, you have manually completed the configuration of the Linux network card driver.

After reading this article, I believe you have a certain understanding of "how to install Linux network card driver". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!

Tags: Network card driver network card driver file information configuration manual system kernel card driver directory article success download net motherboard name model done common more Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info NVidia Microsoft Apple Shulou Technology