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 > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to determine the driver used by the network card under Linux. It is very detailed and has a certain reference value. Interested friends must read it!
1. Whether it is an integrated network card or an independent network card, it must be connected to the PCI bus in some way, so there must be a code name.
This code name can be obtained with the following command
# lspci | grep Ethernet
02Rod 00.0 Ethernet controller: Intel Corporation 80003ES2LAN Gigabit Ethernet Controller (Copper) (rev 01)
The foremost "02 rig 00.0" is the code name of the device on the PCI bus, which is unique in the whole system.
two。 After getting the PCI code of the network card, we can find its driver in sysfs, as follows
# cd / sys/bus/pci/drivers
# find | grep '02purl 00.0'
. / e1000e/0000:02:00.0
3. Through the above command, we can find that the device is under the "e1000e" folder, that is to say, the driver of the network card is e1000e
4. In summary, on the Linux system, the command to find the driver being used by the network card is as follows
# code=$ (lspci | grep Ethernet | head-1 | awk'{print $1}')
# find / sys/bus/pci/drivers/ | grep $code | awk-F /'{print $6}'
Or
# find / sys/bus/pci/drivers/ | grep $(lspci | grep Ethernet | head-1 | awk'{print $1}') | awk-F /'{print $6}'
The above is all the contents of the article "how to determine the driver used by the network card under Linux". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
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.