после обновления до bullseye повылазело:
$ dmesg | grep Fail
[ 15.689909] systemd[1]: networking.service: Failed with result 'exit-code'.
[ 15.691378] systemd[1]: Failed to start Raise network interfaces.
$ sudo systemctl status networking.service
● networking.service - Raise network interfaces
Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2021-12-15 17:30:55 CET; 5min ago
Docs: man:interfaces(5)
Process: 319 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=1/FAILURE)
Main PID: 319 (code=exited, status=1/FAILURE)
CPU: 322ms
дек 15 17:30:55 ishtar ifup[361]: Cannot find device "eth0"
дек 15 17:30:55 ishtar ifup[319]: ifup: failed to bring up eth0
Warning: journal has been rotated since unit was started, output may be incomplete.
Айпишник eth0 получила:
$ ifconfig
enxb827eb115b85: flags=-28605<UP,BROADCAST,RUNNING,MULTICAST,DYNAMIC> mtu 1500
inet 192.168.1.239 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::ba27:ebff:fe11:5b85 prefixlen 64 scopeid 0x20<link>
ether b8:27:eb:11:5b:85 txqueuelen 1000 (Ethernet)
RX packets 3481 bytes 2710011 (2.5 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2720 bytes 395436 (386.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 25 bytes 2567 (2.5 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 25 bytes 2567 (2.5 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
но откуда? В /etc/network/interfaces прописано совсем другое:
# interfaces(5) file used by ifup(8) and ifdown(8)
# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
# Include files from /etc/network/interfaces.d:
#ya source-directory /etc/network/interfaces.d
# Ethernet
auto eth0
allow-hotplug eth0
iface eth0 inet static
address 192.168.1.97
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 192.168.1.1
А dhcpcd отключено и удалено, кто так щедро айпишники раздаёт?
Добавление /etc/systemd/network/eth0.network: ( https://www.stoll-it.com/kb/software/linux-software/linux-netzwerk/use-static... )
[Match]
Name=eth0
[Network]
Address=192.168.1.97/24
Gateway=192.168.1.1
DNS=192.168.1.1
DHCP=no
Ситуацию не исправило, всё те же 192.168.1.239, откуда?
По совету товарищей ( https://wiki.archlinux.org/title/systemd-networkd#Wired_adapter_using_a_stati... ) создал /etc/systemd/network/20-wired.network , заменил в нём устройство на enxb827eb115b85 :
[Match]
# Name=enp1s0
Name=enxb827eb115b85
[Network]
Address=192.168.1.97/24
Gateway=192.168.1.1
DNS=192.168.1.1
И получил свой статический айпишник после перезапуска малинки.
К длинным и корявым именам сетевых интерфейсов претензий не имею, привязка интерфейса к физическому устройству идея хорошая и давно в воздухе витала.