• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

ethtool Command Examples in Linux

by admin

The ethtool is a utility for displaying and configuring Ethernet card driver and hardware settings. Changes made using ethtool are runtime changes and not persistence changes. Whether or not it is installed by default will depend on the distribution in use. The ethtool utility has a great many options for gathering information.

Syntax

The syntax of the ethtool command is:

# ethtool [options] {device name}

ethtool Command Options

The following table describes some common ethtool command options.

Option Used To
-S {interface} Show statistics for a NIC.
-i {interface} Show driver information for a NIC.
-t {interface} Execute a self-test on the NIC.
-s {interface} {setting} {value} Change some of a NIC’s settings, such as its speed and duplex mode.
-f {interface} {image} Write (“flash”) a firmware image to the NIC.

ethtool Command Examples

1. Display the current settings for an interface:

# ethtool eth0

2. Display the driver information for an interface:

# ethtool --driver eth0

3. Display all supported features for an interface:

# ethtool --show-features eth0

4. Display the network usage statistics for an interface:

# ethtool --statistics eth0

5. Blink one or more LEDs on an interface for 10 seconds:

# ethtool --identify eth0 10

6. Set the link speed, duplex mode, and parameter auto-negotiation for a given interface:

# ethtool -s eth0 speed 10|100|1000 duplex half|full autoneg on|off

7. Display the Ethernet interface driver settings using ethtool command as shown here:

# ethtool -i enp0s3

8. Modifying the Ethernet interface settings using ethtool command as shown:

# ethtool --change enp0s3 speed 10 duplex half autoneg off

Filed Under: Linux

Some more articles you might also be interested in …

  1. CentOS / RHEL : How to add a new Physical Volume to an existing Volume Group
  2. poweroff: command not found
  3. kiwi-ng Command Examples
  4. vncserver fails with “Starting VNC server: no displays configured”
  5. 7zr – File archiver with a high compression ratio (Command Examples)
  6. How to Run DNS and FTP services in a chroot Jail
  7. fselect: Find files with SQL-like queries
  8. “git ls-tree” Command Examples
  9. inotifywait Command Examples in Linux
  10. ctr Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright