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 Customizing Bash
Viewed 2897 times since Sun, Dec 6, 2020
Using renice and taskset to manage process priority and CPU affinity with Linux OEL 6.4
Viewed 4518 times since Mon, Feb 17, 2020
RHEL: Extending the maximum inode count on a ext2/ext3/ext4 filesystem
Viewed 4366 times since Sun, May 27, 2018
Creating SWAP partition using FDISK & FALLOCATE commands
Viewed 7257 times since Thu, Jan 16, 2020
RHCS6: Luci - the cluster management console
Viewed 3969 times since Sun, Jun 3, 2018
Jak ustawić LVM, jak robić snapshoty oraz automatycznie powiększać LV, czyli małe howto
Viewed 5573 times since Sun, May 20, 2018
Linux - How to shutdown or reboot
Viewed 2757 times since Fri, Jun 8, 2018
Red Hat ADDING SWAP SPACE
Viewed 2753 times since Fri, Jun 8, 2018
Linux Chage Command to Set Password Aging for User
Viewed 3322 times since Tue, Sep 11, 2018
Yum Update: DB_RUNRECOVERY Fatal error, run database recovery
Viewed 4924 times since Fri, Jan 17, 2020