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 - How to get CPU information
Viewed 2752 times since Fri, Jun 8, 2018
How to accurately determine when the system was booted
Viewed 2742 times since Wed, Oct 3, 2018
HowTo: Find Out Hard Disk Specs / Details on Linux
Viewed 4256 times since Mon, Jan 28, 2019
Using Official Redhat DVD as repository
Viewed 11877 times since Mon, Oct 29, 2018
Top 10 darmowych i publicznych serwerów DNS
Viewed 2882 times since Tue, May 22, 2018
Linux – Securing your important files with XFS extendend attributes
Viewed 8070 times since Wed, Jul 25, 2018
How to clear swap memory in Linux
Viewed 2698 times since Mon, Nov 23, 2020
RHEL: Back-up/Replicate a partition table
Viewed 4142 times since Sun, May 27, 2018
stunnel Howto A Guide to create SSL access to a HTTP-only webserver with stunnel
Viewed 3267 times since Fri, Sep 28, 2018
RHEL7: Configure automatic updates.
Viewed 2410 times since Wed, Oct 17, 2018