Linux下查看网卡驱动和版本信息
如何在Linux终端中查看网络信息

如何在Linux终端中查看网络信息在Linux终端中查看网络信息的方法有很多。
本文将介绍几种常用的命令和工具,帮助用户实时查看和监控网络状态、IP地址、网络连接等信息。
一、查看IP地址和网络连接1. ifconfig命令:ifconfig命令用于显示、配置和管理网络接口。
在终端中输入以下命令可以查看当前系统上的网络接口和相应的IP地址:```ifconfig```2. ip命令:ip命令是一个功能强大的工具,可以用于网络接口的配置和管理。
输入以下命令可以查看网络接口和对应的IP地址:```ip addr```在输出结果中,找到类似于"inet"的行,即可找到相应的IP地址。
3. netstat命令:netstat命令用于显示网络连接、路由表和网络接口统计等信息。
输入以下命令可以查看当前系统上的网络连接:```netstat -a```此命令将显示所有网络连接的详细信息,包括本地地址、外部地址、状态等。
二、查看网络流量和速度1. iftop命令:iftop命令用于实时监控网络流量。
在终端中输入以下命令可以查看当前网络的流量情况:```iftop```该命令将以实时图表的形式显示网络流量,包括源IP地址、目标IP地址、发送速度、接收速度等。
2. nload命令:nload命令用于显示网络流量的实时统计信息。
输入以下命令可以查看当前网络的流量速度:```nload```该命令将以图表的形式显示当前网络接口的发送速度和接收速度。
三、Ping和Traceroute命令1. ping命令:ping命令用于测试主机与目标主机之间的连通性。
在终端中输入以下命令可以测试与目标主机的连通性,并查看网络延迟:```ping <目标主机IP地址>```该命令将发送一个ICMP回声请求并接收回应,同时显示往返时间和丢包率。
2. traceroute命令:traceroute命令用于跟踪数据包在网络中的路径。
linux查看系统设备型号信息

linux查看系统设备型号信息1. 查看服务器及内存型号信息1.1. dmidecode简介DMI(Desktop Management Interface,DMI)直译就是“桌⾯管理界⾯”,它就是通过收集系统信息来管理系统。
其主要组成部分是Management Information Format(MIF)数据库。
这个数据库包括了所有有关电脑系统和配件的信息。
通过DMI,⽤户可以获取序列号、电脑⼚商、串⼝信息以及其它系统配件信息。
DMI充当了管理⼯具和系统层之间接⼝的⾓⾊。
它建⽴了标准的可管理系统更加⽅便了电脑⼚商和⽤户对系统的了解。
dmidecode就是将DMI数据库⾥⾯的信息解码后,以⽂本的⽅式进⾏展现的。
dmidecode遵循SMBIOS/DMI标准,其输出的信息包括BIOS、系统、主板、处理器、内存、缓存等等。
因此我们可以在Linux系统下通过dmidecode来获取有关硬件⽅⾯的信息。
(DMI信息是可以⼈为篡改,存在查询结果不准确的问题。
不过⼀般正规途径的机器不会去被篡改。
)SMBIOS(System Management BIOS)是主板或系统制造者以标准格式显⽰产品管理信息所需遵循的统⼀规范。
SMBIOS和DMI是由⾏业指导机构Desktop Management Task Force(DMTF)起草的开放性的技术标准,其中DMI设计适⽤于任何的平台和操作系统。
1.2. dmidecode参数选项以下为dmidecode的命令选项:命令参数描述-d, --dev-mem FILE 从设备⽂件读取信息,输出内容与不加参数标准输出相同。
-h, --help 显⽰帮助信息-q, --quiet 安静模式,尽量不输出冗余的信息。
-s, --string KEYWORD 只显⽰指定DMI字符串的信息。
-t, --type TYPE 只输出指定类型的信息-H, --handle HANDLE 只输出指定句柄的信息-u, --dump 显⽰未解码的原始条⽬内容。
Linux下查看版本号的命令

Password:
[root@taishan ~]# lsb_release -a
-bash: lsb_release: command not found
[root@taishan ~]# lsb_release -a
-bash: lsb_release: command not found
[root@taishan ~]# cat /etc/redhat-release
[root@3.5.5Biz-46 ~]#
这个命令适用于所有的linux,包括Redhat、SuSE、Debian等发行版。
2) 登录到linux执行cat /etc/redhat-release ,例如如下:
[root@3.5.5Biz-46 ~]# cat /etc/redhat-release
LSB Version: 1.3
Distributor ID: RedHatEnterpriseAS
Descrīption: Red Hat Enterprise Linux AS release 4 (Nahant Update 1)
Release: 4
Codename: NahantUpdate1
redhat-release-4AS-2.4
[root@3.5.5Biz-46 ~]#
这种方式下可看到一个所谓的release号,比如上边的例子是2.4
这个release号和实际的版本之间存在一定的对应关系,如下:
redhat-release-3AS-1 -> Redhat Enterprise Linux AS 3
sc@taishan /home/sc > uname -rcat /etc/issue
Linux命令行中的硬件信息查看和驱动管理

