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
ZFS: Remove an existing zfs filesystem
Viewed 1873 times since Sun, Jun 3, 2018
RHCS6: Basic operations on clustered services
Viewed 2387 times since Sun, Jun 3, 2018
Setup SSL Tunnel Using Stunnel on Ubuntu
Viewed 1985 times since Fri, Sep 28, 2018
Monitoring bezpieczeństwa Linux: integracja auditd + OSSEC cz. I
Viewed 2132 times since Fri, Apr 5, 2019
Using Official Redhat DVD as repository
Viewed 10827 times since Mon, Oct 29, 2018
Stunnel Setup
Viewed 17178 times since Fri, Sep 28, 2018
Yum Update: DB_RUNRECOVERY Fatal error, run database recovery
Viewed 3611 times since Fri, Jan 17, 2020
Installing and Configuring stunnel on CentOS 6
Viewed 3803 times since Fri, Sep 28, 2018
LVM: Rename root VG/LV
Viewed 7137 times since Sat, Jun 2, 2018
Moving SSL Certificate from IIS to Apache
Viewed 1667 times since Mon, Feb 18, 2019