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 2454 times since Tue, Mar 5, 2019
Szybkie sprawdzenie zewnętrznego adresu IP i hosta
Viewed 3578 times since Thu, May 24, 2018
How to schedule crontab in Unix Operating Systems
Viewed 2179 times since Fri, Jun 8, 2018
Sample logrotate configuration and troubleshooting part 2
Viewed 9728 times since Fri, Nov 30, 2018
Red Hat ADDING SWAP SPACE
Viewed 2272 times since Fri, Jun 8, 2018
IPTABLES linux
Viewed 17296 times since Sat, Jun 2, 2018
Expand or grow a file system on a Linux VMWare VM without downtime
Viewed 11848 times since Fri, Jul 27, 2018
Set Up SSH Tunneling on a Linux / Unix / BSD Server To Bypass NAT
Viewed 11503 times since Fri, May 15, 2020
8 Vim Tips And Tricks That Will Make You A Pro User
Viewed 3155 times since Fri, Apr 19, 2019
RHCS6: Show/Add GFS2/GFS journals
Viewed 12941 times since Sun, Jun 3, 2018