是否可以找到有关Linux卡的详细信息?
例如,我们尝试:
dmidecode | grep -i network
Function key-initiated network boot is supported
Port Type: Network Port
Port Type: Network Port
Port Type: Network Port
Port Type: Network Port
# dmidecode | grep -i eth
Type: Ethernet
Type: Ethernet
Type: Ethernet
Type: Ethernet
这个细节没有说明网卡和性能等。
关于可以提供有关网卡这些详细信息的工具的任何建议吗?
为了获得网卡的品牌/型号,通常运行:
$ lspci | grep -i Ethernet
02:01.0 Ethernet controller: Intel Corporation 82545EM Gigabit Ethernet Controller (Copper) (rev 01)
或获取NIC的更多详细信息:
$ sudo lshw -class network
*-network
description: Ethernet interface
product: 82545EM Gigabit Ethernet Controller (Copper)
vendor: Intel Corporation
physical id: 1
bus info: pci@0000:02:01.0
logical name: eth0
version: 01
serial: 00:0c:29:25:4d:0e
size: 1Gbit/s
capacity: 1Gbit/s
width: 64 bits
clock: 66MHz
capabilities: pm pcix bus_master cap_list rom ethernet physical logical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=e1000 driverversion=7.3.21-k8-NAPI duplex=full ip=192.168.5.143 latency=0 link=yes mingnt=255 multicast=yes port=twisted pair speed=1Gbit/s
resources: irq:19 memory:fd5c0000-fd5dffff memory:fdff0000-fdffffff ioport:2000(size=64) memory:fd500000-fd50ffff
对该dmesg
网络设备进行摸索也可能会有所帮助:
$ dmesg | grep eth0
[ 1.635942] e1000 0000:02:01.0 eth0: (PCI:66MHz:32-bit) 00:0c:29:25:4d:0e
[ 1.635960] e1000 0000:02:01.0 eth0: Intel(R) PRO/1000 Network Connection
[ 3.736090] e1000: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: None
[ 3.742639] 8021q: adding VLAN 0 to HW filter on device eth0
至于dmidecode
,dmidecode -t baseboard
可能会显示有关主板内置NIC的信息。
PS对于Unix SE问题,在处理硬件问题时,完整的lscpi
输出可能更有用。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句