Translated message

A translation of this page exists in English.

RHEL7 システムがインターフェイスの名前を変更できず systemd-udevd: error changing net interface name ethX to ethY: File exists エラーが発生するのはなぜですか?

Solution Verified - Updated -

Issue

  • RHEL 7 では、net.ifnames=0biosdevname=0 を grub ファイルに追加することで、NIC 命名が ethX 形式に変更になりました。システムを起動する際にそれを行い、システムを再起動すると、NIC 名への MAC アドレスのマッピングは、eth0 - 8c:dc:d4:b7:xx:xxeth1 - 8c:dc:d4:33:yy:yy となります。
  • ここで、MAC アドレスが 8c:dc:d4:b7:xx:xx の NIC ポートは eth1 と命名され、MAC アドレスが 8c:dc:d4:33:yy:yy である NIC は eth0 と命名される必要があります。
  • それに応じて各 ifcfg-ethN ファイルに HWADDR を追加すると、再起動のインターフェイスが、オリジナルのマッピングと同じ方法で起動します。
  • udev がインターフェイスの名前を変更しようとする際に、ログでは以下のエラーが確認できます。
Apr 20 05:32:38 HOSTNAME systemd-udevd: error changing net interface name eth0 to eth1:File exists
Apr 20 05:32:38 HOSTNAME systemd-udevd: error changing net interface name eth1 to eth0:File exists

Environment

  • Red Hat Enterprise Linux 7.1
  • udevd

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