You are not logged in.

#1 2021-10-25 10:54:23

j1simon
Member
From: Denmark
Registered: 2016-01-28
Posts: 189

[SOLVED] systemd-udevd: Failed to rename network interface 1

$ cat /etc/udev/rules.d/10-network.rules
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="d4:5d:64:55:a0:4c", NAME="Internet"
SUBSYSTEM=="net", ACTION=="add", NAME="Internet", ATTR{tx_queue_len}="5000"
$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 3000 qdisc noqueue state UNKNOWN group default qlen 5000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
2: Internet: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 3000 qdisc cake state UP group default qlen 5000
link/ether d4:5d:64:55:a0:4c brd ff:ff:ff:ff:ff:ff
altname enp68s0
inet 10.0.0.10/24 brd 10.0.0.255 scope global dynamic noprefixroute Internet
valid_lft 86244sec preferred_lft 86244sec
$ journalctl -u systemd-udevd.service -b
...
oct 25 12:44:46 juan-PC systemd-udevd[905]: Using default interface naming scheme 'v249'.
oct 25 12:44:46 juan-PC systemd-udevd[905]: lo: Failed to rename network interface 1 from 'lo' to 'Internet': Device or resource busy
oct 25 12:44:46 juan-PC systemd-udevd[905]: lo: Failed to process device, ignoring: Device or resource busy
oct 25 12:44:46 juan-PC systemd-udevd[915]: Using default interface naming scheme 'v249'.
oct 25 12:44:46 juan-PC systemd-udevd[874]: Using default interface naming scheme 'v249'.
...

The ethernet interface "enp68s0" is renamed correctly but I have no rule to change 'lo' interface. I do not understand that error message.

Last edited by j1simon (2021-10-25 11:06:05)

Offline

#2 2021-10-25 10:57:09

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,427

Re: [SOLVED] systemd-udevd: Failed to rename network interface 1

Newlines in udev rules are new rules. Add the ATTR{tx_queue_len}="5000" to the first line remove the second (or add a == to the NAME on the second line instead of a =, but there's no point to that since you've identified the interface you want to adjust with the first rule already).

What happens is that instead of applying the tx_queue_len to the single interface you are renaming, it tries to rename every single interface including those that you shouldn't touch.

Last edited by V1del (2021-10-25 11:01:35)

Offline

#3 2021-10-25 11:05:37

j1simon
Member
From: Denmark
Registered: 2016-01-28
Posts: 189

Re: [SOLVED] systemd-udevd: Failed to rename network interface 1

Solved.
Thank you very much @V1del.

Offline

Board footer

Powered by FluxBB