How to disable EEE feature on the nic on RHEL7-8/Centos7-8

 

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • CentOS 7
  • CentOS 8

Issue

  • Would like to disable the (Energy Efficient Ethernet) EEE feature of the NIC.

Resolution

  • To disable EEE use the ethtool command. In the example below, EEE is disabled on eth0:
# ethtool --set-eee eth0 eee off
  • To make this change persist across reboots, please add the ETHTOOL_OPTS parameter to the interface’s interface configuration file found in the /etc/sysconfig/network-scripts/ directory. For example:
# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
HWADDR=00:21:97:2E:EE:77
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=dhcp
ETHTOOL_OPTS="--set-eee ${DEVICE} eee off"

Diagnostic Steps

  • The ethtool command option –show-eee will display the current status of EEE:
# cat /etc/sysconfig/network-scripts/ifcfg-eth0
# ethtool --show-eee eth0
EEE Settings for eth0:
EEE status: enabled - inactive
Tx LPI: 0 (us)
Supported EEE link modes: 100baseT/Full
1000baseT/Full
Advertised EEE link modes: 100baseT/Full
1000baseT/Full
Link partner advertised EEE link modes: Not reported

Leave a Comment

Your email address will not be published. Required fields are marked *