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
12 Linux Rsync Options in Linux Explained
Viewed 11458 times since Wed, Oct 31, 2018
Turbocharge PuTTY with 12 Powerful Add-Ons – Software for Geeks #3
Viewed 14052 times since Sun, Sep 30, 2018
“Too many authentication failures” with SSH
Viewed 4848 times since Mon, May 21, 2018
Create a Linux Swap File
Viewed 2577 times since Fri, Jun 8, 2018
RHEL: Displaying system info (firmware, serial numbers... )
Viewed 11242 times since Sun, May 27, 2018
OpenSSL: Find Out SSL Key Length – Linux Command Line
Viewed 5711 times since Mon, Feb 18, 2019
RHEL: Checking HBAs
Viewed 13944 times since Sun, May 27, 2018
RHCS6: ’fencing’ basics
Viewed 1901 times since Sun, Jun 3, 2018
Linux - How to monitor memory usage
Viewed 2525 times since Fri, Jun 8, 2018
Linux Linux Network Statistics Tools / Commands
Viewed 8571 times since Mon, Sep 21, 2020