You are not logged in.
$ 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
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
Solved.
Thank you very much @V1del.
Offline