Gentoo Archives: gentoo-user

From: Jonathan Callen <abcd@g.o>
To: gentoo-user@l.g.o
Cc: Dan Johansson <Dan.Johansson@×××.nu>
Subject: [gentoo-user] Re: udev upgrade renames eth-interfaces
Date: Sat, 16 Mar 2013 13:39:32
Message-Id: 51447605.8090904@gentoo.org
In Reply to: [gentoo-user] udev upgrade renames eth-interfaces by Dan Johansson
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA512
3
4 On 03/16/2013 09:14 AM, Dan Johansson wrote:
5 > Hello,
6 >
7 > Today I upgraded udev on one of my boxes (after hesitating a long
8 > time). Even if I have /etc/udev/rules.d/80-net-name-slot.rules and
9 > my old 70-persistent-net.rules in place, my interfaces gets renamed
10 > (eth0 gets swapped with eth1) which then messes up my whole
11 > configuration (routing tables and firewall rules). Any suggestion
12 > how to keep my old names and order?
13 >
14 > Regards,
15 >
16
17 Udev, as of version 187, will now refuse to rename a network interface
18 to the name of a network interface that already exists -- which, due
19 to race conditions, can be the case if you are attempting to rename a
20 network device to a name the kernel will later use to name the next
21 enumerated device. The fix for this issue is to *not* use names that
22 match "eth[0-9]*", "wlan[0-9]*", etc. and instead use a name that the
23 kernel would *not* automatically assign. Unfortunately, that means
24 that you *cannot* keep your old names and order (upstream claims that
25 the means used to ensure those names were used was unreliable and
26 prone to race conditions anyway, which, looking at the code, I can
27 believe).
28
29 - --
30 Jonathan Callen
31 -----BEGIN PGP SIGNATURE-----
32 Version: GnuPG v2.0.19 (GNU/Linux)
33 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
34
35 iQIcBAEBCgAGBQJRRHYFAAoJELHSF2kinlg4d0MQAJhJs73Nlja+TGoq77TaYMOz
36 vrJmZmPDewp+1imFjfnddhC6c5ePn5+XCQ7vWmcB3LVVh8JAOqRq1pEV/u4F3HYO
37 8VE5VI/s0K2MO/+8aLOOSnB91tmEmZ9ziKnIjvZPKqDKH5JB2iCShnvvgfdWIlQB
38 HwaZknzlvl1bNCBmDfaXFoGzPmEIiyIysuzI9xFxv1/m+VOMeDkN5a7qJmC7mXld
39 gu9Shx15Y2LBJZvQaUH8aM6Qv4BsMc9IJ0XWp/aHpbefMuj+Vb5038caRRfHqyUN
40 aNmYmiEvvkb2IqrMSJ8x4faC3iVj/YimovEQhiDZmwaHcl2IqmlngJ1qAPk30/Lh
41 fwUVDCTwtJ/zoOoTxGpd4zZ/wUVVPaupsOc2D7ZMXlw2o5RzsuSwRE5FrHv/0MXO
42 Ne3I3QVHvPJvYfwi0AyOv5wHEKkCdF9MjgWqCErjEPaFUrrPuiWp4ESQp/HE5rVQ
43 YG77ZSugSnFddZgwYenlSgDhHkkMaHV8zeNautVOPRMsvqbKbnVjEtT7YXHJBN0B
44 OnnCQhZR7lBKCkxc5Xq/TWXe9imT/1Of8tLn80SuICthUGLgFg1tlv0AIjKmWU9q
45 FIoQ+xD6rTav2zdPkTF86HsODqwe38br64NLPhUSfd+s7e5iiqh++XTtwTnXSKXW
46 QbQb+npPnCZ0DgqW9aCM
47 =/24C
48 -----END PGP SIGNATURE-----

Replies

Subject Author
Re: [gentoo-user] Re: udev upgrade renames eth-interfaces Dan Johansson <Dan.Johansson@×××.nu>