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"

 

 

source: https://sysadmincorner.wordpress.com/category/linux/networking/

Attachments
There are no attachments for this article.
Related Articles RSS Feed
8 Vim Tips And Tricks That Will Make You A Pro User
Viewed 2820 times since Fri, Apr 19, 2019
Inxi – A Powerful Feature-Rich Commandline System Information Tool for Linux
Viewed 18802 times since Sat, Jun 2, 2018
Index » Community Contributions » System encryption using LUKS and GPG encrypted keys for arch linux
Viewed 2949 times since Fri, Jul 13, 2018
How to use yum-cron to automatically update RHEL/CentOS Linux
Viewed 2550 times since Wed, Oct 17, 2018
RHEL: Back-up/Replicate a partition table
Viewed 3221 times since Sun, May 27, 2018
30 Handy Bash Shell Aliases For Linux / Unix / MacOS
Viewed 4450 times since Thu, Feb 11, 2021
LVM: Rename root VG/LV
Viewed 7438 times since Sat, Jun 2, 2018
LUKS List available methods of encryption for LUKS
Viewed 2821 times since Fri, Jul 13, 2018
How to use yum-cron to automatically update RHEL/CentOS Linux 6.x / 7.x
Viewed 4876 times since Tue, Dec 4, 2018
RHEL: Forgotten ’root’ password / using single-user to gain access
Viewed 7176 times since Sat, Jun 2, 2018