0


linux查看网卡型号和驱动信息

查看网卡型号

lspci | grep -i net

示例1

[root@zyq ~]# lspci | grep -i net
1a:00.0 Ethernet controller: Intel Corporation Ethernet Connection X722 for 10GbE SFP+ (rev 09)
  • 设备地址(PCI地址):1a:00.0
  • 设备类型:以太网控制器
  • 制造商:Intel Corporation
  • 设备型号:Ethernet Connection X722 for 10GbE SFP+
  • 固件版本:rev 09

示例2

[root@zyq ~]# lspci | grep -i net
00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (5) I219-V (rev 31)
03:00.0 Network controller: Intel Corporation Wireless 8260 (rev 42)
  1. 第一个设备是一个以太网控制器,由Intel Corporation生产,型号为Ethernet Connection (5) I219-V,版本号为rev 31。
  2. 第二个设备是一个网络控制器,也由Intel Corporation生产,型号为Wireless 8260,版本号为rev 42。这是一个无线网络适配器,用于连接无线网络。

查看网卡驱动

方法一

ethtool -i enp0s31f6

方法二

lspci -k -s 00:1f.6

上面提到的两个参数是用来指定

lspci

命令的选项和参数:

  1. -k:这是lspci命令的一个选项,用于显示与每个PCI设备相关的内核模块信息。通过使用-k选项,您可以查看与特定PCI设备关联的驱动程序名称。
  2. -s:这是lspci命令的另一个选项,用于指定要显示信息的PCI设备的地址。PCI设备通常由总线号和设备号来标识,例如,00:1f.603:00.0是两个示例设备的地址。通过使用-s选项,您可以告诉lspci命令要显示哪个PCI设备的信息。

示例一

[root@zyq ~]# ethtool -i enp0s31f6
driver: e1000e
version: 3.2.6-k
firmware-version: 0.1-3
expansion-rom-version: 
bus-info: 0000:00:1f.6
supports-statistics: yes
supports-test: yes
supports-eeprom-access: yes
supports-register-dump: yes
supports-priv-flags: no

示例二

[root@zyq ~]# lspci -k -s 00:1f.6
00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (5) I219-V (rev 31)
    Subsystem: Lenovo Device 505d
    Kernel driver in use: e1000e
    Kernel modules: e1000e
[root@zyq ~]# lspci -k -s 03:00.0
03:00.0 Network controller: Intel Corporation Wireless 8260 (rev 42)
    Subsystem: Intel Corporation Device 1130
    Kernel driver in use: iwlwifi
    Kernel modules: iwlwifi
  1. 以太网控制器(Ethernet Connection I219-V)的信息如下:- 设备地址:00:1f.6- 制造商:Intel Corporation- 设备名称:Ethernet Connection (5) I219-V (rev 31)- 子系统:Lenovo Device 505d- 正在使用的内核驱动程序:e1000e- 内核模块:e1000e
  2. 无线网络控制器(Wireless 8260)的信息如下:- 设备地址:03:00.0- 制造商:Intel Corporation- 设备名称:Wireless 8260 (rev 42)- 子系统:Intel Corporation Device 1130- 正在使用的内核驱动程序:iwlwifi- 内核模块:iwlwifi

查看网卡驱动详情

modinfo <driver>

示例

[root@zyq ~]# modinfo iwlwifi
filename:       /lib/modules/3.10.0-693.el7.x86_64/kernel/drivers/net/wireless/intel/iwlwifi/iwlwifi.ko.xz
license:        GPL
author:         Copyright(c) 2003- 2015 Intel Corporation <[email protected]>
description:    Intel(R) Wireless WiFi driver for Linux
...
标签: linux 网络 服务器

本文转载自: https://blog.csdn.net/zyqash/article/details/133668381
版权归原作者 巭犇 所有, 如有侵权,请联系我们删除。

“linux查看网卡型号和驱动信息”的评论:

还没有评论