Linux命令行中的硬件信息查看和驱动管理在Linux命令行中,我们可以通过一些命令来查看硬件信息和管理驱动,这对于系统维护和故障排除非常重要。
本文将介绍几个常用的命令及其用法,帮助您快速获取硬件信息和管理驱动。
1. 查看硬件信息1.1 lshw命令lshw(或者lswhw)是一个用于查看硬件信息的命令,可以列出系统中所有硬件的详细信息,包括处理器、内存、硬盘、网卡等。
使用示例:```$ sudo lshw```运行以上命令后,您将看到完整的硬件信息列表,可以通过滚动查看或者使用管道和grep命令过滤感兴趣的部分。
1.2 lspci命令lspci命令用于列出系统中所有PCI设备的信息,包括显卡、网卡、声卡等。
使用示例:```$ lspci```该命令会输出PCI设备的详细信息,可以通过管道和grep进行过滤。
1.3 lsusb命令lsusb命令用于列出系统中所有USB设备的信息。
使用示例:```$ lsusb```该命令会输出USB设备的详细信息,可以通过管道和grep进行过滤。
2. 管理驱动2.1 modprobe命令modprobe命令用于加载和卸载Linux内核模块,包括驱动程序。
使用示例:```$ sudo modprobe <module_name> // 加载模块$ sudo modprobe -r <module_name> // 卸载模块```其中,`<module_name>`为要加载或卸载的模块名称。
2.2 lsmod命令lsmod命令用于列出当前已加载的内核模块。
使用示例:```$ lsmod```该命令会输出已加载模块的列表,包括模块名称、使用次数等信息。
2.3 rmmod命令rmmod命令用于卸载已加载的内核模块。
使用示例:```$ sudo rmmod <module_name>```其中,`<module_name>`为要卸载的模块名称。
linux查看网卡驱动信息

