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
List usernames instead of uids with the ps command for long usernames
Viewed 3023 times since Wed, Jul 25, 2018
Yum Update: DB_RUNRECOVERY Fatal error, run database recovery
Viewed 4727 times since Fri, Jan 17, 2020
OpenSSL – sprawdzanie czy klucz pasuje do certyfikatu
Viewed 3217 times since Thu, May 24, 2018
LVM: Remove a Filesystem / Logical Volume
Viewed 3127 times since Sat, Jun 2, 2018
RHEL: Displaying/setting kernel parameters - ’sysctl’
Viewed 3769 times since Sat, Jun 2, 2018
HowTo: Find Out Hard Disk Specs / Details on Linux
Viewed 4257 times since Mon, Jan 28, 2019
systemd Auto-restart a crashed service in systemd
Viewed 3981 times since Fri, Jan 17, 2020
LVM: Remove an existing Volume Group
Viewed 5996 times since Sat, Jun 2, 2018
LVM: Extend SWAP size by adding a new Logical Volume
Viewed 3707 times since Sat, Jun 2, 2018
Tropienie pożeracza dysku
Viewed 2749 times since Thu, May 24, 2018