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
RHEL7: How to get started with Firewalld.
Viewed 1666 times since Wed, May 22, 2019
How to mount software RAID1 member using mdadm
Viewed 617 times since Wed, Oct 3, 2018
RHCS6: Install a two-node basic cluster
Viewed 847 times since Sun, Jun 3, 2018
RHEL: Reserved space on a ext2/ext3/ext4 filesystem
Viewed 2501 times since Sun, May 27, 2018
20 IPtables Examples For New SysAdmins
Viewed 712 times since Fri, May 15, 2020
stunnel Howto A Guide to create SSL access to a HTTP-only webserver with stunnel
Viewed 564 times since Fri, Sep 28, 2018
RHEL: Crash kernel dumps configuration and analysis on RHEL 6
Viewed 1483 times since Sat, Jun 2, 2018
LVM: Move allocated PE between Physical Volumes
Viewed 1021 times since Sat, Jun 2, 2018
tcpdump usage examples
Viewed 536 times since Fri, Jul 27, 2018
Linux – Securing your important files with XFS extendend attributes
Viewed 587 times since Wed, Jul 25, 2018