X-Original-To: alpine-devel@mail.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail.alpinelinux.org (dallas-a1.alpinelinux.org [127.0.0.1]) by mail.alpinelinux.org (Postfix) with ESMTP id 2FBE3DC0146 for ; Mon, 20 Jul 2015 15:08:04 +0000 (UTC) Received: from mail-pa0-f49.google.com (mail-pa0-f49.google.com [209.85.220.49]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id DA0D4DC00FF for ; Mon, 20 Jul 2015 15:08:03 +0000 (UTC) Received: by pabkd10 with SMTP id kd10so30635279pab.2 for ; Mon, 20 Jul 2015 08:08:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=w9MF1gkveo3kRNcRJLfiNVKEWCXoJ9PvpmAXo6kLHZc=; b=08ggft+irbM1+kNIr/qIZU9l1l++CSxVL7B9GmrDu9omJIR4H3gCfuF75HxOwGoWIu V+a5viSxjxP10jsJ3G8/UA3FUAq9FZYenIUC6K2jlURoVEnhxO6AKoUkzIjpOhOa+OLT jfte4zJWcxqd8em0wgFukUCkFllpEfNZSMS472VN656etY/q/+6KVaqyMgQDNeIUpn5H YJCFkb3WfymtEC+BJ036HKydWz3pvdiwDEnqjuAX1843KuiyJC55HyuvJOI9dAa56c0E leMFuMttHdZ/ciH9WBI2deCLVd5+SxkjlhvxVyjN2eeGGKQTggmStYQ1xsMczADBgZma u9JA== X-Received: by 10.70.39.74 with SMTP id n10mr61209234pdk.57.1437404882387; Mon, 20 Jul 2015 08:08:02 -0700 (PDT) Received: from localhost ([50.0.227.100]) by smtp.gmail.com with ESMTPSA id j5sm16989618pdi.7.2015.07.20.08.08.01 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Jul 2015 08:08:01 -0700 (PDT) Date: Mon, 20 Jul 2015 08:08:21 -0700 From: Isaac Dunham To: Natanael Copa Cc: Carlo Landmeter , Alpine-devel Subject: Re: Interface names (WAS: [alpine-devel] eudev pushed to git master (edge)) Message-ID: <20150720150820.GA1567@localhost> References: <20150717115207.72d3a1e6@ncopa-desktop.alpinelinux.org> <20150717120738.0058b396@ncopa-desktop.alpinelinux.org> <20150720095212.238c437b@ncopa-desktop.alpinelinux.org> X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150720095212.238c437b@ncopa-desktop.alpinelinux.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-Virus-Scanned: ClamAV using ClamSMTP On Mon, Jul 20, 2015 at 09:52:12AM +0200, Natanael Copa wrote: > On Sat, 18 Jul 2015 11:35:50 +0200 > Carlo Landmeter wrote: > > > I also have the feeling I have to cleanup older (automatic) udev rules, > > because my nic name has changed into something weird. > > I didnt look into it too much, but i think people should really watch out > > with updating edge if they don't want to break anything. > > For the record. As mentioned on IRC, The NIC name change is to get > persistent and predictable net interface names. > > https://github.com/gentoo/eudev/blob/master/src/udev/udev-builtin-net_id.c#L20 At the latter qualification (predictable) it fails, if you're talking about mortals. > To get back the old style names you can do: > > ln -s /dev/null /etc/udev/rules.d/80-net-name-slot.rules I'd used "touch", but ln -s /dev/null is probably better since it also discards future modifications. > This also means that which NIC becomes eth0 and eth1 etc is > unpredictable. > > We will need a long term solution for this. > > The problem is that kernel will assign net interface name based on what > order they are discovered during coldplug. The way we have worked > around this in Alpine is that we sort the modaliases before doing > modprobe. That way eth0 will become eth0 every reboot, even after > kernel upgrades. Using "sort -u" is also desireable because it means that repeats of the same hardware only provoke one module load (if you have multiple USB buses or ethernet cards from the same manufacturer). > Udev developers has other solution for this problem: invent a new > naming standard for network interfaces. > > I think we want keep whatever is current for people who are upgrading. > But for new installs, what do we do? How do we name the network > interfaces? > > Do we want udev users and non-udev users have same interfaces names, or > do we want let users who don't want udev keep the old, traditional > inerface naming and let users who chose udev to get whatever upstream > udev does? > > How do we make sure that interface names does not change after reboot? > > Do we want be (partially) compatible with other distro's way to name > interfaces? (even a bad naming standard might be better than no naming > standard) I, for one, *do* *NOT* *want* udev-style names. The kernel developers worked for years on moving from driver-specific names to "ethN"/"wlanN" interface names. "Predictable" interface naming a la udev not only reverses those gains, it makes things worse since anyone who isn't using udev code can't predict interface names even if they know the driver. Udev's approach means that if I pull out a network card and replace it, I have to reconfigure /etc/network/interfaces or whatever else I use. For what it's worth, Debian Jessie (and Devuan Jessie) use /lib/udev/write_net_rules to make the kernel name that they detect first persistent. Thanks, Isaac Dunham --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---