Tuesday, May 10, 2011

Redhat: Check NIC speed/duplex

[root]# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:50:56:A5:6E:28
inet addr:155.53.154.197 Bcast:155.53.155.255 Mask:255.255.254.0
inet6 addr: fe80::250:56ff:fea5:6e28/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2657820622 errors:0 dropped:0 overruns:0 frame:0
TX packets:2174534933 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3362843874812 (3.0 TiB) TX bytes:1238184921670 (1.1 TiB)
Base address:0x2000 Memory:d8920000-d8940000
[root]# 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: 0
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: d
Wake-on: d
Current message level: 0x00000007 (7)
Link detected: yes
[root]#