标签归档:一句话

Linux下查看网卡设置信息

【一句话】Linux下可以通过ethtool和ifconfig命令直接查看网卡信息。

举例:
[root@dl380 ~]# ethtool eth0
Settings for eth0:
 Supported ports: [ TP ]
 Supported link modes:   10baseT/Half 10baseT/Full
                         100baseT/Half 100baseT/Full
                         1000baseT/Full
 Supports auto-negotiation: Yes
 Advertised link modes:  10baseT/Half 10baseT/Full
                         100baseT/Half 100baseT/Full
                         1000baseT/Full
 Advertised auto-negotiation: Yes
 Speed: 1000Mb/s
 Duplex: Full
 Port: Twisted Pair
 PHYAD: 1
 Transceiver: internal
 Auto-negotiation: on
 Supports Wake-on: g
 Wake-on: g
 Link detected: yes
[root@dl380 ~]# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 98:4B:E1:0B:F4:EE 
          inet addr:10.56.249.239  Bcast:10.56.249.255  Mask:255.255.255.128
          inet6 addr: fe80::9a4b:e1ff:fe0b:f4ee/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:75657591 errors:0 dropped:0 overruns:0 frame:0
          TX packets:185444588 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:13823403493 (12.8 GiB)  TX bytes:34495531568 (32.1 GiB)
          Interrupt:169 Memory:f4000000-f4012100

Linux下查看网卡型号

【一句话】在Linux下可以通过kudzu命令查看网卡型号,如果提示命令没有找到,可以通过yum install kudzu命令安装。

示例:
[root@dl380 ~]# kudzu –probe –class=network

class: NETWORK
bus: PCI
detached: 0
device: eth0
driver: bnx2
desc: “Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet”
network.hwaddr: 98:4b:e1:0b:f4:ee
vendorId: 14e4
deviceId: 1639
subVendorId: 103c
subDeviceId: 7055
pciType: 1
pcidom:    0
pcibus:  3
pcidev:  0
pcifn:  0