NICs have the wrong MAC address and "systemd-udevd: error changing net interface name ethX to ethY: File exists" error is seen in the logs

Solution Verified - Updated -

Issue

  • We have set HWADDR in the ifcfg files to assign specific names to each interface and it is not working.
  • Trying to give a specific name like eth0 or eth1 to each interface.
  • Finding these error messages and interfaces show the wrong MACs in ifconfig.

    systemd-udevd: error changing net interface name eth0 to eth1: File exists
    systemd-udevd: error changing net interface name eth1 to eth0: File exists
    
  • Finding these error messages in IBM System z (s390x) systems:

    systemd-udevd: Error changing net interface name 'hsi2' to 'hsi3': File exists
    systemd-udevd: could not rename interface '5' from 'hsi2' to 'hsi3': File exists
    

Environment

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

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content