Unable to add interface name due to an error: "802-3-ethernet.mac-address-denylist: unknown property"

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux (RHEL) 9
  • NetworkManager

Issue

  • Unable to add interface name due to an error 802-3-ethernet.mac-address-denylist: unknown property

Example:

[root@rhel9 ~]# nmcli con add type ethernet ifname enp8s0 con-name enp8s0
Warning: nmcli (1.48.10) and NetworkManager (1.46.0) versions don't match. Restarting NetworkManager is advised.
Error: Failed to add 'enp8s0' connection: 802-3-ethernet.mac-address-denylist: unknown property
  • From journal logs, it will show the following messages:
Nov 25 08:35:13 python3[73153]: ansible-redhat.rhel_system_roles.network_connections [WARNING] [003] <info>  #0, state:up persistent_state:present, 'ens192': update connection ens192, ae69ac82-09e0-41ec-980f-a9c3e71cfc9d
Nov 25 08:35:13 python3[73153]: ansible-redhat.rhel_system_roles.network_connections [WARNING] [004] <error> #0, state:up persistent_state:present, 'ens192': updating connection failed: failure to update connection: nm-connection-error-quark: 802-3-ethernet.mac-address-denylist: unknown property (7)

Resolution

Reboot the node or restart NetworkManager. The recommended solution is to reboot the node. The article below has more information regarding restarting NetworkManager

How and when to restart NetworkManager

Root Cause

The runtime version of NetworkManager is incompatible with the updated version resulting to an error. The option 802-3-ethernet.mac-address-denylist was not an available option in the runtime version, but was trying to be applied because it is a new option in the updated version. The reason it is trying to apply it even though it is not being explicitly set is because NetworkManager needs to set a default (even if null) value for every possible option for the connection type.

$ grep NetworkManager-1 installed-rpms ;  head -n3 sos_commands/logs/journalctl_--no-pager_--boot
NetworkManager-1.48.10-2.el9_5.x86_64                       Fri Nov 22 11:53:34 2024

Nov 22 11:48:44 hostname.com kernel: Linux version 5.14.0-427.13.1.el9_4.x86_64 (mockbuild@x86-038.build.eng.bos.redhat.com) (gcc (GCC) 11.4.1 20231218 (Red Hat 11.4.1-3), GNU ld version 2.35.2-43.el9) #1 SMP PREEMPT_DYNAMIC Wed Apr 10 10:29:16 EDT 2024
Nov 22 11:48:44 hostname.com kernel: The list of certified hardware and cloud instances for Red Hat Enterprise Linux 9 can be viewed at the Red Hat Ecosystem Catalog, https://catalog.redhat.com.
Nov 22 11:48:44 hostname.com kernel: Command line: BOOT_IMAGE=(hd0,msdos1)/vmlinuz-5.14.0-427.13.1.el9_4.x86_64 root=/dev/mapper/rootvg-rootlv ro crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M resume=/dev/mapper/rootvg-swaplv rd.lvm.lv=rootvg/rootlv rd.lvm.lv=rootvg/swaplv

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