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
Linux nslookup Command Examples for DNS Lookup
Viewed 10245 times since Sat, Sep 29, 2018
How to sort IP addresses in Linux
Viewed 4621 times since Sun, May 20, 2018
RHEL: Enabling standard ftp/telnet
Viewed 4623 times since Sun, May 27, 2018
Linux Proxy Server Settings – Set Proxy For Command Line
Viewed 6660 times since Mon, Feb 18, 2019
10 nmap Commands Every Sysadmin Should Know
Viewed 11433 times since Wed, May 22, 2019
Jak znaleźć najszybszy publiczny serwer DNS w Polsce?
Viewed 3995 times since Mon, May 21, 2018
HowTo: Kill TCP Connections in CLOSE_WAIT State
Viewed 17804 times since Thu, Feb 14, 2019
RHCS6: ’fencing’ basics
Viewed 3283 times since Sun, Jun 3, 2018
linux ssh Remotely Initiated Reverse SSH Tunnel
Viewed 4516 times since Wed, Apr 22, 2020
logrotate Log Rotate Configuration
Viewed 4182 times since Sun, Jan 12, 2020