RHEL7: Mellanox cards with multiple ports do not get a predictable network interface name from systemd

Solution In Progress - Updated -

Issue

The Mellanox devices have one pcie function that enumerates two ports.
This issue impacts on board devices that get prefix eno. We do not see it with ens because of the use of dev_id in the name.
We can see in the systemd logs that the first port gets the name eno49. Systemd tries to name eno49 for the second port as well, but fails with:

systemd-udevd[587]: error changing net interface name eth0 to eno49: File exists

Environment

  • Red Hat Enterprise Linux 7
    • systemd prior to systemd-219-1.el7
  • Mellanox NIC with on-board devices

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