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
Oracle Linux 7 – How to audit changes to a trusted file such as /etc/passwd or /etc/shadow
Viewed 3796 times since Wed, Jul 25, 2018
How to Migrate from RHEL 8 to CentOS 8
Viewed 4198 times since Fri, May 15, 2020
SSL HowTo: Decode CSR
Viewed 5873 times since Mon, Feb 18, 2019
RHEL : How to deal with “CLOSE_WAIT” and “TIME_WAIT” connection
Viewed 29806 times since Thu, Feb 14, 2019
RHCS6: Luci - the cluster management console
Viewed 4110 times since Sun, Jun 3, 2018
HowTo: Retrieve Email from a POP3 Server using the Command Line
Viewed 13653 times since Mon, Feb 18, 2019
An easier way to manage disk decryption at boot with Red Hat Enterprise Linux 7.5 using NBDE
Viewed 8953 times since Mon, Aug 6, 2018
HowTo: Send Email from an SMTP Server using the Command Line
Viewed 3034 times since Mon, Feb 18, 2019
Split and Reassemble files
Viewed 4263 times since Mon, May 28, 2018
Check a Website Availability from the Linux Command Line
Viewed 7770 times since Mon, Feb 18, 2019