Re:

Tom Gundersen <[email protected]>
Newsgroups gmane.linux.hotplug.devel
Message-ID <CAG-2HqX4FNBvjFPD-R=-KmKWaiMHUbCaad4cgiQ_d=L7sarjqg@mail.gmail.com>
On Fri, Apr 26, 2013 at 5:32 AM, snowyxx <[email protected]> wrote:
> I have some machines with 8 net interfaces, I want to name one as eth0, I
> need a solution to work for all machine ( I will clone OS from one to
> others), so I could not just modify the rule file under /etc/udev/rules.d

You should avoid renaming devices to ethX, this is racy and especially
in recent udev versions it does not work.

You have two options:

1) Rename your devices to something not in the kernel namespace (e.g.,
lan0, lan1, ... or net0, net1, ...).

or

2) Use the predictable interface names, which is the default in recent
versions. This will give you a new set of names (see [0] for details).

HTH,

Tom

[0]: <http://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames>
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.