ethtool 命令主要用于查询配置网卡参数, 但是它的功能超出你的想象。
比如有很多网口,不知道哪个对应哪一个,so easy,直接
此时就可以看到ethN的灯在闪了
而具体的查看网卡类型,可以使用
1 2 3 4 5 6 7 8 9 10 11
| $ ethtool -i ethN driver: bnxt_en version: 1.10.0 firmware-version: 214.0.253.1/pkg 21.40.25.31 expansion-rom-version: bus-info: 0000:18:00.0 supports-statistics: yes supports-test: yes supports-eeprom-access: yes supports-register-dump: no supports-priv-flags: no
|
此时可以通过modinfo来查看网卡驱动的详细信息
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| $ modinfo bnxt_en
ilename: /lib/modules/4.18.0-147.5.1.el8_1.x86_64/kernel/drivers/net/ethernet/broadcom/bnxt/bnxt_en.ko.xz version: 1.10.0 description: Broadcom BCM573xx network driver license: GPL rhelversion: 8.1 srcversion: 2E74274561578E7E250F661 alias: pci:v000014E4d0000D800sv*sd*bc*sc*i* alias: pci:v000014E4d00001807sv*sd*bc*sc*i* ...... depends: intree: Y name: bnxt_en vermagic: 4.18.0-147.5.1.el8_1.x86_64 SMP mod_unload modversions sig_id: PKCS#7 signer: CentOS Linux kernel signing key sig_key: 6C:E4:44:06:AD:56:56:1C:FE:E9:7E:99:45:F8:69:0F:DF:1E:EA:FA sig_hashalgo: sha256 signature: 39:1D:A1:0F:56:8A:BB:20:44:2B:B0:6B:6E:6D:89:DD:15:BC:A2:19:...
|