cheat.sheets:ethtool
# ethtool
# Display or change Ethernet device settings.
# Display Ethernet settings for a specific interface
ethtool eth0
# Change the speed to 1000Mb/s and set full-duplex mode
ethtool -s eth0 speed 1000 duplex full
# Turn off auto-negotiation on the specified interface
ethtool -s eth0 autoneg off
# Get the driver information for a specific interface
ethtool -i eth0
# Display statistics for a specific interface
ethtool -S eth0
# Display the current pause parameter for a specific interface
ethtool -a eth0
# Enable or disable Wake-on-LAN (WoL)
ethtool -s eth0 wol g # Enable
ethtool -s eth0 wol d # Disable
# Change the ring buffer settings
ethtool -G eth0 rx 4096 tx 4096
# Display all transceiver information for an interface
ethtool -m eth0
# Display supported features and their statuses
ethtool -k eth0
# Change an offload parameter for a specific interface
ethtool -K eth0 tso off
cheat:ethtool
---
syntax: bash
tags: [networking]
---
# To show statistics for the selected interface:
ethtool -S <interface>
# To show interface permanent address:
ethotool -P <interface>
# To set interface speed:
ethtool -s <interface> [ speed %d ]
# To set interface autonegotiation:
ethtool -s <interface> [ autoneg on|off ]
# To get interface errors:
ethtool -S <interface> | grep error
tldr:ethtool
# ethtool
# Display and modify Network Interface Controller (NIC) parameters.
# More information: <http://man7.org/linux/man-pages/man8/ethtool.8.html>.
# Display the current settings for an interface:
ethtool eth0
# Display the driver information for an interface:
ethtool --driver eth0
# Display all supported features for an interface:
ethtool --show-features eth0
# Display the network usage statistics for an interface:
ethtool --statistics eth0
# Blink one or more LEDs on an interface for 10 seconds:
ethtool --identify eth0 10
# 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
$
cheat.sh