Command for viewing Nic information in linux, and command for viewing Nic in linux
Rhel kernel version:
[root@hvrhub ~]# uname -aLinux hvrhub 2.6.18-308.el5 #1 SMP Fri Jan 27 17:17:51 EST 2012 x86_64 x86_64 x86_64 GNU/Linux
View the driver and manufacturer of the NIC:
[Root @ hvrhub ~] # Kudzu -- probe -- class = network-class: NETWORKbus: PCIdetached: 0 device: eth0driver: r8169 ----------------> This is the driver name. The following modinfo command uses this driver name. Desc: "Realtek semiconduco ., ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller "network. hwaddr: 20: cf: 30: 8f: 5a: cfvendorId: 10 ecdeviceId: 8136 subVendorId: 1043 subDeviceId: 8347 pciType: 1 pcidom: 0 pcibus: 1 pcidev: 0 pcfn: 0 [root @ hvrhub ~] #
View the network speed of the NIC:
[Root @ hvrhub ~] # Ethtool eth0Settings for eth0: Supported ports: [tp mii] Supported link modes: 10 baseT/Half 10 baseT/Full 100 baseT/Half 100 baseT/Full Supports auto-negotiation: yes Advertised link modes: 10 baseT/Half 10 baseT/Full 100 baseT/Half 100 baseT/Full Advertised auto-negotiation: Yes Speed: 100 Mb/s Duplex> Nic Speed Duplex: Full Port: mii phyad: 0 Transceiver: internal Auto-negotiation: on Supports Wake-on: pumbg Wake-on: g Current message level: 0x00000033 (51) Link detected: yes
The following describes how to view the NIC Driver.
[root@hvrhub ~]# modinfo r8169filename: /lib/modules/2.6.18-308.el5/kernel/drivers/net/r8169.koversion: 2.3LK-1-NAPIlicense: GPLdescription: RealTek RTL-8169 Gigabit Ethernet driverauthor: Realtek and the Linux r8169 crew <netdev@vger.kernel.org>srcversion: 2F438BE7BC0FF431B08F6F4alias: pci:v00000001d00008168sv*sd00002410bc*sc*i*alias: pci:v00001737d00001032sv*sd00000024bc*sc*i*alias: pci:v000016ECd00000116sv*sd*bc*sc*i*alias: pci:v00001259d0000C107sv*sd*bc*sc*i*alias: pci:v00001186d00004300sv*sd*bc*sc*i*alias: pci:v000010ECd00008169sv*sd*bc*sc*i*alias: pci:v000010ECd00008168sv*sd*bc*sc*i*alias: pci:v000010ECd00008167sv*sd*bc*sc*i*alias: pci:v000010ECd00008136sv*sd*bc*sc*i*alias: pci:v000010ECd00008129sv*sd*bc*sc*i*depends: miivermagic: 2.6.18-308.el5 SMP mod_unload gcc-4.1parm: rx_copybreak:Copy breakpoint for copy-only-tiny-frames (int)parm: use_dac:Enable PCI DAC. Unsafe on 32 bit PCI slot. (int)parm: debug:Debug verbosity level (0=none, ..., 16=all) (int)module_sig: 883f3504f23243d2d3142b3e704051112e6b709e3b544a3e206c72e140c0edbb9629d3b31086569609f535d83d8f076749cbfa5d34d39be5319c1cc321
The following command shows whether the network card is integrated? --- To be verified.
[Root @ hvrhub ~] # Dmidecode | sed-n'/net/, + 5 p 'Type: Ethernet Status: Enabled Description: Onboard Ethernet -------------------> does this mean that this is an integrated Nic? If you have the opportunity, get a pci Nic and execute this command to see what the output is. Handle 0x0020, DMI type 11, 5 bytesOEM Strings
The following command also shows the NIC controller manufacturer information.
[root@hvrhub ~]# lspci | grep Ethernet01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 02)[root@hvrhub ~]#