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
Jak znaleźć najszybszy publiczny serwer DNS w Polsce?
Viewed 3306 times since Mon, May 21, 2018
Need to set up yum repository for locally-mounted DVD on Red Hat Enterprise Linux 7
Viewed 3294 times since Mon, Oct 29, 2018
Split and Reassemble files
Viewed 3625 times since Mon, May 28, 2018
Modifying the inode count for an ext2/ext3/ext4 file system
Viewed 15548 times since Fri, Sep 18, 2020
Install OpenVPN On CentOS / RHEL 7
Viewed 3163 times since Fri, May 15, 2020
Linux nslookup Command Examples for DNS Lookup
Viewed 9135 times since Sat, Sep 29, 2018
Lsyncd: live file syncronization across multiple Linux servers
Viewed 7158 times since Wed, Oct 31, 2018
stunnel How To Encrypt Traffic to Redis with Stunnel on Ubuntu 16.04
Viewed 2272 times since Sun, Dec 6, 2020
Tips to Solve Linux & Unix Systems Hard Disk Problems
Viewed 4286 times since Fri, May 15, 2020
Method 2 – Use shell scripts How to install yum cron on a CentOS/RHEL 6.x/7.x
Viewed 4289 times since Tue, Dec 4, 2018