To install the ethtool
utility on an Ubuntu or Debian Linux system, use the apt-get
package manager. First, update the package manager's list of available packages:
sudo apt-get update
Then, install the ethtool
package:
sudo apt-get install ethtool
The ethtool
utility allows you to view and modify various settings for Ethernet devices on your system. To view the settings for a specific Ethernet device, use the ethtool
command followed by the name of the device:
ethtool eth0
This will display a list of settings for the eth0
device, including the device's speed, duplex mode, and supported features.
To set a specific setting for an Ethernet device, use the ethtool
command followed by the -s
option and the name of the setting you want to change. For example, to set the speed of the eth0
device to 100 Mbps:
ethtool -s eth0 speed 100
You can use the ethtool
command with various options to view and modify different settings for Ethernet devices on your system. For a full list of options, use the ethtool
command followed by the --help
option.