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
RHEL: Reinstalling Boot Loader on the Master Boot Record (MBR)
Viewed 3460 times since Sun, May 27, 2018
Linux get the list of FC HBA’s and WWPN
Viewed 3416 times since Tue, May 22, 2018
Get UUID of Hard Disks [Update]
Viewed 2286 times since Tue, Jul 17, 2018
Using stunnel to Encrypt Database Connections
Viewed 3750 times since Fri, Sep 28, 2018
Linux RAID Mdadm Cheat Sheet
Viewed 5508 times since Fri, May 15, 2020
Linux 20 Netstat Commands for Linux Network Management
Viewed 9721 times since Mon, Sep 21, 2020
Logowanie za pomocą kluczy Secure Shell
Viewed 3039 times since Thu, May 24, 2018
Procedura powiekszania OCFS2 online
Viewed 5512 times since Fri, Jun 8, 2018
LUKS List available methods of encryption for LUKS
Viewed 3035 times since Fri, Jul 13, 2018
stunnel How To Set Up an SSL Tunnel Using Stunnel on Ubuntu
Viewed 1835 times since Sun, Dec 6, 2020