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
Manage SSH Key File With Passphrase
Viewed 1418 times since Tue, Mar 5, 2019
10 Linux rsync Examples to Exclude Files/Directories
Viewed 9976 times since Wed, Oct 31, 2018
RHCS6: Clustered LVM
Viewed 1373 times since Sun, Jun 3, 2018
Understanding System auditing with auditd
Viewed 7451 times since Fri, Apr 5, 2019
CentOS / RHEL : How to move a Volume Group from one system to another
Viewed 2244 times since Mon, Jan 28, 2019
RHEL: Enabling standard ftp/telnet
Viewed 1961 times since Sun, May 27, 2018
Using Official Redhat DVD as repository
Viewed 10141 times since Mon, Oct 29, 2018
How To Find Largest Top 10 Files and Directories On Linux / UNIX / BSD find
Viewed 1759 times since Mon, Oct 29, 2018
ubuntu How to reset lost root password on Ubuntu 16.04 Xenial Xerus Linux
Viewed 7226 times since Tue, Dec 8, 2020
How to disable SSH cipher/ MAC algorithms for Linux and Unix
Viewed 28888 times since Fri, Aug 21, 2020