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
Cron YUM How to use yum-cron to automatically update RHEL/CentOS Linux
Viewed 427 times since Fri, Oct 26, 2018
What Is /dev/shm And Its Practical Usage
Viewed 594 times since Tue, Mar 12, 2019
Linux Find Large Files
Viewed 568 times since Mon, Oct 29, 2018
Red Hat Cluster Tutorial
Viewed 700 times since Sun, Jun 3, 2018
Linux - How to get Memory information
Viewed 527 times since Fri, Jun 8, 2018
RHCS6: Basic operations on clustered services
Viewed 718 times since Sun, Jun 3, 2018
12 Linux Rsync Options in Linux Explained
Viewed 671 times since Wed, Oct 31, 2018
CentOS / RHEL : How to move a Volume Group from one system to another
Viewed 590 times since Mon, Jan 28, 2019
RHEL : How to deal with “CLOSE_WAIT” and “TIME_WAIT” connection
Viewed 3305 times since Thu, Feb 14, 2019
How to schedule crontab in Unix Operating Systems
Viewed 528 times since Fri, Jun 8, 2018