Dhcpcd unable to get a Lease Renewal

I installed ipfire on a fresh apu2 Hardware using 2.25 Update 150, then later Updated to 151.

Dhcpcd on the apu2 is used to get a Dynamic ip from my internet router. This Works fine until After some hours, when ipfire tries to Renew the lease…
I tried Wired end Wireless Connections between ipfire end the Internet Router, to excluded many Potential HW problems in any level.
Lease Renewal is normally 10days, so Why so frequent Problems?
Here is the log:

IPFire diagnostics
Section: red
Date: November 29, 2020

03:53:26 dhcpcd[13523] : red0: carrier lost
03:53:27 dhcpcd[13523] : red0: deleting route to 192.168.178.0/24
03:53:27 dhcpcd[13523] : red0: deleting default route via 192.168.178.1
03:53:35 dhcpcd[13523] : red0: carrier acquired
03:53:35 dhcpcd[13523] : red0: IAID 45:4b:ae:aa
03:53:35 dhcpcd[13523] : red0: soliciting an IPv6 router
03:53:36 dhcpcd[13523] : red0: rebinding lease of 192.168.178.39
03:53:39 dhcpcd[13523] : red0: probing address 192.168.178.39/24
03:53:43 dhcpcd[13523] : red0: leased 192.168.178.39 for 864000 seconds
03:53:43 dhcpcd[13523] : red0: adding route to 192.168.178.0/24
03:53:43 dhcpcd[13523] : red0: adding default route via 192.168.178.1
15:59:21 dhcpcd[13523] : red0: carrier lost
15:59:22 dhcpcd[13523] : red0: deleting route to 192.168.178.0/24
15:59:22 dhcpcd[13523] : red0: deleting default route via 192.168.178.1
15:59:30 dhcpcd[13523] : red0: carrier acquired
15:59:30 dhcpcd[13523] : red0: IAID 45:4b:ae:aa
15:59:30 dhcpcd[13523] : red0: soliciting an IPv6 router
15:59:31 dhcpcd[13523] : red0: rebinding lease of 192.168.178.39
15:59:34 dhcpcd[13523] : red0: probing address 192.168.178.39/24
15:59:39 dhcpcd[13523] : red0: leased 192.168.178.39 for 864000 seconds
15:59:39 dhcpcd[13523] : red0: adding route to 192.168.178.0/24
15:59:39 dhcpcd[13523] : red0: adding default route via 192.168.178.1
22:00:52 dhcpcd[13523] : red0: carrier lost
22:00:52 dhcpcd[13523] : red0: deleting route to 192.168.178.0/24
22:00:52 dhcpcd[13523] : red0: deleting default route via 192.168.178.1
22:01:01 dhcpcd[13523] : red0: carrier acquired
22:01:01 dhcpcd[13523] : red0: IAID 45:4b:ae:aa
22:01:01 dhcpcd[13523] : red0: rebinding lease of 192.168.178.39
22:01:01 dhcpcd[13523] : red0: soliciting an IPv6 router
22:01:06 dhcpcd[13523] : red0: probing address 192.168.178.39/24
22:01:11 dhcpcd[13523] : red0: leased 192.168.178.39 for 864000 seconds
22:01:11 dhcpcd[13523] : red0: adding route to 192.168.178.0/24
22:01:11 dhcpcd[13523] : red0: adding default route via 192.168.178.1

What could bei wrong?
i observed that quite some traffic from the internet router is blocked from ipfire…maybe too much for this?

Dirk

Welcome to the IPFire Community. :smile:

The lines with “red0: carrier lost” indicate that the internet signal coming to IPFire stopped. In all three cases about 9 secs later the signal was back and was acquired again.
To me that would suggest a problem either with your modem/router unit or with the line coming into the modem/router.
Can you login to your modem/router and does it have logs that you can also check.

It looks like you have tested various connection methods between IPFire and the modem/router already. Did this include trying with red connected to a different network port on your apu2. Of course you would have to change this via the setup programme. Depending on how critical your system availability is you may or may not want to try that.

Yes, i tried with re-Configuration in the Console to use different cat5 Ports&cables and also with the apu2 builtin Wireless Moduleas red0.
When i connect my enddevices directly to the internet router, i did not observe any disconnets towards them or one the internet side.

This the Log from the router, stating to be online since 21.11.:

verbunden seit 21.11.2020, 20:22 Uhr, Geschwindigkeit des Internetzugangs (verfügbare Bitrate): ↓ 61,7 Mbit/s ↑ 12,3 Mbit

