Red Hat Bugzilla – Bug 844377
Wrong interface name created by NetworkManager
Last modified: 2013-04-05 14:11:23 EDT
Description of problem:
After installing RHEL7 alpha2, I noticed that the machine was not online.
I checked the interfaces configured and I see that NN has created an interface with the name "p3p1".
On the system the interface configured by udev is eth0:
# ifconfig -a
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 16436
Version-Release number of selected component (if applicable):
# rpm -qa | grep Netwo
Resinstalled the machine 2 times and I always have this issue
Steps to Reproduce:
1. Install RHEL7 with "text" option
2. Check the network configuration
No config file for the interface eth0.
A config file for the interface "p3p1" was written
The correct configuration file should be written
Is biosdevname installed?
Are there udev rules or other such things that rename the network device after it's recognized by the kernel? biosdevname is one of these, but also see if /etc/udev/rules.d/70-persistent-net.rules exists and if that directs udev to rename your interface to eth0.
(note that NM doesn't yet handle interface name changes well after it's found the device already. A changed name doesn't affect internal operation, but it won't be reflected in the logs or in the API. Internally, ifindexes are what is used, and therefore the name change has no material effect)
No package biosdevname installed:
# rpm -qa | grep bios
And no persistent rule in udev/rules.d:
# ls -l /etc/udev/rules.d
-rw-r--r--. 1 root root 771 May 22 14:02 90-alsa-tools-firmware.rules
If you install biosdevname, does that fix the issue?
Installing biosdevname renamed the eth0 interface to p3p1.
From where does the name p3p1 come from?
PCI slot 3, port 1.
This will be fixed in a future milestone such that biosdevname is always installed.
I believe that biosdevname and udev are fixed now such that the correct naming is happening. NM just uses what it gets from the kernel.