The ethtool
command is a powerful utility in Linux used to query and control network device driver and hardware settings. It allows users to retrieve information about network interfaces, configure settings, and diagnose network issues.
The basic syntax of the ethtool
command is as follows:
ethtool [options] [arguments]
-s, --set-priv-flags
: Set private flags for the device.-i, --driver
: Display driver information for the specified device.-p, --identify
: Blink the LED on the specified device for identification.-t, --test
: Run self-tests on the specified device.-a, --show-pause
: Show pause frame settings.-S, --statistics
: Display statistics for the specified device.Here are some practical examples of using the ethtool
command:
ethtool eth0
ethtool -i eth0
ethtool -p eth0
ethtool -S eth0
ethtool -t eth0
ethtool
with root privileges for full access to all features.man ethtool
to access the manual and explore more options and detailed usage.ethtool
with other network diagnostic tools like ping
or traceroute
for comprehensive network troubleshooting.