linux查看⽹卡驱动信息⽅法⼀:1:ethtool -i ethx如:linux:/mnt # ethtool -i eth1driver: e1000eversion: 1.0.2-k2firmware-version: 1.9-0bus-info: 0000:0b:00.0linux:/mnt # ethtool -i eth16driver: igbversion: 2.1.0-k2firmware-version: 1.4-1bus-info: 0000:0a:00.0linux:/mnt #2:使⽤ modinfo igb 查看驱动信息linux:~ # modinfo igbfilename: /lib/modules/2.6.32.12-0.7-default/kernel/drivers/net/igb/igb.koversion: 5.2.5license: GPLdescription: Intel(R) Gigabit Ethernet Network Driverauthor: Intel Corporation, <e1000-devel@>srcversion: 0E80ABCD0117D822FE8B271alias: pci:v00008086d000010D6sv*sd*bc*sc*i*alias: pci:v00008086d000010A9sv*sd*bc*sc*i*alias: pci:v00008086d000010A7sv*sd*bc*sc*i*alias: pci:v00008086d000010E8sv*sd*bc*sc*i*alias: pci:v00008086d00001526sv*sd*bc*sc*i*alias: pci:v00008086d0000150Dsv*sd*bc*sc*i*alias: pci:v00008086d000010E7sv*sd*bc*sc*i*alias: pci:v00008086d000010E6sv*sd*bc*sc*i*alias: pci:v00008086d00001518sv*sd*bc*sc*i*alias: pci:v00008086d0000150Asv*sd*bc*sc*i*alias: pci:v00008086d000010C9sv*sd*bc*sc*i*alias: pci:v00008086d00000440sv*sd*bc*sc*i*alias: pci:v00008086d0000043Csv*sd*bc*sc*i*alias: pci:v00008086d0000043Asv*sd*bc*sc*i*alias: pci:v00008086d00000438sv*sd*bc*sc*i*alias: pci:v00008086d00001516sv*sd*bc*sc*i*alias: pci:v00008086d00001511sv*sd*bc*sc*i*alias: pci:v00008086d00001510sv*sd*bc*sc*i*alias: pci:v00008086d00001527sv*sd*bc*sc*i*alias: pci:v00008086d0000150Fsv*sd*bc*sc*i*alias: pci:v00008086d0000150Esv*sd*bc*sc*i*alias: pci:v00008086d00001524sv*sd*bc*sc*i*alias: pci:v00008086d00001523sv*sd*bc*sc*i*alias: pci:v00008086d00001522sv*sd*bc*sc*i*alias: pci:v00008086d00001521sv*sd*bc*sc*i*alias: pci:v00008086d00001539sv*sd*bc*sc*i*alias: pci:v00008086d0000157Csv*sd*bc*sc*i*alias: pci:v00008086d0000157Bsv*sd*bc*sc*i*alias: pci:v00008086d00001538sv*sd*bc*sc*i*alias: pci:v00008086d00001537sv*sd*bc*sc*i*alias: pci:v00008086d00001536sv*sd*bc*sc*i*alias: pci:v00008086d00001533sv*sd*bc*sc*i*alias: pci:v00008086d00001F45sv*sd*bc*sc*i*alias: pci:v00008086d00001F41sv*sd*bc*sc*i*alias: pci:v00008086d00001F40sv*sd*bc*sc*i*depends: hwmon,dcasupported: externalvermagic: 2.6.32.12-0.7-default SMP mod_unload modversionsparm: InterruptThrottleRate:Maximum interrupts per second, per vector, (max 100000), default 3=adaptive (array of int) parm: IntMode:Change Interrupt Mode (0=Legacy, 1=MSI, 2=MSI-X), default 2 (array of int)parm: Node:set the starting node to allocate memory on, default -1 (array of int)parm: LLIPort:Low Latency Interrupt TCP Port (0-65535), default 0=off (array of int)parm: LLIPush:Low Latency Interrupt on TCP Push flag (0,1), default 0=off (array of int)parm: LLISize:Low Latency Interrupt on Packet Size (0-1500), default 0=off (array of int)parm: RSS:Number of Receive-Side Scaling Descriptor Queues (0-8), default 1, 0=number of cpus (array of int)parm: VMDQ:Number of Virtual Machine Device Queues: 0-1 = disable, 2-8 enable, default 0 (array of int)parm: max_vfs:Number of Virtual Functions: 0 = disable, 1-7 enable, default 0 (array of int)parm: MDD:Malicious Driver Detection (0/1), default 1 = enabled. Only available when max_vfs is greater than 0 (array of int) parm: QueuePairs:Enable Tx/Rx queue pairs for interrupt handling (0,1), default 1=on (array of int)parm: EEE:Enable/disable on parts that support the feature (array of int)parm: DMAC:Disable or set latency for DMA Coalescing ((0=off, 1000-10000(msec), 250, 500 (usec)) (array of int)parm: LRO:Large Receive Offload (0,1), default 0=off (array of int)parm: enable_debug:Set to 1 to enable debug tracing into the syslog (uint)parm: debug:Debug level (0=none, ..., 16=all) (int)linux:~ #⽅法⼆:1:dmesg | grep ethx如:linux:~ # dmesg | grep eth17[ 30.351872] igb 0000:0a:00.1: eth17: (PCIe:2.5Gb/s:Width x4) 00:0b:ab:52:fb:b3[ 30.351952] igb 0000:0a:00.1: eth17: PBA No: ffffff-0ff[429171.548763] device eth17 entered promiscuous mode[429173.116530] igb: eth17 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX [429173.118867] ADDRCONF(NETDEV_UP): eth17: link is not ready[429173.121176] ADDRCONF(NETDEV_CHANGE): eth17: link becomes ready [429183.236266] eth17: no IPv6 routers present[1641503.272376] igb 0000:0a:00.1: eth17: (PCIe:2.5Gb/s:Width x4) 00:0b:ab:52:fb:b3 [1641503.272460] igb 0000:0a:00.1: eth17: PBA No: ffffff-0ff[1641598.356110] device eth17 entered promiscuous mode[1641598.369229] igb: eth17 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX [1641598.372636] ADDRCONF(NETDEV_UP): eth17: link is not ready [1641598.374978] ADDRCONF(NETDEV_CHANGE): eth17: link becomes ready [1641608.564181] eth17: no IPv6 routers present[1701779.787471] igb 0000:0a:00.1: eth17: (PCIe:2.5GT/s:Width x4)[1701779.787473] igb 0000:0a:00.1: eth17: MAC: 00:0b:ab:52:fb:b3[1701779.787555] igb 0000:0a:00.1: eth17: PBA No: FFFFFF-0FF[1702124.805650] device eth17 entered promiscuous mode[1702141.839131] ADDRCONF(NETDEV_UP): eth17: link is not ready [1702144.057474] igb: eth17 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: None [1702144.059425] ADDRCONF(NETDEV_CHANGE): eth17: link becomes ready [1702154.705520] eth17: no IPv6 routers present[1712008.630151] igb 0000:0a:00.1: eth17: (PCIe:2.5GT/s:Width x4)[1712008.630153] igb 0000:0a:00.1: eth17: MAC: 00:0b:ab:52:fb:b3[1712008.630235] igb 0000:0a:00.1: eth17: PBA No: FFFFFF-0FF[1712100.136186] device eth17 entered promiscuous mode[1712101.873823] ADDRCONF(NETDEV_UP): eth17: link is not ready [1712104.159209] igb: eth17 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: None [1712104.161548] ADDRCONF(NETDEV_CHANGE): eth17: link becomes ready [1712114.854722] eth17: no IPv6 routers presentlinux:~ #2:使⽤ modinfo igb 查看驱动信息(结果同⽅法⼀中的)。
linux查看网卡型号、驱动版本、队列数

