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
haproxy linux
Viewed 2611 times since Sun, Dec 6, 2020
Jak znaleźć najszybszy publiczny serwer DNS w Polsce?
Viewed 3305 times since Mon, May 21, 2018
How to encrypt a partition with DM-Crypt LUKS on Linux
Viewed 8359 times since Fri, Jul 13, 2018
WatchDog watchdog.sh script for checking server running
Viewed 5547 times since Tue, Jul 31, 2018
Open SSL HowTo: Decode SSL Certificate
Viewed 6230 times since Mon, Feb 18, 2019
Top 20 OpenSSH Server Best Security Practices - good article
Viewed 10832 times since Mon, Oct 1, 2018
Installing and Configuring stunnel on CentOS 6
Viewed 4225 times since Fri, Sep 28, 2018
debian How to Upgrade Debian 8 Jessie to Debian 9 Stretch
Viewed 2465 times since Sun, Sep 23, 2018
RHEL: iSCSI target/initiator configuration on RHEL6
Viewed 8966 times since Sat, Jun 2, 2018
Linux / UNIX: DNS Lookup Command
Viewed 9727 times since Sun, Sep 30, 2018