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
HowTo: Create CSR using OpenSSL Without Prompt (Non-Interactive)
Viewed 735 times since Mon, Feb 18, 2019
ZPOOL: Remove an existing zpool
Viewed 584 times since Sun, Jun 3, 2018
VMWare tools free
Viewed 1638 times since Mon, Jul 16, 2018
How to automate SSH login with password? ssh autologin
Viewed 459 times since Fri, Jun 8, 2018
Jak ustawić LVM, jak robić snapshoty oraz automatycznie powiększać LV, czyli małe howto
Viewed 1297 times since Sun, May 20, 2018
LVM: Remove a Filesystem / Logical Volume
Viewed 630 times since Sat, Jun 2, 2018
Linux get the list of FC HBA’s and WWPN
Viewed 912 times since Tue, May 22, 2018
How To Create a Linux Swap File
Viewed 602 times since Fri, Jun 8, 2018
Migrate a Linux System from Red Hat Enterprise to CentOS
Viewed 79 times since Fri, May 15, 2020
How to enable automatic security updates on CentOS 7 with yum-cron
Viewed 430 times since Fri, Oct 26, 2018