一、如何查看网卡生产厂家和型号?lspci命令查看基本信息 lspci,详细信息lspci -vvv00:00.0 Host bridge: Intel Corporation 5520 I/O Hub to ESI Port (rev 13)00:01.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 1 (rev 13)00:02.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 2 (rev 13)00:03.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 3 (rev 13)00:04.0 PCI bridge: Intel Corporation 5520/X58 I/O Hub PCI Express Root Port 4 (rev 13)00:05.0 PCI bridge: Intel Corporation 5520/X58 I/O Hub PCI Express Root Port 5 (rev 13)00:06.0 PCI bridge: Intel Corporation 5520/X58 I/O Hub PCI Express Root Port 6 (rev 13)00:07.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 7 (rev 13)00:08.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 8 (rev 13)00:09.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 9 (rev 13)00:0a.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 10 (rev 13)00:0d.0 Host bridge: Intel Corporation Device 343a (rev 13)00:0d.1 Host bridge: Intel Corporation Device 343b (rev 13)00:0d.2 Host bridge: Intel Corporation Device 343c (rev 13)00:0d.3 Host bridge: Intel Corporation Device 343d (rev 13)00:0d.4 Host bridge: Intel Corporation 5520/5500/X58 Physical Layer Port 0 (rev 13)00:0d.5 Host bridge: Intel Corporation 5520/5500 Physical Layer Port 1 (rev 13)00:0d.6 Host bridge: Intel Corporation Device 341a (rev 13)00:0e.0 Host bridge: Intel Corporation Device 341c (rev 13)00:0e.1 Host bridge: Intel Corporation Device 341d (rev 13)00:0e.2 Host bridge: Intel Corporation Device 341e (rev 13)00:0e.3 Host bridge: Intel Corporation Device 341f (rev 13)00:0e.4 Host bridge: Intel Corporation Device 3439 (rev 13)00:14.0 PIC: Intel Corporation 5520/5500/X58 I/O Hub System Management Registers (rev 13)00:14.1 PIC: Intel Corporation 5520/5500/X58 I/O Hub GPIO and Scratch Pad Registers (rev 13)00:14.2 PIC: Intel Corporation 5520/5500/X58 I/O Hub Control Status and RAS Registers (rev 13)00:1c.0 PCI bridge: Intel Corporation 82801JI (ICH10 Family) PCI Express Root Port 100:1c.4 PCI bridge: Intel Corporation 82801JI (ICH10 Family) PCI Express Root Port 500:1d.0 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #100:1d.1 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #200:1d.2 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #300:1d.3 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #600:1d.7 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB2 EHCI Controller #100:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 90)00:1f.0 ISA bridge: Intel Corporation 82801JIB (ICH10) LPC Interface Controller01:03.0 VGA compatible controller: ATI Technologies Inc ES1000 (rev 02) 02:00.0 System peripheral: Hewlett-Packard Company iLO3 Slave instrumentation & System support (rev 04)02:00.2 System peripheral: Hewlett-Packard Company iLO3 Management Processor Support and Messaging (rev 04)02:00.4 USB Controller: Hewlett-Packard Company Proliant iLO2/iLO3 virtual USB controller (rev 01)03:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20)03:00.1 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20)04:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20)04:00.1 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20)05:00.0 RAID bus controller: Hewlett-Packard Company Smart Array G6 controllers (rev 01)09:00.0 Ethernet controller: Intel Corporation 82599EB 10-GigabitSFI/SFP+ Network Connection (rev 01)09:00.1 Ethernet controller: Intel Corporation 82599EB 10-GigabitSFI/SFP+ Network Connection (rev 01)机器上有Broadcom的千兆网卡和intel的万兆网卡,型号分别是BCM5709和82599EB二、查看网卡驱动两个办法:方法1:lspci -vvv09:00.1 Ethernet controller: Intel Corporation 82599EB 10-GigabitSFI/SFP+ Network Connection (rev 01)Subsystem: Intel Corporation Ethernet Server Adapter X520-2 Physical Slot: 2Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr+ Stepping- SERR- FastB2B- DisINTx+Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-Latency: 0, Cache Line Size: 64 bytesInterrupt: pin B routed to IRQ 34Region 0: Memory at fbd00000 (64-bit, non-prefetchable)[size=1M]Region 2: I/O ports at 5020 [size=32]Region 4: Memory at fbcf0000 (64-bit, non-prefetchable)[size=16K]Capabilities: [40] Power Management version 3Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mAPME(D0+,D1-,D2-,D3hot+,D3cold-)Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=1 PME- Capabilities: [50] MSI: Enable- Count=1/1 Maskable+ 64bit+Address: 0000000000000000 Data: 0000Masking: 00000000 Pending: 00000000Capabilities: [70] MSI-X: Enable+ Count=64 Masked-Vector table: BAR=4 offset=00000000PBA: BAR=4 offset=00002000Capabilities: [a0] Express (v2) Endpoint, MSI 00DevCap: MaxPayload 512 bytes, PhantFunc 0, Latency L0s <512ns, L1 <64usExtTag- AttnBtn- AttnInd- PwrInd- RBE+ FLReset+ DevCtl: Report errors: Correctable+ Non-Fatal+ Fatal+ Unsupported+RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop+ FLReset-MaxPayload 256 bytes, MaxReadReq 4096 bytes DevSta: CorrErr+ UncorrErr- FatalErr- UnsuppReq+ AuxPwr- TransPend-LnkCap: Port #0, Speed 5GT/s, Width x8, ASPM L0s, Latency L0 unlimited, L1 <32usClockPM- Surprise- LLActRep- BwNot-LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- Retrain- CommClk-ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt- LnkSta: Speed 5GT/s, Width x8, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-DevCap2: Completion Timeout: Range ABCD, TimeoutDis+ DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis- LnkCtl2: Target Link Speed: 2.5GT/s, EnterCompliance- SpeedDis-, Selectable De-emphasis: -6dBTransmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS-Compliance De-emphasis: -6dBLnkSta2: Current De-emphasis Level: -6dBCapabilities: [100] Advanced Error ReportingUESta: DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq+ ACSViol-UEMsk: DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq+ ACSViol-UESvrt: DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-CESta: RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr+CEMsk: RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr-AERCap: First Error Pointer: 00, GenCap+ CGenEn- ChkCap+ ChkEn-Capabilities: [140] Device Serial Number90-e2-ba-ff-ff-17-8f-48Capabilities: [150] Alternative Routing-ID Interpretation (ARI) ARICap: MFVC- ACS-, Next Function: 0ARICtl: MFVC- ACS-, Function Group: 0Capabilities: [160] Single Root I/O Virtualization (SR-IOV) IOVCap: Migration-, Interrupt Message Number: 000IOVCtl: Enable- Migration- Interrupt- MSE- ARIHierarchy-IOVSta: Migration-Initial VFs: 64, Total VFs: 64, Number of VFs: 64, Function Dependency Link: 01VF offset: 128, stride: 2, Device ID: 10edSupported Page Size: 00000553, System Page Size: 00000001Region 0: Memory at 00000000e4300000 (64-bit, prefetchable)Region 3: Memory at 00000000e4400000 (64-bit, prefetchable)VF Migration: offset: 00000000, BIR: 0 Kernel driver in use: ixgbeKernel modules: ixgbe方法2:lsmodModule Size Used bypf_ring 368053 48ipmi_devintf 8023 0ipmi_si 42399 0ipmi_msghandler 35958 2 ipmi_devintf,ipmi_sibonding 122971 0ipv6 322986 1 bondingpower_meter 9349 0hpwdt 6990 0hpilo 7903 0sg 30218 0bnx2 77468 0ixgbe 200013 0dca 7195 1 ixgbemdio 4738 1 ixgbemicrocode 112877 0serio_raw 4824 0iTCO_wdt 12092 0iTCO_vendor_support 3062 1 iTCO_wdti7core_edac 18094 0edac_core 46701 1 i7core_edacshpchp 33488 0ext3 133515 7jbd 54520 1 ext3mbcache 7990 1 ext3hpsa 51776 8radeon 926887 1ttm 67043 1 radeondrm_kms_helper 34744 1 radeondrm 213765 3 radeon,ttm,drm_kms_helper hwmon 2496 2 power_meter,radeoni2c_algo_bit 5768 1 radeoni2c_core 31274 4radeon,drm_kms_helper,drm,i2c_algo_bitdm_mod 75507 0三、如何查看网卡驱动版本也有两种办法:方法1) modinfomodinfo bnx2filename: /lib/modules/2.6.32-131.21.1.tb477.el6.x86_64/kernel/ drivers/net/bnx2.kofirmware: bnx2/bnx2-rv2p-09ax-6.0.17.fwfirmware: bnx2/bnx2-rv2p-09-6.0.17.fwfirmware: bnx2/bnx2-mips-09-6.2.1a.fwfirmware: bnx2/bnx2-rv2p-06-6.0.15.fwfirmware: bnx2/bnx2-mips-06-6.2.1.fwversion: 2.1.6license: GPLdescription: Broadcom NetXtreme II BCM5706/5708/5709/5716 Driver author: Michael Chan <mchan@>srcversion: ECE369A7D0A9096343A3B3Falias: pci:v000014E4d0000163Csv*sd*bc*sc*i*alias: pci:v000014E4d0000163Bsv*sd*bc*sc*i*alias: pci:v000014E4d0000163Asv*sd*bc*sc*i*alias: pci:v000014E4d00001639sv*sd*bc*sc*i*alias: pci:v000014E4d000016ACsv*sd*bc*sc*i*alias: pci:v000014E4d000016AAsv*sd*bc*sc*i*alias: pci:v000014E4d000016AAsv0000103Csd00003102bc*sc*i* alias: pci:v000014E4d0000164Csv*sd*bc*sc*i*alias: pci:v000014E4d0000164Asv*sd*bc*sc*i*alias: pci:v000014E4d0000164Asv0000103Csd00003106bc*sc*i* alias: pci:v000014E4d0000164Asv0000103Csd00003101bc*sc*i* depends:vermagic: 2.6.32-131.21.1.tb477.el6.x86_64 SMP mod_unload modversionsparm: disable_msi:Disable Message Signaled Interrupt (MSI) (int)modinfo ixgbefilename: /lib/modules/2.6.32-131.21.1.tb477.el6.x86_64/kernel/ drivers/net/ixgbe/ixgbe.koversion: 3.0.12-k2-1license: GPLdescription: Intel(R) 10 Gigabit PCI Express Network Driver author: Intel Corporation, <linux.nics@> srcversion: 612CB82E4460BB4174B1E2Calias: pci:v00008086d00001528sv*sd*bc*sc*i*alias: pci:v00008086d000010F8sv*sd*bc*sc*i*alias: pci:v00008086d0000151Csv*sd*bc*sc*i*alias: pci:v00008086d00001529sv*sd*bc*sc*i*alias: pci:v00008086d0000152Asv*sd*bc*sc*i*alias: pci:v00008086d000010F9sv*sd*bc*sc*i*alias: pci:v00008086d00001514sv*sd*bc*sc*i*alias: pci:v00008086d00001507sv*sd*bc*sc*i*alias: pci:v00008086d000010FBsv*sd*bc*sc*i*alias: pci:v00008086d00001517sv*sd*bc*sc*i*alias: pci:v00008086d000010FCsv*sd*bc*sc*i*alias: pci:v00008086d000010F7sv*sd*bc*sc*i*alias: pci:v00008086d00001508sv*sd*bc*sc*i*alias: pci:v00008086d000010DBsv*sd*bc*sc*i*alias: pci:v00008086d000010F4sv*sd*bc*sc*i*alias: pci:v00008086d000010E1sv*sd*bc*sc*i*alias: pci:v00008086d000010F1sv*sd*bc*sc*i*alias: pci:v00008086d000010ECsv*sd*bc*sc*i*alias: pci:v00008086d000010DDsv*sd*bc*sc*i*alias: pci:v00008086d0000150Bsv*sd*bc*sc*i*alias: pci:v00008086d000010C8sv*sd*bc*sc*i*alias: pci:v00008086d000010C7sv*sd*bc*sc*i*alias: pci:v00008086d000010C6sv*sd*bc*sc*i*alias: pci:v00008086d000010B6sv*sd*bc*sc*i*depends: mdio,dcavermagic: 2.6.32-131.21.1.tb477.el6.x86_64 SMP mod_unload modversionsparm: IntMode:Change Interrupt Mode (0=Legacy, 1=MSI,2=MSI-X), default 2 (array of int)parm: FdirMode:Flow Director filtering modes (0=Off,1=Hashing) default 1 (array of int)parm: max_vfs:Maximum number of virtual functions to allocate per physical function (uint)方法2: ethtoolethtool -i eth3driver: bnx2version: 2.1.6firmware-version: bc 5.2.2 NCSI 2.0.6bus-info: 0000:03:00.1ethtool -i eth0driver: ixgbeversion: 3.0.12-k2-1firmware-version: 3.13-0bus-info: 0000:09:00.0四、如何查看网络接口队列数cat /proc/interrupts | grep eth053: 4143055 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 IR-PC I-MSI-edge eth0-TxRx-054: 20 4143035 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 IR-PC I-MSI-edge eth0-TxRx-155: 20 0 4143035 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 IR-PC I-MSI-edge eth0-TxRx-256: 20 0 0 4143035 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 IR-PC I-MSI-edge eth0-TxRx-357: 20 0 0 0 4143035 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 IR-PC I-MSI-edge eth0-TxRx-458: 20 0 0 0 0 41430 35 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 IR-PC I-MSI-edge eth0-TxRx-559: 20 0 0 0 0 0 4143035 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 IR-PC I-MSI-edge eth0-TxRx-660: 20 0 0 0 0 0 0 4143035 0 0 0 0 0 0 0 0 0 0I-MSI-edge eth0-TxRx-761: 20 0 0 0 0 0 0 0 4143035 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 IR-PC I-MSI-edge eth0-TxRx-862: 20 0 0 0 0 0 0 0 0 4143035 0 0 0 0 0 0 0 0 0 0 0 0 0 0 IR-PC I-MSI-edge eth0-TxRx-963: 20 0 0 0 0 0 0 0 0 0 4143035 0 0 0 0 0 0 0 0 0 0 0 0 0 IR-PC I-MSI-edge eth0-TxRx-1064: 20 0 0 0 0 0 0 0 0 0 0 4143035 0 0 0 0 0 0 0 0 0 0 0 0 IR-PC I-MSI-edge eth0-TxRx-1165: 20 0 0 0 0 0 0 0 0 0 0 0 4143035 0 0 0 0 0 0 0 0 0 0 0 IR-PC I-MSI-edge eth0-TxRx-1266: 20 0 0 0 0 0 0 0 0 0 0 0 0 4143035 0 0 0 0 0 0 0 0 0 0 IR-PC I-MSI-edge eth0-TxRx-1367: 20 0 0 0 0 0 0 0 0 0 0 0 0 0 4143035 0 0 0 0 0 0 0 0 0 IR-PC I-MSI-edge eth0-TxRx-1468: 20 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4143035 0 0 0 0 0 0 0 0 IR-PC I-MSI-edge eth0-TxRx-1569: 20 0 0 0 0 0 0 0 0 0 0 00 0 0 0 0 0 IR-PC I-MSI-edge eth0-TxRx-1670: 20 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4143035 0 0 0 0 0 0 IR-PC I-MSI-edge eth0-TxRx-1771: 20 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4143035 0 0 0 0 0 IR-PC I-MSI-edge eth0-TxRx-1872: 20 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4143035 0 0 0 0 IR-PC I-MSI-edge eth0-TxRx-1973: 20 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4143035 0 0 0 IR-PC I-MSI-edge eth0-TxRx-2074: 20 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4143035 0 0 IR-PC I-MSI-edge eth0-TxRx-2175: 20 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4143035 0 IR-PC I-MSI-edge eth0-TxRx-2276: 20 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4143035 IR-PC I-MSI-edge eth0-TxRx-2377: 38 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 IR-PC I-MSI-edge eth0:lsc可以看到有24个队列另外,ethtool也可以看到: ethtool -S eth0NIC statistics:rx_packets: 0tx_packets: 0rx_bytes: 0tx_bytes: 0rx_pkts_nic: 0tx_pkts_nic: 0rx_bytes_nic: 0tx_bytes_nic: 0lsc_int: 38tx_busy: 0non_eop_descs: 0rx_errors: 0tx_errors: 0rx_dropped: 0tx_dropped: 0multicast: 0broadcast: 0rx_no_buffer_count: 0collisions: 0rx_over_errors: 0rx_crc_errors: 0rx_frame_errors: 0hw_rsc_aggregated: 0hw_rsc_flushed: 0fdir_match: 0fdir_miss: 0rx_fifo_errors: 0rx_missed_errors: 0tx_aborted_errors: 0tx_carrier_errors: 0tx_fifo_errors: 0tx_heartbeat_errors: 0tx_timeout_count: 0tx_restart_queue: 0rx_long_length_errors: 0 rx_short_length_errors: 0 tx_flow_control_xon: 0rx_flow_control_xon: 0tx_flow_control_xoff: 0 rx_flow_control_xoff: 0rx_csum_offload_errors: 0 alloc_rx_page_failed: 0 alloc_rx_buff_failed: 0 rx_no_dma_resources: 0fcoe_bad_fccrc: 0rx_fcoe_dropped: 0rx_fcoe_packets: 0rx_fcoe_dwords: 0tx_fcoe_packets: 0tx_fcoe_dwords: 0tx_queue_0_packets: 0tx_queue_0_bytes: 0tx_queue_1_packets: 0tx_queue_1_bytes: 0tx_queue_2_packets: 0tx_queue_2_bytes: 0tx_queue_3_packets: 0tx_queue_3_bytes: 0tx_queue_4_packets: 0tx_queue_4_bytes: 0tx_queue_5_packets: 0tx_queue_5_bytes: 0tx_queue_6_packets: 0tx_queue_6_bytes: 0tx_queue_7_packets: 0tx_queue_7_bytes: 0tx_queue_8_packets: 0tx_queue_8_bytes: 0tx_queue_9_packets: 0tx_queue_9_bytes: 0tx_queue_10_packets: 0tx_queue_10_bytes: 0tx_queue_11_packets: 0tx_queue_11_bytes: 0tx_queue_12_packets: 0tx_queue_12_bytes: 0tx_queue_13_packets: 0tx_queue_13_bytes: 0tx_queue_14_packets: 0tx_queue_14_bytes: 0tx_queue_15_packets: 0tx_queue_15_bytes: 0tx_queue_16_packets: 0tx_queue_16_bytes: 0tx_queue_17_bytes: 0 tx_queue_18_packets: 0 tx_queue_18_bytes: 0 tx_queue_19_packets: 0 tx_queue_19_bytes: 0 tx_queue_20_packets: 0 tx_queue_20_bytes: 0 tx_queue_21_packets: 0 tx_queue_21_bytes: 0 tx_queue_22_packets: 0 tx_queue_22_bytes: 0 tx_queue_23_packets: 0 tx_queue_23_bytes: 0 rx_queue_0_packets: 0 rx_queue_0_bytes: 0rx_queue_1_packets: 0 rx_queue_1_bytes: 0rx_queue_2_packets: 0 rx_queue_2_bytes: 0rx_queue_3_packets: 0 rx_queue_3_bytes: 0rx_queue_4_packets: 0 rx_queue_4_bytes: 0rx_queue_5_packets: 0 rx_queue_5_bytes: 0rx_queue_6_packets: 0 rx_queue_6_bytes: 0rx_queue_7_packets: 0 rx_queue_7_bytes: 0rx_queue_8_packets: 0 rx_queue_8_bytes: 0rx_queue_9_packets: 0 rx_queue_9_bytes: 0rx_queue_10_packets: 0 rx_queue_10_bytes: 0 rx_queue_11_packets: 0 rx_queue_11_bytes: 0 rx_queue_12_packets: 0 rx_queue_12_bytes: 0 rx_queue_13_packets: 0 rx_queue_13_bytes: 0 rx_queue_14_packets: 0 rx_queue_14_bytes: 0rx_queue_15_bytes: 0 rx_queue_16_packets: 0 rx_queue_16_bytes: 0 rx_queue_17_packets: 0 rx_queue_17_bytes: 0 rx_queue_18_packets: 0 rx_queue_18_bytes: 0 rx_queue_19_packets: 0 rx_queue_19_bytes: 0 rx_queue_20_packets: 0 rx_queue_20_bytes: 0 rx_queue_21_packets: 0 rx_queue_21_bytes: 0 rx_queue_22_packets: 0 rx_queue_22_bytes: 0 rx_queue_23_packets: 0 rx_queue_23_bytes: 0。
LINUX操作系统版本怎么看

