• 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 not found

by admin

Ethtool is a small utility for examining and tuning the settings of Ethernet-based network interfaces. With ethtool, it is possible to control various parameters, such as:

  • Speed
  • Media type
  • Duplex operation
  • Getting/setting EEPROM register content
  • Hardware check summing
  • Wake-on-LAN

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. Beginners guide to Device Mapper (DM) multipathing
  2. How to scan newly Assigned LUNs in Multipathd under CentOS / RHEL
  3. How to create a networking bridge under CentOS/RHEL
  4. CentOS / RHEL 6 : How to password protect grub (Password-Protected Booting)
  5. Status Commands in Linux – date, ps, who, uptime, finger, rup, ruser
  6. iotop Command Examples in Linux
  7. How to Create yum Repository in CentOS/RHEL
  8. How to Setup SSH keys for “passwordless” SSH Login on CentOS/RHEL
  9. User Unable To Edit crontab, Error: “/tmp/crontab.Lm34gsJV: Permission denied”
  10. pvcreate Fails With Error: “Device /dev/mapper/mpatha Not Found (or Ignored By Filtering).”

You May Also Like

Primary Sidebar

Recent Posts

  • nixos-rebuild Command Examples in Linux
  • nixos-option: Command Examples in Linux
  • nixos-container : Command Examples in Linux
  • nitrogen Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright