Gentoo Archives: gentoo-dev

From: "Nuno J. Silva (aka njsg)" <nunojsilva@×××××××.pt>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Re: Request of news item review: 2013-03-29-udev-predictable-network-interface-names.en.txt
Date: Fri, 29 Mar 2013 16:22:39
Message-Id: kj4f2s$45o$2@ger.gmane.org
In Reply to: Re: [gentoo-dev] Re: Request of news item review: 2013-03-29-udev-predictable-network-interface-names.en.txt by "Diego Elio Pettenò"
1 On 2013-03-29, Diego Elio Pettenò <flameeyes@×××××××××.eu> wrote:
2 > On 29/03/2013 12:34, Chí-Thanh Christopher Nguyễn wrote:
3 >> Diego Elio Pettenò schrieb:
4 >>> > If my desktop only has one Ethernet interface, no matter how many kernel
5 >>> > changes happen, it'll always be eth0.
6 >> That was not true with the old persistent naming. One example which we
7 >> encountered in #gentoo IRC was the split between e1000 and e1000e drivers
8 >> which caused interfaces to change names.
9 >
10 > Okay let me re-qualify the statement:
11 >
12 > "If my desktop only has one Ethernet interface, and I don't mess up with
13 > it in userspace at all, no matter how many kernel changes happen, it'll
14 > always be eth0".
15 >
16 > Yes, the previous persistent rules for udev would have messed that one
17 > up when e1000e got split, or if you switched between the
18 > Broadcom-provided driver to the kernel one or vice-versa. The deathforce
19 > drivers come in mind as well.
20
21 IMHO this is really relevant. It is annoying seeing how many people go
22 "oh you *must not* use the old scheme, because it won't work".
23
24 The new naming scheme does *not* prevent you from using eth0, users
25 should really just be told they can *disable* udev rules (and told how
26 to do it) if they are happy with the kernel name of their sole network
27 card, instead of being told that they *must* upgrade to the new rules.
28
29 The messages so far seem to imply that you can't have eth0. You *can*,
30 but udev won't be able to do anything if the device appears as
31 something else and there's already another eth0. If you don't already
32 have eth0, the udev rules *will* work, even if your card is named in
33 the eth namespace.
34
35 The *only* thing that breaks is renaming network devices to names that
36 are already in use inside the kernel namespaces.
37
38
39 --
40 Nuno Silva (aka njsg)
41 http://njsg.sdf-eu.org/

Replies