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


    查看网卡型号

    lspci | grep -i net

     示例1

    1. [root@zyq ~]# lspci | grep -i net
    2. 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

    1. [root@zyq ~]# lspci | grep -i net
    2. 00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (5) I219-V (rev 31)
    3. 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设备的信息。

    示例一

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

    示例二

    1. [root@zyq ~]# lspci -k -s 00:1f.6
    2. 00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (5) I219-V (rev 31)
    3. Subsystem: Lenovo Device 505d
    4. Kernel driver in use: e1000e
    5. Kernel modules: e1000e
    6. [root@zyq ~]# lspci -k -s 03:00.0
    7. 03:00.0 Network controller: Intel Corporation Wireless 8260 (rev 42)
    8. Subsystem: Intel Corporation Device 1130
    9. Kernel driver in use: iwlwifi
    10. 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>

    示例

    1. [root@zyq ~]# modinfo iwlwifi
    2. filename: /lib/modules/3.10.0-693.el7.x86_64/kernel/drivers/net/wireless/intel/iwlwifi/iwlwifi.ko.xz
    3. license: GPL
    4. author: Copyright(c) 2003- 2015 Intel Corporation <linuxwifi@intel.com>
    5. description: Intel(R) Wireless WiFi driver for Linux
    6. ...

  • 相关阅读:
    java前后端分离框架的各自特点是什么?
    删除 “显示不存在的文件夹” 的文件夹
    【数学建模学习笔记【集训十天】之第三天】
    C#Winform 打开文件浏览器
    卷积神经网络 图像分割,卷积神经网络 图像识别
    【Leetcode】1776. Car Fleet II
    计算机网络------数据链路层与交换机
    Mac系统安装flutter
    C#/.NET/.NET Core拾遗补漏合集(24年6月更新)
    repr函数输出调试信息
  • 原文地址:https://blog.csdn.net/zyqash/article/details/133668381