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