You are not logged in.

#1 2022-10-14 07:05:12

alxndr13
Member
Registered: 2016-09-22
Posts: 13

systemd-networkd lost carrier when resume after suspend

There was a similar issue back in the days with the 5.7 kernel here:
https://github.com/systemd/systemd/issues/16696

basically the issue is the following:

- starting the machine, networking works
- resume after suspend, networking does not work
- restarting systemd-networkd, then everything runs again.

Logs after resume:

Oct 14 08:44:30 bravo systemd-networkd[826]: enp7s0f3u2c4i2: Link DOWN
Oct 14 08:44:30 bravo systemd-networkd[826]: enp7s0f3u1u2: Lost carrier
Oct 14 08:44:30 bravo systemd-networkd[826]: enp7s0f3u1u2: DHCP lease lost
Oct 14 08:44:30 bravo systemd-networkd[826]: enp7s0f3u1u2: DHCPv6 lease lost
Oct 14 08:44:30 bravo systemd-networkd[826]: enp7s0f3u1u2: Gained carrier
Oct 14 08:44:31 bravo systemd-networkd[826]: enp7s0f3u1u2: DHCPv4 address 192.168.178.37/24, gateway 192.168.178.1 acquired from 192.168.178.1
Oct 14 08:44:31 bravo systemd-networkd[826]: enp7s0f3u1u2: DHCP lease lost
Oct 14 08:44:31 bravo systemd-networkd[826]: enp7s0f3u1u2: DHCPv6 lease lost
Oct 14 08:44:31 bravo systemd-networkd[826]: enp5s0: DHCPv6 lease lost
Oct 14 08:44:31 bravo systemd-networkd[826]: enp7s0f3u1u2: DHCPv4 address 192.168.178.37/24, gateway 192.168.178.1 acquired from 192.168.178.1
Oct 14 08:44:31 bravo systemd-networkd[826]: enp2s0f0: DHCPv6 lease lost
Oct 14 08:44:31 bravo systemd-networkd[826]: wlan0: found matching network '/etc/systemd/network/20-wlan.network', based on potentially unpredictable interface name.
Oct 14 08:44:31 bravo systemd-networkd[826]: wlan0: DHCPv6 lease lost
Oct 14 08:44:31 bravo systemd-networkd[826]: enp7s0f3u1u2: Link DOWN
Oct 14 08:44:31 bravo systemd-networkd[826]: enp7s0f3u1u2: Lost carrier
Oct 14 08:44:31 bravo systemd-networkd[826]: enp7s0f3u1u2: DHCP lease lost
Oct 14 08:44:31 bravo systemd-networkd[826]: enp7s0f3u1u2: DHCPv6 lease lost
Oct 14 08:44:31 bravo systemd-networkd[826]: enp2s0f0: Link UP
Oct 14 08:44:31 bravo systemd-networkd[826]: enp5s0: Link UP
Oct 14 08:44:31 bravo systemd-networkd[826]: enp7s0f3u1u2: Link UP
Oct 14 08:44:31 bravo systemd-networkd[826]: enp7s0f3u1u2: Gained carrier
Oct 14 08:44:31 bravo systemd-networkd[826]: enp7s0f3u1u2: Lost carrier
Oct 14 08:44:32 bravo systemd-networkd[826]: enp7s0f3u1u2: DHCPv6 lease lost
Oct 14 08:44:32 bravo systemd-networkd[826]: enp7s0f3u1u2: Gained carrier
Oct 14 08:44:32 bravo systemd-networkd[826]: enp7s0f3u1u2: Could not set DHCPv4 route: Invalid prefsrc address. Invalid argument
Oct 14 08:44:32 bravo systemd-networkd[826]: enp7s0f3u1u2: Failed
Oct 14 08:44:32 bravo systemd-networkd[826]: wlan0: Link UP

My setup:

Kernel:

5.19.14-hardened1-1-hardened

Machine:

ThinkPad T14 Gen 1

Cannot exactly say since when the issue is present, but must be some of the last few kernels..

Does anyone of you has the same issue and fixed it?

Last edited by alxndr13 (2022-10-14 07:05:31)

Offline

Board footer

Powered by FluxBB