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
RHCS6: Mirror/unmirror a GFS2 volume
Viewed 5263 times since Sun, Jun 3, 2018
SSH: Execute Remote Command or Script – Linux
Viewed 2423 times since Mon, Feb 18, 2019
RHEL: How to change a USER/GROUP UID/GID and all owned files
Viewed 22531 times since Sat, Jun 2, 2018
stunnel Howto A Guide to create SSL access to a HTTP-only webserver with stunnel
Viewed 2724 times since Fri, Sep 28, 2018
How To Use the Linux Auditing System on CentOS 7
Viewed 3967 times since Fri, Apr 5, 2019
chrt command: Set / Manipulate Real Time Attributes of a Linux Process
Viewed 11058 times since Mon, Feb 17, 2020
Need to set up yum repository for locally-mounted DVD on Red Hat Enterprise Linux 7
Viewed 3150 times since Mon, Oct 29, 2018
Do you Know These 5 Use of V$session View ?
Viewed 107056 times since Thu, Jun 21, 2018
ZFS: Snapshots and clones on zfs filesystems
Viewed 3109 times since Sun, Jun 3, 2018
Secure Remote Logging to Central Log Server Using RSYSLOG on CentOS 6 / CentOS 7 and stunnel
Viewed 3746 times since Sun, Dec 6, 2020