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

发表评论

邮箱地址不会被公开。 必填项已用*标注

机器人检查 *

分享我的最新文章标题到这里

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据