Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Ethernet device names change Bullseye => Bookworm. How to assign unchanging name to device?

261 views
Skip to first unread message

Rick Thomas

unread,
Jun 20, 2023, 3:00:07 AM6/20/23
to
I've been upgrading my machines Bullseye => Bookworm recently. In a few of these upgrades, the name of the ethernet device changed. (E.g. enP2p32s15f0 => enP2p0s15f0) This required changes to /etc/network/interfaces in order to start up the interface.

This is only a minor inconvenience (though it may require me to take a drive out 30 miles to the location where a few of these machines reside -- no problem, it's a beautiful drive!)

However, I seem to remember that once upon a time there was a way to get (I think it involved udev) the system to assign an arbitrary name (e.g. (enet0") to a given interface based on something that doesn't change when the firmware/driver gets upgraded. For example, the MAC address for an Ethernet interface would be a good basis.

The trouble is that it was a while ago and I can't remember how to do that?

Any hints will be appreciated. Pointers to documentation on the subject would be especially helpful!

Thanks in advance!
Rick

Markus Schönhaber

unread,
Jun 20, 2023, 3:20:06 AM6/20/23
to
20.06.23, 08:36 +0200, Rick Thomas:
systemd.link should be a way to get this done:

<https://www.freedesktop.org/software/systemd/man/systemd.link.html>

--
Regards
mks
0 new messages