Why NetworkManager adds incorrect ETHTOOl_OPTS?

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux 8.6
  • NetworkManager (version 1.36.0-7.el8_6)
  • ifcfg-rh method

Issue

  • When changing the ethtool options for parameters like pause-rx , pause-tx, pause-autoneg , incorrect options are getting added in /etc/sysconfig/network-scripts/ifcfg-<interface>

Resolution

  • Red Hat investigated this issue and delivered a fix in NetworkManager-1.40.4-1.el8 through errata RHBA-2023:2968. If this issue still occurs in your environment after updating, open a support case in the Red Hat Customer Portal referring to this solution.

Workaround

- Use the keyfile method.

# cat /etc/NetworkManager/NetworkManager.conf
[main]
plugins=keyfile

After this you may need to configure the interface again, as profiles are stored in /etc/NetworkManager/system-connections/ for keyfile.

Diagnostic Steps

  • Configure an interface with multiple ethtool options:

$ nmcli con add type ethernet ifname eno1 con-name eno1 ipv4.method manual ipv4.address 10.0.0.0/24 $ nmcli con up eno1 $ nmcli con mod eno1 ethtool.pause-autoneg off $ nmcli con up eno1 $ nmcli con modify eno1 ethtool.ring-rx 512 $ nmcli con up eno1
  • Check the interface configuration file:
cat /etc/sysconfig/network-scripts/ifcfg-eno1
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=none
IPADDR=10.0.0.0
PREFIX=24
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=eno1
UUID=aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa
DEVICE=eno1
ONBOOT=yes
ETHTOOL_OPTS="-G eno1 rx 512 pause-autoneg off"  <<----  value for  ETHTOOL_OPTS is incorrect.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments