finding netcard driver type in linux
we have two ways:
1. finding netcard driver by syslog
grep -i ‘driver’ /var/log/messages
or
dmesg | grep -i driver
2.lsmod
#try to find netcard type.
[root@2hei.net]# modinfo e1000
filename: /lib/modules/2.6.9-34.ELsmp/kernel/drivers/net/e1000/e1000.ko
parm: debug:Debug level (0=none,…,16=all)
version: 6.1.16-k3-NAPI 4BCC06D27AAC4C711223CC9
license: GPL
description: Intel(R) PRO/1000 Network Driver
author: Intel Corporation, <linux.nics@intel.com>
[root@2hei.net]# modinfo igb
filename: /lib/modules/2.6.18-164.11.1.el5/kernel/drivers/net/igb/igb.ko
version: 1.3.16-k2
license: GPL
description: Intel(R) Gigabit Ethernet Network Driver
author: Intel Corporation, <e1000-devel@lists.sourceforge.net>
srcversion: 78555F0A019E05BADBD95AA
[root@2hei.net]# modinfo bonding
filename: /lib/modules/2.6.18-164.11.1.el5/kernel/drivers/net/bonding/bonding.ko
author: Thomas Davis, tadavis@lbl.gov and many others
description: Ethernet Channel Bonding Driver, v3.4.0
version: 3.4.0
license: GPL
srcversion: 7989A7EEF2EE7B5D78C0E79
depends: ipv6
vermagic: 2.6.18-164.11.1.el5 SMP mod_unload gcc-4.1
本文固定链接: https://www.2hei.net/2010/06/29/finding_netcard_driver_type_in/ | 2hei.net