Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #239493

Re: How to avoid systemd/udev unpredictable NIC names

From Steve Keller <keller.steve@gmx.de>
Newsgroups linux.debian.user
Subject Re: How to avoid systemd/udev unpredictable NIC names
Date 2021-08-31 01:30 +0200
Message-ID <CRYT0-3TC-9@gated-at.bofh.it> (permalink)
References <CRWeu-1Vv-15@gated-at.bofh.it> <CRWHw-2st-15@gated-at.bofh.it> <CRX0S-2HW-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Greg Wooledge <greg@wooledge.org> writes:

> On Mon, Aug 30, 2021 at 04:41:55PM -0400, Dan Ritter wrote:
> > Steve Keller wrote:
> > > I plan to upgrade a server from	Debian stretch to buster.  Having read
> > > the release notes I wonder what's the best way to avoid the new scheme
> > > of unpredictable network interface names.
> >
> > In /etc/default/grub, assuming that you are booting with grub,
> >
> > GRUB_CMDLINE_LINUX_DEFAULT="quiet net.ifnames=0"
> >
> > The "quiet" is not necessary and is a different feature.
>
> This gives unpredictable results if the system has more than one
> ethernet interface, or more than one wireless interface.
>
> It's fine on systems that have 0-1 ethernet and 0-1 wireless NICs.

OK, several people suggested the kernel command-line option
net.ifnames=0.  Since I almost never change hardware configurations
this is probably OK even with my two NICs, one on the mainboard, the
second is a PCI card.  If the kernel should really change the
enumeration of the cards in some future, I will do something about
that.

In buster I still need to disable the
/etc/udev/rules.d/70-persistent-net.rule file since the kernel cmdline
option doesn't deactivate this.  AFAIK, the kernel cmdline option only
ends up in the environment of process 1, i.e. systemd.  Will systemd
communicate this to udev in a future Debian release or how is that
supposed to work.  The wiki says, the plan for buster was to not
support this .rules file.

My other option would be customized names using systemd.link files.
While I prefer eth<n> I would then probably use en<0>, since the wiki
recommends not using eth<n>.  I still don't understand, why eth<n> in
a systemd.link file would be a problem, since in the udev .rules this
has worked for years.

Steve

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

How to avoid systemd/udev unpredictable NIC names Steve Keller <keller.steve@gmx.de> - 2021-08-30 22:40 +0200
  Re: How to avoid systemd/udev unpredictable NIC names Greg Wooledge <greg@wooledge.org> - 2021-08-30 23:00 +0200
    Re: How to avoid systemd/udev unpredictable NIC names Andrei POPESCU <andreimpopescu@gmail.com> - 2021-08-31 12:50 +0200
      Re: How to avoid systemd/udev unpredictable NIC names Greg Wooledge <greg@wooledge.org> - 2021-08-31 13:40 +0200
      Re: How to avoid systemd/udev unpredictable NIC names Reco <recoverym4n@enotuniq.net> - 2021-08-31 16:00 +0200
        Re: How to avoid systemd/udev unpredictable NIC names Andrei POPESCU <andreimpopescu@gmail.com> - 2021-09-01 19:30 +0200
  Re: How to avoid systemd/udev unpredictable NIC names Dan Ritter <dsr@randomstring.org> - 2021-08-30 23:10 +0200
    Re: How to avoid systemd/udev unpredictable NIC names Dan Ritter <dsr@randomstring.org> - 2021-08-30 23:30 +0200
    Re: How to avoid systemd/udev unpredictable NIC names Greg Wooledge <greg@wooledge.org> - 2021-08-30 23:30 +0200
      Re: How to avoid systemd/udev unpredictable NIC names IL Ka <kazakevichilya@gmail.com> - 2021-08-30 23:50 +0200
        Re: How to avoid systemd/udev unpredictable NIC names Greg Wooledge <greg@wooledge.org> - 2021-08-31 00:10 +0200
          Re: How to avoid systemd/udev unpredictable NIC names Steve Keller <keller.steve@gmx.de> - 2021-08-31 02:10 +0200
            Re: How to avoid systemd/udev unpredictable NIC names Greg Wooledge <greg@wooledge.org> - 2021-08-31 02:50 +0200
              Re: How to avoid systemd/udev unpredictable NIC names Tixy <tixy@yxit.co.uk> - 2021-08-31 22:10 +0200
        Re: How to avoid systemd/udev unpredictable NIC names Thomas Hochstein <thh@thh.name> - 2021-08-31 00:50 +0200
      Re: How to avoid systemd/udev unpredictable NIC names Steve Keller <keller.steve@gmx.de> - 2021-08-31 01:30 +0200
        Re: How to avoid systemd/udev unpredictable NIC names <tomas@tuxteam.de> - 2021-08-31 08:30 +0200
        Re: How to avoid systemd/udev unpredictable NIC names Andrei POPESCU <andreimpopescu@gmail.com> - 2021-08-31 12:50 +0200
        Re: How to avoid systemd/udev unpredictable NIC names David Wright <deblis@lionunicorn.co.uk> - 2021-08-31 16:30 +0200
  Re: How to avoid systemd/udev unpredictable NIC names IL Ka <kazakevichilya@gmail.com> - 2021-08-30 23:30 +0200
  Re: How to avoid systemd/udev unpredictable NIC names Roberto C. Sánchez <roberto@debian.org> - 2021-08-31 01:30 +0200
    Re: How to avoid systemd/udev unpredictable NIC names Steve Keller <keller.steve@gmx.de> - 2021-08-31 02:10 +0200
  Re: How to avoid systemd/udev unpredictable NIC names George Shuklin <george.shuklin@gmail.com> - 2021-08-31 15:50 +0200

csiph-web