However, 2274 Hits from the router were blocked from ipfire:

Time	Chain	Iface	Proto	Source	Src Port	Destination	Dst Port
12:20:43	DROP_INPUT	red0	UDP	
192.168.178.1
138	
192.168.178.255
138
12:21:18	DROP_INPUT	red0	UDP	
192.168.178.1
53805	
255.255.255.255
53805
12:21:28	DROP_INPUT	red0	2	
192.168.178.1
224.0.0.1
12:21:43	DROP_INPUT	red0	UDP	
192.168.178.1
138	
192.168.178.255
138
12:22:28	DROP_INPUT	red0	2	
192.168.178.1
224.0.0.1
12:22:43	DROP_INPUT	red0	UDP	
192.168.178.1
138	
192.168.178.255
138
12:23:28	DROP_INPUT	red0	2	
192.168.178.1
224.0.0.1
12:23:43	DROP_INPUT	red0	UDP	
192.168.178.1
138	
192.168.178.255
138
12:24:28	DROP_INPUT	red0	2	
192.168.178.1
224.0.0.1
12:24:43	DROP_INPUT	red0	UDP	
192.168.178.1
138	
192.168.178.255
138
12:25:28	DROP_INPUT	red0	2	
192.168.178.1
224.0.0.1
12:25:43	DROP_INPUT	red0	UDP	
192.168.178.1
138	
192.168.178.255
138
12:25:49	DROP_INPUT	red0	TCP	
192.168.178.1
42813	
192.168.178.39
80
12:25:50	DROP_INPUT	red0	TCP	
192.168.178.1
42813	
192.168.178.39
80
12:25:52	DROP_INPUT	red0	TCP	
192.168.178.1
42813	
192.168.178.39
80
12:25:56	DROP_INPUT	red0	TCP	
192.168.178.1
42813	
192.168.178.39
80
12:26:28	DROP_INPUT	red0	2	
192.168.178.1
224.0.0.1
12:26:44	DROP_INPUT	red0	UDP	
192.168.178.1
138	
192.168.178.255
138
12:27:28	DROP_INPUT	red0	2	
192.168.178.1
224.0.0.1
12:27:44	DROP_INPUT	red0	UDP	
192.168.178.1
138	
192.168.178.255
138
12:28:28	DROP_INPUT	red0	2	
192.168.178.1
224.0.0.1
12:28:44	DROP_INPUT	red0	UDP	
192.168.178.1
138	
192.168.178.255
138
12:29:28	DROP_INPUT	red0	2	
192.168.178.1
224.0.0.1
12:29:44	DROP_INPUT	red0	UDP	
192.168.178.1
138	
192.168.178.255
138
12:30:28	DROP_INPUT	red0	2	
192.168.178.1
224.0.0.1
12:30:44	DROP_INPUT	red0	UDP	
192.168.178.1
138	
192.168.178.255
138
12:31:08	DROP_INPUT	red0	TCP	
192.168.178.1
58669	
192.168.178.39
80
12:31:09	DROP_INPUT	red0	TCP	
192.168.178.1
58669	
192.168.178.39
80
12:31:11	DROP_INPUT	red0	TCP	
192.168.178.1
58669	
192.168.178.39
80
12:31:15	DROP_INPUT	red0	TCP	
192.168.178.1
58669	
192.168.178.39
80
12:31:18	DROP_INPUT	red0	UDP	
192.168.178.1
53805	
255.255.255.255
53805
12:31:28	DROP_INPUT	red0	2	
192.168.178.1
224.0.0.1
12:31:44	DROP_INPUT	red0	UDP	
192.168.178.1
138	
192.168.178.255
138
12:32:28	DROP_INPUT	red0	2	
192.168.178.1
224.0.0.1
12:32:44	DROP_INPUT	red0	UDP	
192.168.178.1
138	
192.168.178.255
138
12:33:28	DROP_INPUT	red0	2	
192.168.178.1
224.0.0.1
12:33:44	DROP_INPUT	red0	UDP	
192.168.178.1
138	
192.168.178.255
138
12:34:28	DROP_INPUT	red0	2	
192.168.178.1
224.0.0.1
12:34:44	DROP_INPUT	red0	UDP	
192.168.178.1
138	
192.168.178.255
138
12:35:28	DROP_INPUT	red0	2	
192.168.178.1
224.0.0.1
12:35:44	DROP_INPUT	red0	UDP	
192.168.178.1
138	
192.168.178.255
138
12:36:26	DROP_INPUT	red0	TCP	
192.168.178.1
60748	
192.168.178.39
80
12:36:27	DROP_INPUT	red0	TCP	
192.168.178.1
60748	
192.168.178.39
80
12:36:28	DROP_INPUT	red0	2	
192.168.178.1
224.0.0.1
12:36:29	DROP_INPUT	red0	TCP	
192.168.178.1
60748	
192.168.178.39
80
12:36:33	DROP_INPUT	red0	TCP	
192.168.178.1
60748	
192.168.178.39
80
12:36:45	DROP_INPUT	red0	UDP	
192.168.178.1
138	
192.168.178.255
138
12:37:28	DROP_INPUT	red0	2	
192.168.178.1
224.0.0.1
12:37:45	DROP_INPUT	red0	UDP	
192.168.178.1
138	
192.168.178.255
138
12:38:28	DROP_INPUT	red0	2	
192.168.178.1
224.0.0.1
12:38:45	DROP_INPUT	red0	UDP	
192.168.178.1
138	
192.168.178.255
138
12:39:28	DROP_INPUT	red0	2	
192.168.178.1
224.0.0.1
12:39:45	DROP_INPUT	red0	UDP	
192.168.178.1
138	
192.168.178.255
138
12:40:28	DROP_INPUT	red0	2	
192.168.178.1
224.0.0.1
12:40:45	DROP_INPUT	red0	UDP	
192.168.178.1
138	
192.168.178.255
138
12:41:18	DROP_INPUT	red0	UDP	
192.168.178.1
53805	
255.255.255.255
53805
12:41:28	DROP_INPUT	red0	2	
192.168.178.1
224.0.0.1
12:41:45	DROP_INPUT	red0	UDP	
192.168.178.1
138	
192.168.178.255
138
12:41:45	DROP_INPUT	red0	TCP	
192.168.178.1
44237	
192.168.178.39
80
12:41:46	DROP_INPUT	red0	TCP	
192.168.178.1
44237	
192.168.178.39
80
12:41:48	DROP_INPUT	red0	TCP	
192.168.178.1
44237	
192.168.178.39
80
12:41:52	DROP_INPUT	red0	TCP	
192.168.178.1
44237	
192.168.178.39
80
12:42:28	DROP_INPUT	red0	2	
192.168.178.1
224.0.0.1
12:42:45	DROP_INPUT	red0	UDP	
192.168.178.1
138	
192.168.178.255
138
12:43:28	DROP_INPUT	red0	2	
192.168.178.1
224.0.0.1
12:43:45	DROP_INPUT	red0	UDP	
192.168.178.1
138	
192.168.178.255
138
12:44:28	DROP_INPUT	red0	2	
192.168.178.1
224.0.0.1
12:44:45	DROP_INPUT	red0	UDP	
192.168.178.1
138	
192.168.178.255
138
12:45:28	DROP_INPUT	red0	2	
192.168.178.1
224.0.0.1
12:45:45	DROP_INPUT	red0	UDP	
192.168.178.1
138	
192.168.178.255
138
12:46:28	DROP_INPUT	red0	2	
192.168.178.1
224.0.0.1
12:46:46	DROP_INPUT	red0	UDP	
192.168.178.1
138	
192.168.178.255
138
12:47:11	DROP_INPUT	red0	TCP	
192.168.178.1
54496	
192.168.178.39
80
12:47:28	DROP_INPUT	red0	2	
192.168.178.1
224.0.0.1
12:47:46	DROP_INPUT	red0	UDP	
192.168.178.1
138	
192.168.178.255
138
12:48:28	DROP_INPUT	red0	2	
192.168.178.1
224.0.0.1
12:48:46	DROP_INPUT	red0	UDP	
192.168.178.1
138	
192.168.178.255
138
12:49:28	DROP_INPUT	red0	2	
192.168.178.1
224.0.0.1
12:49:46	DROP_INPUT	red0	UDP	
192.168.178.1
138	
192.168.178.255
138
12:50:28	DROP_INPUT	red0	2	
192.168.178.1
224.0.0.1
12:50:46	DROP_INPUT	red0	UDP	
192.168.178.1
138	
192.168.178.255
138
12:51:18	DROP_INPUT	red0	UDP	
192.168.178.1
53805	
255.255.255.255
53805
12:51:28	DROP_INPUT	red0	2	
192.168.178.1
224.0.0.1
12:51:46	DROP_INPUT	red0	UDP	
192.168.178.1
138	
192.168.178.255
138
12:52:22	DROP_INPUT	red0	TCP	
192.168.178.1
60644	
192.168.178.39
80
12:52:23	DROP_INPUT	red0	TCP	
192.168.178.1
60644	
192.168.178.39
80
12:52:25	DROP_INPUT	red0	TCP	
192.168.178.1
60644	
192.168.178.39
80
12:52:28	DROP_INPUT	red0	2	
192.168.178.1
224.0.0.1
12:52:29	DROP_INPUT	red0	TCP	
192.168.178.1
60644	
192.168.178.39
80
12:52:46	DROP_INPUT	red0	UDP	
192.168.178.1
138	
192.168.178.255
138
12:53:28	DROP_INPUT	red0	2	
192.168.178.1
224.0.0.1
12:53:46	DROP_INPUT	red0	UDP	
192.168.178.1
138	
192.168.178.255
138
12:54:28	DROP_INPUT	red0	2	
192.168.178.1
224.0.0.1
12:54:46	DROP_INPUT	red0	UDP	
192.168.178.1
138	
192.168.178.255
138
12:55:28	DROP_INPUT	red0	2	
192.168.178.1
224.0.0.1
12:55:46	DROP_INPUT	red0	UDP	
192.168.178.1
138	
192.168.178.255
138
12:56:28	DROP_INPUT	red0	2	
192.168.178.1
224.0.0.1
12:56:47	DROP_INPUT	red0	UDP	
192.168.178.1
138	
192.168.178.255
138
12:57:28	DROP_INPUT	red0	2	
192.168.178.1
224.0.0.1
12:57:40	DROP_INPUT	red0	TCP	
192.168.178.1
40895	
192.168.178.39
80
12:57:41	DROP_INPUT	red0	TCP	
192.168.178.1
40895	
192.168.178.39
80
12:57:43	DROP_INPUT	red0	TCP	
192.168.178.1
40895	
192.168.178.39
80
12:57:47	DROP_INPUT	red0	UDP	
192.168.178.1
138	
192.168.178.255
138
12:57:47	DROP_INPUT	red0	TCP	
192.168.178.1
40895	
192.168.178.39
80
12:58:28	DROP_INPUT	red0	2	
192.168.178.1
224.0.0.1
12:58:47	DROP_INPUT	red0	UDP	
192.168.178.1
138	
192.168.178.255
138
12:59:28	DROP_INPUT	red0	2	
192.168.178.1
224.0.0.1
12:59:47	DROP_INPUT	red0	UDP	
192.168.178.1
138	
192.168.178.255
138
13:00:28	DROP_INPUT	red0	2	
192.168.178.1
224.0.0.1
13:00:47	DROP_INPUT	red0	UDP	
192.168.178.1
138	
192.168.178.255
138
13:01:18	DROP_INPUT	red0	UDP	
192.168.178.1
53805	
255.255.255.255
53805
13:01:28	DROP_INPUT	red0	2	
192.168.178.1
224.0.0.1
13:01:47	DROP_INPUT	red0	UDP	
192.168.178.1
138	
192.168.178.255
138
13:02:28	DROP_INPUT	red0	2	
192.168.178.1
224.0.0.1
13:02:47	DROP_INPUT	red0	UDP	
192.168.178.1
138	
192.168.178.255
138
13:02:58	DROP_INPUT	red0	TCP	
192.168.178.1
59268	
192.168.178.39
80
13:02:59	DROP_INPUT	red0	TCP	
192.168.178.1
59268	
192.168.178.39
80
13:03:01	DROP_INPUT	red0	TCP	
192.168.178.1
59268	
192.168.178.39
80
13:03:05	DROP_INPUT	red0	TCP	
192.168.178.1
59268	
192.168.178.39
80
13:03:28	DROP_INPUT	red0	2	
192.168.178.1
224.0.0.1
13:03:47	DROP_INPUT	red0	UDP	
192.168.178.1
138	
192.168.178.255
138
13:04:28	DROP_INPUT	red0	2	
192.168.178.1
224.0.0.1
13:04:47	DROP_INPUT	red0	UDP	
192.168.178.1
138	
192.168.178.255
138
13:05:28	DROP_INPUT	red0	2	
192.168.178.1
224.0.0.1
13:05:47	DROP_INPUT	red0	UDP	
192.168.178.1
138	
192.168.178.255
138
13:06:28	DROP_INPUT	red0	2	
192.168.178.1
224.0.0.1
13:06:48	DROP_INPUT	red0	UDP	
192.168.178.1
138	
192.168.178.255
138
13:07:28	DROP_INPUT	red0	2	
192.168.178.1
224.0.0.1
13:07:48	DROP_INPUT	red0	UDP	
192.168.178.1
138	
192.168.178.255
138
13:08:17	DROP_INPUT	red0	TCP	
192.168.178.1
37313	
192.168.178.39
80
13:08:18	DROP_INPUT	red0	TCP	
192.168.178.1
37313	
192.168.178.39
80
13:08:20	DROP_INPUT	red0	TCP	
192.168.178.1
37313	
192.168.178.39
80
13:08:24	DROP_INPUT	red0	TCP	
192.168.178.1
37313	
192.168.178.39
80
13:08:28	DROP_INPUT	red0	2	
192.168.178.1
224.0.0.1
13:08:48	DROP_INPUT	red0	UDP	
192.168.178.1
138	
192.168.178.255
138
13:09:28	DROP_INPUT	red0	2	
192.168.178.1
224.0.0.1
13:09:48	DROP_INPUT	red0	UDP	
192.168.178.1
138	
192.168.178.255
138
13:10:28	DROP_INPUT	red0	2	
192.168.178.1
224.0.0.1
13:10:48	DROP_INPUT	red0	UDP	
192.168.178.1
138	
192.168.178.255
138
13:11:18	DROP_INPUT	red0	UDP	
192.168.178.1
53805	
255.255.255.255
53805
13:11:28	DROP_INPUT	red0	2	
192.168.178.1
224.0.0.1
13:11:48	DROP_INPUT	red0	UDP	
192.168.178.1
138	
192.168.178.255
138
13:12:28	DROP_INPUT	red0	2	
192.168.178.1
224.0.0.1
13:12:48	DROP_INPUT	red0	UDP	
192.168.178.1
138	
192.168.178.255
138
13:13:28	DROP_INPUT	red0	2	
192.168.178.1
224.0.0.1
13:13:35	DROP_INPUT	red0	TCP	
192.168.178.1
55483	
192.168.178.39
80
13:13:36	DROP_INPUT	red0	TCP	
192.168.178.1
55483	
192.168.178.39
80
13:13:38	DROP_INPUT	red0	TCP	
192.168.178.1
55483	
192.168.178.39
80
13:13:42	DROP_INPUT	red0	TCP	
192.168.178.1
55483	
192.168.178.39
80

Do you know the lease time of your router?
Is it really 864000 s = 240 h?
I think the router releases the interface after a max. lease time of 4h.

I checked my IPFire dhcpcd logs for red0 and there are no carrier lost messages anywhere.

The lease time coming from my cable modem/router is 86400 secs, so 24 hours. That is what is shown in my IPFire logs. The dhcp server in the modem/router will then check if the IP address is still being used at 50% of this and if yes then the lease time will be extended. So if the line stays working then no release of the IP address or interface will occur. In my logs, the only renew of the IP address is from when I have carried out a reboot, when IPFire releases the IP address and shuts down red0.

Pulling the cable out of my IPFire red network socket and putting it back in was the only way I could get a carrier lost message in my logs and googling for carrier lost indicated physical hardware problems. Pulling out the cable going into my cable modem/router did not cause any carrier lost message.
As you have already checked cables and used other network ports then I don’t know where else to look for the cause of your issue.

Sorry I can’t be of any more help at the moment.

Carrier lost is generated by a nic that has lose his link. After this it start autonegotiation again and get it back instantly. In the most cases this is a hardware failure. (bad cable, bad nic, unstable power supply or a bad ethernet port on the other side)

Also some modems switch of the carrier if they have lost the upstream synchronisation.

Hmmmm…i’m really clueless Now…
i found quite a lot of related posts in the forums, that turned out to be HW Problems in the end…thats why i kept trying to use different hw ports on the apu as well as on the router, Changing the cable and finally also using a wireless Connection
I have been fiddling with this issue for a month now before Posting here :pensive:
Thanks for all replies anyways! I will Keep trying

There is one Bug related to this:
Everytime red0 goes down, the Device beeps
Disabling on the web-ui Hand no Effect,
I had to rename the /etc/Init.d beep instance

i just wanted to come back to this topic after a while of testing…
first, i continued to use the wifi<->wifi setup between router and ipfire, without success.
Now since 4 days, i updated to the latest -153 revision and went back to the console to change back to a cable connection between the two.
I’m really sure, this is all i did, but since that moment i have a stable connection!!

Edit: never mind -> different core version.