LinuxCommandLibrary

ethtool

network interface configuration and diagnostics

TLDR

Show settings

$ ethtool eth0
copy
Show driver info
$ ethtool -i eth0
copy
Show features
$ ethtool -k eth0
copy
Show statistics
$ ethtool -S eth0
copy
Blink LEDs
$ ethtool -p eth0 10
copy
Set speed and duplex
$ ethtool -s eth0 speed 1000 duplex full autoneg off
copy

SYNOPSIS

ethtool [OPTIONS] device

DESCRIPTION

ethtool displays and modifies Network Interface Controller (NIC) parameters. It provides comprehensive control over Ethernet device settings, allowing administrators to query driver information, link status, hardware capabilities, and configure parameters like speed, duplex mode, and various offload features.
The tool is essential for network troubleshooting, performance tuning, and hardware diagnostics. It can enable or disable features like checksumming offload, scatter-gather I/O, and segmentation offloading that affect network throughput and CPU utilization.
ethtool works directly with network device drivers, exposing hardware-specific capabilities and statistics not available through standard networking tools.

PARAMETERS

-i, --driver

Display driver information
-k, --show-features
Show offload and other features
-K, --features
Change offload and other features
-S, --statistics
Show NIC and driver statistics
-p, --identify seconds
Blink device LEDs for identification
-s, --change
Change device settings
speed 10|100|1000|10000
Set link speed in Mbps
duplex half|full
Set duplex mode
autoneg on|off
Enable/disable auto-negotiation

CAVEATS

Not all options are supported by all drivers. Changing settings may temporarily disrupt connectivity. Some settings require the interface to be down.

HISTORY

ethtool is the standard Linux utility for examining and tuning Ethernet-based network interfaces.

SEE ALSO

ip(8), mii-tool(8), tc(8)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard