In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to upgrade the network card driver under Linux". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to upgrade the network card driver under Linux".
Update the network card driver under linux. Check the network card version
Ifconfig-a check the name of the network card
Suppose the network card found out is named eno1.
Ethtool-I eno1 / / View the current Nic driver version
It is known that the network card eno1 depends on the igb driver.
Version 5.3.5.20 (updated)
Lspci | grep net / / View the Nic model
The network card model is Intel I210.
Then go to the Intel official website to download the corresponding driver.
Https://downloadcenter.intel.com/zh-cn/download/13663/-82575-82580-i350-i2101-linux-
After downloading, upload it to the server
Before installation, make sure that the system kernel-headers, kernel-firmware, kernel-devel software packages have been installed, and the version must be the same, and the compilation tools gcc, gcc-c++ have been installed, if not installed, please configure the correct yum source and use the yum command to install.
Rpm-qa | grep ^ kernel / / View the installed kernerl
Rpm-qa | grep ^ gcc / / View the installed gcc compilation tool
View the kernel version of the server
Uname-r
Cd / usr/src/kernels/ looks for the corresponding kernel source code in the directory
Cd.. Go back to the upper directory, which is cd / usr/src/
Then perform a soft connection to the corresponding kernel source
Ln-s kernels/4.4.128-12.rcserver.x86_64/ linux
Go to the directory in the upload package and decompress the uploaded files
Tar zxf igb-5.3.5.22.tar.gz
Go to the cd igb-5.3.5.22/src/ directory
Then execute make install to compile.
After compiling, we will find that there will be an igb.ko file in the current directory, which is the Nic driver we compiled.
Then replace the igb.ko to the following directory. It is possible that the catalog is different. You can use modinfo igb to view the path of the current driver, and then replace it as appropriate.
/ lib/modules/4.4.128-12.rcserver.x86_64/kernel/drivers/net/ethernet/intel/igb/igb.ko
Then unload the driver and load the new driver. (note uninstalling the old driver will disconnect the network, so you can put the new driver on the root directory in order to perform the operation)
Rmmod igb / / Uninstall
Insmod igb.ko// loading (needs to be executed under the current directory of early igb.ko)
Depmod-a / / analyze all available modules
Ethtool-I eno1 will find that the driver version has changed.
Finally restart or service network restart restart the network service
Depmod-a / / analyze all available modules
Cp / boot/initramfs-4.4.128-12.rcserver.x86_64.img / boot/initramfs-4.4.128-12.rcserver.x86_64.img.bk / / make a copy before operation
Mkinitrd-f / boot/initramfs-4.4.128-12.rcserver.x86_64.img 4.4.128-12.rcserver.x86_64 / / mkinitrd can create an image file for Linux to load ramdisk when booting
Note: initramfs-4.4.128-12.rcserver.x86_64.img makes input according to its own actual situation.
Thank you for reading, the above is the content of "how to upgrade the network card driver under Linux". After the study of this article, I believe you have a deeper understanding of how to upgrade the network card driver under Linux, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.