On 09.06.2022 00:04, Harald Dunkel wrote:
Hi folks,
after the upgrade to Debian 11 some network interfaces in my
Dell R740 got renamed. Before:
# lshw -class network -short
H/W path Device Class Description
========================================================
/0/2/0 eno1 network Ethernet Controller 10G
X550T
/0/2/0.1 eno2 network Ethernet Controller 10G
X550T
/0/3/0 eno3 network I350 Gigabit Network
Connection
/0/3/0.1 eno4 network I350 Gigabit Network
Connection
/0/103/0 ens3f0 network I350 Gigabit Network
Connection
/0/103/0.1 ens3f1 network I350 Gigabit Network
Connection
After:
# lshw -class network -short
H/W path Device Class Description
=======================================================
/0/2/0 eno1 network Ethernet Controller 10G X550T
/0/2/0.1 eno2 network Ethernet Controller 10G X550T
/0/3/0 eno3 network I350 Gigabit Network
Connection
/0/3/0.1 eno4 network I350 Gigabit Network
Connection
/0/103/0 enp94s0f0 network I350 Gigabit Network
Connection
/0/103/0.1 enp94s0f1 network I350 Gigabit Network
Connection
How comes? AFAIR these predictable interface names had been introduced
to get *stable* names, if the hardware is changed. Since it is more
likely to get a kernel upgrade than new network hardware I wonder of the
predictable names could be made even more predictable?
For me the best solution is to manually create .link¹ files for every
interface, to name them to something nice, like "ether0" or "wan0".
[1] https://www.freedesktop.org/software/systemd/man/systemd.link.html
--
With kindest regards, Alexander.
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀⠀⠀⠀