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: Disks diagnostic using smartctl
Viewed 11992 times since Wed, Jul 25, 2018
A tcpdump Tutorial and Primer with Examples
Viewed 2752 times since Sun, Jun 17, 2018
List DNS records, nameservers of a domain from command line
Viewed 853 times since Sun, Sep 30, 2018
Using stunnel and TinyProxy to obfuscate HTTP traffic
Viewed 3022 times since Fri, Sep 28, 2018
RHCS6: Mirror/unmirror a GFS2 volume
Viewed 3865 times since Sun, Jun 3, 2018
Oracle Linux 7 – How to audit changes to a trusted file such as /etc/passwd or /etc/shadow
Viewed 1808 times since Wed, Jul 25, 2018
Super Grub2 Disk
Viewed 1458 times since Wed, May 22, 2019
Script to Offline and Remove A Disk In Linux
Viewed 796 times since Mon, Jan 28, 2019
Logrotate Example for Custom Logs
Viewed 1439 times since Sun, Jan 12, 2020
Przekazywanie portów TCP rinetd
Viewed 40053 times since Thu, May 24, 2018