Re: How to avoid systemd/udev unpredictable NIC names
On Mon, Aug 30, 2021 at 10:20:46PM +0200, 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.
>
> I don't care what PCI bus and what slot my NICs are attached to, I
> don't want to learn and don't want to have to remember this hardware
> configurationan and I don't want to type these cumbersome and error
> prone names. I simply have eth0 for the internal network and eth1 for
> my external network to the DSL router. That's easy and I want to keep
> it that way.
>
> The Debian wiki on this shows several ways involving kernel cmdline,
> udev, and systemd. I've read it, I've also read some of the sparse
> and incomplete systemd documentation for almost an hour. Still I
> don't know when and what software component (kernel, udev, systemd)
> decides the NIC names and whether and in which way these conflict each
> other. [1]
>
> Also, after reading the wiki it's still unclear to me, which of the
> several ways will survive the next upgrade to bullseye.
>
> The safest way seems to be what's called "Custom schemes" but this
> section explicitly states the names eth0, etc. shouldn't be used.
>
> So I'm still confused what to do after the upgrade to buster to keep
> my network names.
>
Since nobody else has mentioned this link, here is where I recommend you
start: https://wiki.debian.org/NetworkInterfaceNames
Regards,
-Roberto
--
Roberto C. Sánchez
Reply to: