Discussion:
How to avoid renaming of network devices (eth5 to eth0, eth6 to eth1, and so on)
Kevin Wilson
2012-08-25 10:33:54 UTC
Permalink
Hello,

I am using Ubuntu with udev on a Linux machine
From time to time it happens that network devices are renamed after boot,
and this is due to udev (I know for sure that the reason for this is
uboot, because if I delete the udev
network rules file from /etc/udev/rules.d/, and reboot again, this
renaming does not occur).

What I mean more specifically is this:
I boot and I have (when running "ifconfig -a") eth0, eth1, eth2, eth3
(I have 4 network cards).
sometimes after reboot I get with ""ifconfig -a" " the following :
eth6, eth7, eth8, eth9

(I cannot specify at which occasions exactly does it happen, whether
it is as a result of some setting
I change, etc.)

How can I prevent this renaming of network devices ? Can I somehow prevent
udev renaming of network interfaces totally ?

rgs,
Kevin
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to ***@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Kay Sievers
2012-09-16 16:12:15 UTC
Permalink
Post by Kevin Wilson
I am using Ubuntu with udev on a Linux machine
From time to time it happens that network devices are renamed after boot,
and this is due to udev (I know for sure that the reason for this is
uboot, because if I delete the udev
network rules file from /etc/udev/rules.d/, and reboot again, this
renaming does not occur).
I boot and I have (when running "ifconfig -a") eth0, eth1, eth2, eth3
(I have 4 network cards).
eth6, eth7, eth8, eth9
The udev version in systemd does not do any of the automatic the
network rename rules creation in /etc anymore. It creates far more
problems than it solves, so it is all gone in current releases.

In older versions, the rule generator can be "masked" by creating an
empty rules file in /etc/udev/rules.d/ that disables the rules file
/lib/udev/rules.d/ which calls the network rules generator.

Kay
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to ***@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Loading...