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
Linux - Cannot login from remote console but can access via ssh
Viewed 2137 times since Fri, Jun 8, 2018
RHEL: Back-up/Replicate a partition table
Viewed 1314 times since Sun, May 27, 2018
Tip: SSD and Linux. Enable TRIM and check if it works
Viewed 977 times since Fri, May 15, 2020
Improve security with polyinstantiation
Viewed 420 times since Fri, May 15, 2020
Red Hat Cluster Tutorial
Viewed 934 times since Sun, Jun 3, 2018
7 Tips – Tuning Command Line History in Bash
Viewed 1654 times since Fri, Jul 5, 2019
how to list all hard disks in linux from command line
Viewed 743 times since Mon, Jan 28, 2019
RHCS6: Extend an existing Logical Volume / GFS2 filesystem
Viewed 1116 times since Sun, Jun 3, 2018
INSTALACJA MIB SNMP W SYSTEMIE CENTOS/RHEL 6
Viewed 1447 times since Fri, Nov 30, 2018
SSH Essentials: Working with SSH Servers, Clients, and Keys
Viewed 1526 times since Wed, Jun 27, 2018