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
Check Detailed CPU Information In Linux With CoreFreq [Advanced]
Viewed 1126 times since Thu, Apr 18, 2019
bash mistakes This page is a compilation of common mistakes made by bash users. Each example is flawed in some way.
Viewed 7339 times since Sun, Dec 6, 2020
How to manage Linux password expiry with the chage command
Viewed 9888 times since Tue, Sep 11, 2018
OCFS2 Cluster File System Setup Guide in Linux
Viewed 5160 times since Sat, Jun 2, 2018
How to maximise SSD performance with Linux
Viewed 4903 times since Fri, May 15, 2020
LVM: Reduce an existing Volume Group by removing one of its disks
Viewed 1040 times since Sat, Jun 2, 2018
RHCS6: Clustered LVM
Viewed 1142 times since Sun, Jun 3, 2018
Odpalenie polecenia tylko na jedną godzinę
Viewed 1497 times since Thu, May 24, 2018
Lsyncd: live file syncronization across multiple Linux servers
Viewed 3312 times since Wed, Oct 31, 2018
RHCS6: Show/Add GFS2/GFS journals
Viewed 11279 times since Sun, Jun 3, 2018