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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • 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. How to set ulimit values for a systemd service
  2. How to configure multicast on an IP address (interface)
  3. csplit Command Examples in Linux
  4. CentOS / RHEL : How to find Logical volumes (LVs) contained in Physical Volume (PVs) in LVM
  5. Linux OS Service ‘syslog’
  6. CentOS / RHEL 7 : How to recover from deleted root entry in /etc/shadow and/or /etc/passwd files
  7. How to Reduce an LVM volume on Ubuntu
  8. Linux filesystem is filling, despite no large files or directories
  9. pkgfile Command Examples in Linux:
  10. protonvpn-cli connect Command Examples

You May Also Like

Primary Sidebar

Recent Posts

  • protonvpn-cli Command Examples in Linux
  • protonvpn-cli connect Command Examples
  • procs Command Examples in Linux
  • prlimit: command not found

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright