Re: dhcpcd deletes IP and route after max lease time
Roy Marples
Fri Mar 23 10:22:23 2018
Hi Timo
On 23/03/2018 10:04, Timo Rothenpieler wrote:
I don't think this is an issue with dhcpcd itself, but rather with my
isc dhcpd config.
Other DHCP clients also behave a bit weird, but in different ways.
What happens is, dhcpcd gets a lease and IP just fine and for the next 6
hours everything is good. 6 hours is the max-lease-time configured in dhcpd.
After those 6 hours, dhcpcd just logs that it deletes the IP and route,
essentially downing the interface, cutting the machine from network.
I don't see anything wrong with either config.
I'm going to guess that dhcpcd expired the lease?
If you look at the logs (for debugging purposes it's good to add debug
to dhcpcd.conf) you should see dhcpcd attempting to renew and then
rebind it's existing lease before it fails.
If you see this then I would run tcpdump on the host to ensure packets
are going out and maybe a reply coming in dhcpcd misses and tcpdump on
the server to ensure packets are coming in and going out.
I see that your host has many subnets which implies many interfaces.
Could it be that the host has many interfaces too and is receiving the
DHCP reply on the wrong interface? dhcpcd-7 has code to handle that, but
no prior versions do. What version are you running?
Roy
Archive administrator: postmaster@marples.name