#818880 dhcpcd5: sometimes removes route to local network on wakeup

Package:
dhcpcd5
Source:
dhcpcd5
Description:
DHCPv4, IPv6RA and DHCPv6 client with IPv4LL support
Submitter:
Christian Pernegger
Date:
2022-06-27 15:27:03 UTC
Severity:
important
#818880#5
Date:
2016-03-21 10:53:22 UTC
From:
To:
Hi,

I've a couple of systems that spend a lot of time in suspend and
should ideally use DHCP for network configuration. isc-dhcp client
doesn't work in that scenario because it'll never renew the lease
(#812186), so I switched to dhcpcd5.

This package will renew the lease on wakeup, but sometimes screw up
routing in the process. When it fails, the routing table, usually

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.0.1     0.0.0.0         UG    202    0        0 enp2s0
192.168.0.0     0.0.0.0         255.255.255.0   U     202    0        0 enp2s0

will be missing the second line. Since my firewall doesn't route
packets with source and destination on the LAN, that means no local
connectivity at all. ifdown enp2s0 && ifup enp2s0 helps.

It doesn't *always* happen and I haven't discerned a pattern
yet. Anyway, a journal excerpt from a failed attempt is attached, the
DHCP server is jessie's dnsmasq, in case it matters.

Regards,
Christian

#818880#10
Date:
2019-02-08 10:12:07 UTC
From:
To:
Hi,

Thanks for the report.
I haven't seen this issue, so its difficult to debug..

Could you try using the latest package in testing to see if it improves
things for you?

#818880#15
Date:
2020-05-15 14:36:34 UTC
From:
To:
On Mon, 21 Mar 2016 11:53:22 +0100 Christian Pernegger <pernegger@gmail.com> wrote:

Hi Christian,

Does this still happen for you on Buster?

#818880#20
Date:
2022-06-27 15:23:34 UTC
From:
To:
No answer from submitter in 2 years.

Closing.

Martin-Éric