From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id D298E198005 for ; Sat, 16 Mar 2013 13:39:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8BD6DE0642; Sat, 16 Mar 2013 13:39:25 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3AF60E057F for ; Sat, 16 Mar 2013 13:39:24 +0000 (UTC) Received: from [10.9.4.163] (unknown [119.225.153.217]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: abcd) by smtp.gentoo.org (Postfix) with ESMTPSA id 5EB1933C1EE; Sat, 16 Mar 2013 13:39:22 +0000 (UTC) Message-ID: <51447605.8090904@gentoo.org> Date: Sat, 16 Mar 2013 09:39:17 -0400 From: Jonathan Callen User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130311 Thunderbird/17.0.4 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org CC: Dan Johansson Subject: [gentoo-user] Re: udev upgrade renames eth-interfaces References: <2684742.xaYK2yrzKb@queen> In-Reply-To: <2684742.xaYK2yrzKb@queen> X-Enigmail-Version: 1.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: 35f57bb1-ba9a-4f4a-9d16-2344a79ac795 X-Archives-Hash: 7def9556af0de93ea5c3c9177002f620 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 On 03/16/2013 09:14 AM, Dan Johansson wrote: > Hello, > > Today I upgraded udev on one of my boxes (after hesitating a long > time). Even if I have /etc/udev/rules.d/80-net-name-slot.rules and > my old 70-persistent-net.rules in place, my interfaces gets renamed > (eth0 gets swapped with eth1) which then messes up my whole > configuration (routing tables and firewall rules). Any suggestion > how to keep my old names and order? > > Regards, > Udev, as of version 187, will now refuse to rename a network interface to the name of a network interface that already exists -- which, due to race conditions, can be the case if you are attempting to rename a network device to a name the kernel will later use to name the next enumerated device. The fix for this issue is to *not* use names that match "eth[0-9]*", "wlan[0-9]*", etc. and instead use a name that the kernel would *not* automatically assign. Unfortunately, that means that you *cannot* keep your old names and order (upstream claims that the means used to ensure those names were used was unreliable and prone to race conditions anyway, which, looking at the code, I can believe). - -- Jonathan Callen -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCgAGBQJRRHYFAAoJELHSF2kinlg4d0MQAJhJs73Nlja+TGoq77TaYMOz vrJmZmPDewp+1imFjfnddhC6c5ePn5+XCQ7vWmcB3LVVh8JAOqRq1pEV/u4F3HYO 8VE5VI/s0K2MO/+8aLOOSnB91tmEmZ9ziKnIjvZPKqDKH5JB2iCShnvvgfdWIlQB HwaZknzlvl1bNCBmDfaXFoGzPmEIiyIysuzI9xFxv1/m+VOMeDkN5a7qJmC7mXld gu9Shx15Y2LBJZvQaUH8aM6Qv4BsMc9IJ0XWp/aHpbefMuj+Vb5038caRRfHqyUN aNmYmiEvvkb2IqrMSJ8x4faC3iVj/YimovEQhiDZmwaHcl2IqmlngJ1qAPk30/Lh fwUVDCTwtJ/zoOoTxGpd4zZ/wUVVPaupsOc2D7ZMXlw2o5RzsuSwRE5FrHv/0MXO Ne3I3QVHvPJvYfwi0AyOv5wHEKkCdF9MjgWqCErjEPaFUrrPuiWp4ESQp/HE5rVQ YG77ZSugSnFddZgwYenlSgDhHkkMaHV8zeNautVOPRMsvqbKbnVjEtT7YXHJBN0B OnnCQhZR7lBKCkxc5Xq/TWXe9imT/1Of8tLn80SuICthUGLgFg1tlv0AIjKmWU9q FIoQ+xD6rTav2zdPkTF86HsODqwe38br64NLPhUSfd+s7e5iiqh++XTtwTnXSKXW QbQb+npPnCZ0DgqW9aCM =/24C -----END PGP SIGNATURE-----