LINUX操作系统版本怎么看
LINUX操作系统作为一种自由开放源代码的操作系统,具有众多版本和发行版。
了解当前系统所使用的LINUX版本对系统管理、软件兼容性以及安全性非常重要。
本文将介绍在LINUX操作系统上如何查看当前系统的版本信息。
方法一:使用命令行查看版本信息
在LINUX操作系统中,可以使用命令行来查看当前系统的版本信息。
以下是几个常用的命令:
1. 使用lsb_release命令
lsb_release命令是一个用来查看LINUX发行版信息的工具。
要使用这个命令,只需打开终端,输入以下命令并按下回车键:
lsb_release -a
该命令将显示有关系统发行版的信息,包括发行版编号、发行版描述和发行版
代码名称。
通过这些信息,您可以了解到正在使用的LINUX操作系统的具体版本。
2. 使用cat命令查看/proc/version文件
/proc/version是一个存储了有关内核和GCC版本的文件。
通过使用cat命令
查看该文件,可以获取有关系统版本的信息。
打开终端,并输入以下命令:cat /proc/version
该命令将显示详细的内核和GCC版本信息,包括内核版本号、GCC版本和构
建日期等。
通过这些信息,您可以获得当前LINUX操作系统的更详细的版本信息。
方法二:使用图形界面查看版本信息
如果您更倾向于使用图形界面来查看LINUX操作系统的版本信息,以下是几种常用的方法:
1. 使用系统设置
大多数LINUX发行版都提供了一个。
如何在Linux终端中查看系统信息

