Network

The ethtool command

Shows and changes a network card's settings: speed, duplex and link status.

Syntax

ethtool interfazTry it in the terminal →

Most useful options

-aShows the interface's pause (flow control) parameters
-iShows the card's driver, its version and its bus address
-kLists the offload features and whether each one is on
-p [N]Blinks the card's LED for N seconds so you can find it
-rRestarts link auto-negotiation, if it is enabled
-SShows card statistics: packets, errors and driver counters
-s ajustesChanges settings such as speed, duplex, autoneg or wol. It affects the live link

Copy-ready examples

$ ethtool eth0link state and current settings of the eth0 interface.

Example output

Settings for eth0:
	Speed: 1000Mb/s
	Duplex: Full
	Auto-negotiation: on
	Link detected: yes
$ ethtool -i eth0the card's driver and bus. It tells you which module handles it.
$ ethtool -S eth0 | grep -i errfilters the card's error counters. The names depend on the driver.
$ sudo ethtool -p eth0 5blinks the eth0 LED for 5 seconds.
$ sudo ethtool -s eth0 speed 100 duplex full autoneg offforces 100 Mb/s full duplex. Warning: it cuts the connection if the other end does not support that combination.

You can try them in the browser terminal: it does not touch your computer.

Common errors

MessageCauseFix
Cannot get wake-on-lan settings: Operation not permittedWithout root, ethtool cannot read the Wake-on-LAN settings. Depending on the version, the warning may use other text, such as netlink error.If you need that data, run sudo ethtool eth0.

Typical mistakes

  • Changing speed or duplex on the fly can cut the connection if the other end does not accept it. Do it with physical access or through another path.
  • The interface must exist under that name. List them with ip link and use exactly the name shown.
  • ethtool is aimed at wired Ethernet cards; on WiFi or virtual interfaces many options have no effect.

Differences from similar commands

  • ip: shows and configures addresses and whether the interface is up or down. ethtool reaches the card itself: speed, duplex and driver.
  • ifconfig: shows IP addresses and counters. It belongs to the net-tools package; ip is the tool usually used today. It does not adjust the card.
  • nmcli: manages connections through NetworkManager. ethtool talks to the driver directly.

Related commands

FAQ

What does ethtool show if you give it only the interface?

The current settings of the device: speed, duplex, auto-negotiation and whether the link is detected. To change something you need -s.

Do I need to be an administrator?

To change settings with -s, yes. Many queries work without root, although without it ethtool may not show some data, such as Wake-on-LAN.

What is the difference between -i and -S?

-i gives the driver identity: name, version and bus. -S gives operating counters: packets and errors.

Learn to actually use it

The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.

Start the free course