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
Tropienie pożeracza dysku
Viewed 3080 times since Thu, May 24, 2018
Split and Reassemble files
Viewed 4420 times since Mon, May 28, 2018
LVM: Mount LVM Partition(s) in Rescue Mode
Viewed 6481 times since Sat, Jun 2, 2018
Improve security with polyinstantiation
Viewed 14902 times since Fri, May 15, 2020
stunnel basics and pki standards
Viewed 10484 times since Fri, Sep 28, 2018
Fedora 32: Simple Local File-Sharing with Samba CIFS Linux
Viewed 10115 times since Sun, Dec 6, 2020
RHCS: Configure an active/backup pacemaker cluster
Viewed 10416 times since Sun, Jun 3, 2018
Linux - How to get CPU information
Viewed 3022 times since Fri, Jun 8, 2018
RHEL: Allowing users to ’su’ to "root" / Allowing ’root’ to login directly to the system using ’ssh’
Viewed 3950 times since Sat, Jun 2, 2018
Linux - How to get network speed and statistic of ethernet adapter in Linux
Viewed 3158 times since Fri, Jun 8, 2018