Linux下網卡驅動和版本資訊

來源:互聯網
上載者:User

標籤:linux   網卡   


查看網卡生產廠商和訊號

查看基本資料:lspci

查看詳細資料:lspci -vvv   # 3個小寫v

查看網卡資訊:lspci | grep Ethernet

查看網卡驅動

查看網卡驅動資訊:lspci -vvv # 找到網卡裝置的詳細資料,包括網卡驅動

# lsmod    列出載入的所有驅動,包括網卡驅動

 

查看網卡驅動版本

       查看模組資訊:modifo<module name>   # 其中包含version資訊

       或 # ethtool-i <device name>

RHEL 6.3中的網卡驅動版本:

# modinfo igb

filename:   /lib/modules/2.6.32-279.el6.x86_64/kernel/drivers/net/igb/igb.ko

version:       3.2.10-k

license:        GPL

description:    Intel(R) Gigabit Ethernet Network Driver

# modinfo e1000e

filename:      /lib/modules/2.6.32-279.el6.x86_64/kernel/drivers/net/e1000e/e1000e.ko

version:       1.9.5-k

license:        GPL

description:    Intel(R) PRO/1000 Network Driver

author:         Intel Corporation,<[email protected]>

# modinfo e1000

filename:       /lib/modules/2.6.32-279.el6.x86_64/kernel/drivers/net/e1000/e1000.ko

version:       8.0.35-NAPI

license:        GPL

description:    Intel(R) PRO/1000 Network Driver

# modinfo ixgbe

filename:  /lib/modules/2.6.32-279.el6.x86_64/kernel/drivers/net/ixgbe/ixgbe.ko

version:       3.6.7-k

license:        GPL

description:    Intel(R) 10 Gigabit PCI Express NetworkDriver

# modinfo r8169

filename:      /lib/modules/2.6.32-279.el6.x86_64/kernel/drivers/net/r8169.ko

version:       2.3LK-NAPI

license:        GPL

description:    RealTek RTL-8169 Gigabit Ethernet driver

查看網路介面隊列數

       查看網卡介面的中斷資訊:#cat /proc/interrupts | grep eth0

       或 # ethtool-S eth0

查看網卡驅動源碼的版本號碼

       解壓Intel網卡驅動源碼,開啟解壓縮目錄下的*.spec檔案查看驅動的版本。

       例如:解壓e1000-8.0.35.tar.gz網卡驅動後,查看e1000.spec檔案。

Name:e1000

Summary:Intel(R) Gigabit Ethernet Connection

Version: 8.0.35

Release:1

Source:%{name}-%{version}.tar.gz

Vendor:Intel Corporation

License:GPL

ExclusiveOS:linux

Group:System Environment/Kernel

   在驅動源碼src目錄中尋找:

#grep DRV_VERSION *              # forLinux

#findstr DRV_VERSION *   # for Windows

在e1000_main.c中也能找到定義驅動版本的一行:

#define DRV_VERSION"8.0.35" DRV_NAPI DRV_DEBUG DRV_HW_PERF

在e1000e中src目錄下netdev.c檔案:

#define DRV_VERSION"3.0.4.1" DRV_EXTRAVERSION

igb_main.c:

#define MAJ 5

#define MIN 2

#define BUILD 9.4

#define DRV_VERSION__stringify(MAJ) "." __stringify(MIN) "."\

ixgbe_main.c:

#define DRV_VERSION        __stringify(3.22.3) DRIVERIOVDRV_HW_PERF FP GA \

Linux下網卡驅動和版本資訊

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.