如何在Linux终端中查看系统信息Linux终端是Linux操作系统中一种非常重要的工具,它不仅可以执行各种命令和操作,还能够提供系统信息以供用户参考。
本文将介绍如何在Linux终端中查看系统信息的方法和命令。
一、查看系统基本信息1. 使用 uname 命令uname命令允许我们获取有关内核和操作系统的基本信息。
在终端中输入以下命令并按回车键:```bashuname -a```此命令将显示包括内核版本、主机名、操作系统版本和架构等信息。
2. 使用 hostnamectl 命令hostnamectl命令允许我们查看和修改系统的主机名和相关信息。
在终端中输入以下命令并按回车键:```bashhostnamectl```此命令将显示主机名、操作系统版本、内核版本、硬件架构和时间相关信息。
3. 使用 lsb_release 命令lsb_release命令用于显示当前系统的发行版信息。
在终端中输入以下命令并按回车键:```bashlsb_release -a```此命令将显示操作系统的发行版名称、版本号和描述等信息。
二、查看硬件信息1. 使用 lspci 命令lspci命令用于显示计算机的PCI总线配置信息,包括连接到PCI总线的设备列表。
在终端中输入以下命令并按回车键:```bashlspci```此命令将显示包括设备名称、供应商信息和设备标识等硬件信息。
2. 使用 lsusb 命令lsusb命令用于显示连接到USB总线的设备列表。
在终端中输入以下命令并按回车键:```bashlsusb```此命令将显示包括设备名称、供应商信息和设备标识等USB设备信息。
3. 使用 lscpu 命令lscpu命令用于显示CPU架构和详细信息。
在终端中输入以下命令并按回车键:```bashlscpu```此命令将显示处理器架构、核心数量、线程数量和缓存信息等CPU 相关信息。
三、查看内存和磁盘信息1. 使用 free 命令free命令用于显示系统的内存使用情况。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
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,<linux.nics@>
# 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 \ /儒道至圣。