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
high swap space utilization in LINUX
Viewed 6733 times since Fri, Jul 13, 2018
Kernel sysctl configuration file for Linux
Viewed 5489 times since Fri, Aug 3, 2018
10 Linux nslookup Command Examples for DNS Lookup
Viewed 10415 times since Sun, Sep 30, 2018
RHEL: Enabling standard ftp/telnet
Viewed 3677 times since Sun, May 27, 2018
RHEL: udev rules basics
Viewed 9217 times since Sat, Jun 2, 2018
Linux Kernel /etc/sysctl.conf Security Hardening
Viewed 23720 times since Fri, Aug 3, 2018
Script to Offline and Remove A Disk In Linux
Viewed 2115 times since Mon, Jan 28, 2019
linux ssh Remotely Initiated Reverse SSH Tunnel
Viewed 3375 times since Wed, Apr 22, 2020
Expand or grow a file system on a Linux VMWare VM without downtime
Viewed 11826 times since Fri, Jul 27, 2018
LVM: Extend an existing Volume Group by adding a new disk
Viewed 2228 times since Sat, Jun 2, 2018