Linux Scroll

Just another WordPress.com site

ethtool

ethtool – Display or change ethernet card settings.
ethtool will only work against physical ethernet adapters.

# 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: pumbag
Wake-on: g
Current message level: 0x00000001 (1)
Link detected: yes

Gathering statistics:

# ethtool -S eth0


NIC statistics:
tx_packets: 182368
rx_packets: 160421
tx_errors: 0
rx_errors: 0
rx_missed: 0
align_errors: 0
tx_single_collisions: 0
tx_multi_collisions: 0
unicast: 216722
broadcast: 28439
multicast: 59472
tx_aborted: 0
tx_underrun: 0

tx = transmitted
rx = received

Blinking eth0 every 10 seconds:

# ethtool -p eth0 10

Testing NIC:

# ethtool -t eth0 [offline|online]

nvram test (online) 0
link test (online) 0

register test (offline) 0
memory test (offline) 0
loopback test (offline) 0
interrupt test (offline) 0
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: