How do I add ethtool settings to a network device permanently?

ethtool can be used to set options for many types of Ethernet devices. The /etc/sysconfig/network-scripts/ifcfg-ethX files can have the ethtool settings added to them so that the settings are saved and used every time the device is activated.

For example, the command:
ethtool speed 100 duplex full autoneg off

sets the eth0 device to 100Mbs, full duplex, with auto negotiation off. To have the initialization scripts set this every time the eth0 device is activated, add a line to the /etc/sysconfig/network-scripts/ifcfg-eth0 file:

ETHTOOL_OPTS="speed 100 duplex full autoneg off"




There are no attachments for this article.
Related Articles RSS Feed
30 Handy Bash Shell Aliases For Linux / Unix / MacOS
Viewed 3114 times since Thu, Feb 11, 2021
ubuntu How to reset lost root password on Ubuntu 16.04 Xenial Xerus Linux
Viewed 7559 times since Tue, Dec 8, 2020
List DNS records, nameservers of a domain from command line
Viewed 1377 times since Sun, Sep 30, 2018
linux ssh Remotely Initiated Reverse SSH Tunnel
Viewed 2071 times since Wed, Apr 22, 2020
20 Linux Command Tips and Tricks That Will Save You A Lot of Time linux
Viewed 3955 times since Thu, Apr 18, 2019
Linux - How to monitor memory usage
Viewed 2348 times since Fri, Jun 8, 2018
Creating SWAP partition using FDISK & FALLOCATE commands
Viewed 1931 times since Thu, Jan 16, 2020
stunnel How To Set Up an SSL Tunnel Using Stunnel on Ubuntu
Viewed 828 times since Sun, Dec 6, 2020
logrotate How log rotation works with logrotate
Viewed 8239 times since Sun, Jan 12, 2020
RHEL: Services basic management - systemd
Viewed 17220 times since Sat, Jun 2, 2018