[systemd-devel] eth2: Failed to rename network interface 6 from 'eth2' to 'eno1': File exists

Harald Dunkel harald.dunkel at aixigo.com
Thu Jan 6 08:42:16 UTC 2022


On 2022-01-05 21:48:11, Michael Biebl wrote:
> Am Mi., 5. Jan. 2022 um 13:50 Uhr schrieb Mantas Mikulėnas <grawity at gmail.com>:
>> It does, yes, but note this part:
>>
>> Jan 03 11:30:14 nasl002b.example.com kernel: igb 0000:02:00.2 eth4: renamed from eth2
>> Jan 03 11:30:14 nasl002b.example.com kernel: igb 0000:02:00.3 eth5: renamed from eth3
>>
>> Here the kernel-assigned names (eth2, eth3) are being renamed to custom names (eth4, eth5). That's not something systemd or udev does by default. It suggests that you likely have old "70-persistent-net" udev rules (or something similar) that assign custom eth* names separately from the slot-based "predictable" naming – perhaps a leftover from Debian 7.
>>
>> These interfaces aren't being skipped due to an earlier conflict – they are intentionally skipped by 80-net-setup-link.rules because they already have a custom 'NAME=' assigned by an earlier rule, so the "predictable" name is not applied to avoid breaking existing configuration.
> 
> Yes, please check if you have a leftover file
> /etc/udev/rules.d/70-persistent-net.rules
> See also the relevant NEWS entry in /usr/share/doc/udev/NEWS.Debian.gz
> 

You are right about Debian 7 wrt 70-persistent-net.rules, but for Debian
10 I had used net.ifnames=0. It was changed to 1 after(!) the upgrade to
Debian 11:


root at nasl002b:/etc/default# git diff 0b18eef098908adf5a5478c2938c0228f971494d 0bcaa7872b54f31bfe0f1ed8cf403a7990844746 -- grub
diff --git a/default/grub b/default/grub
index c723e1f..5b5e60b 100644
--- a/default/grub
+++ b/default/grub
@@ -6,8 +6,8 @@
  GRUB_DEFAULT=0
  GRUB_TIMEOUT=5
  GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
-GRUB_CMDLINE_LINUX_DEFAULT="net.ifnames=0 vsyscall=emulate quiet"
-GRUB_CMDLINE_LINUX="net.ifnames=0 vsyscall=emulate nfs.nfs4_unique_id=43705d58-c986-4b4b-9205-50040cbdd9c6"
+GRUB_CMDLINE_LINUX_DEFAULT="net.ifnames=1 vsyscall=emulate quiet"
+GRUB_CMDLINE_LINUX="net.ifnames=1 vsyscall=emulate nfs.nfs4_unique_id=43705d58-c986-4b4b-9205-50040cbdd9c6"

  # Uncomment to enable BadRAM filtering, modify to suit your needs
  # This works with Linux (no patch required) and with any kernel that obtains



Regards

Harri


More information about the systemd-devel mailing list