1

I have a pi that is defined wi static IP in /etc/dhcpcd.conf:

interface eth0
inform 4.3.2.77
static routers=4.3.2.1

everything worked great until lately once a day I had to restart it because it was freeze. when I've tried to understand the cause I've found out a huge amount of those lines in /var/log/syslog :

Aug 12 21:47:36 raspberrypi dhcpcd[520]: veth44f813b: adding default route
Aug 12 21:47:36 raspberrypi dhcpcd[520]: eth0: deleting route to 4.0.0.0/8
Aug 12 21:47:36 raspberrypi dhcpcd[520]: eth0: deleting default route via 4.3.2.1
Aug 12 21:47:36 raspberrypi dhcpcd[520]: veth44f813b: pid 520 deleted default route
Aug 12 21:47:36 raspberrypi dhcpcd[520]: veth44f813b: adding default route
Aug 12 21:47:36 raspberrypi dhcpcd[520]: eth0: received approval for 4.3.2.77
Aug 12 21:47:36 raspberrypi dhcpcd[520]: eth0: adding route to 4.0.0.0/8
Aug 12 21:47:36 raspberrypi dhcpcd[520]: eth0: adding default route via 4.3.2.1
Aug 12 21:47:36 raspberrypi dhcpcd[520]: veth44f813b: deleting default route

the daemon log is filled with this stuff too - hundreds of MB of this...

when digging a bit more I understand what veth44f813b is, its an interface:

pi@raspberrypi:~ $ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         4.3.2.1         0.0.0.0         UG    202    0        0 eth0
4.0.0.0         0.0.0.0         255.0.0.0       U     202    0        0 eth0
link-local      0.0.0.0         255.255.0.0     U     210    0        0 veth44f813b
172.17.0.0      0.0.0.0         255.255.0.0     U     0      0        0 docker0

that is related to OpenVPN docker image I have because when I stopped it the garbage in syslog was changed to:

Aug 12 21:54:51 raspberrypi dhcpcd[520]: eth0: received approval for 4.3.2.77
Aug 12 21:54:51 raspberrypi dhcpcd[520]: eth0: received approval for 4.3.2.77
Aug 12 21:54:52 raspberrypi dhcpcd[520]: eth0: received approval for 4.3.2.77
Aug 12 21:54:52 raspberrypi dhcpcd[520]: eth0: received approval for 4.3.2.77
Aug 12 21:54:52 raspberrypi dhcpcd[520]: eth0: received approval for 4.3.2.77
Aug 12 21:54:52 raspberrypi dhcpcd[520]: eth0: received approval for 4.3.2.77

My questions are: Does this huge log is related to the system freeze?

Is this a normal behavior?

How can I prevent dhcpcd from filling the log many times each second with this stuff?

1
  • Your fundamental problem seems to be that you don't understand what the inform does.
    – Milliways
    Aug 13 '20 at 5:11
2

Ok... After searching a bit more - I've found more info here: https://www.raspberrypi.org/forums/viewtopic.php?t=265516

The reason it was filled with those messages is related to the settings in /etc/dhcpcd.conf: the inform=xxx.xxx.xxx.xxx is causing this. so I've changed it to: static ip_address=xxx.xxx.xxx.xxx instead of inform and it's solving that. I've also added noipv6 because the log was filled with those messages too.

2
  • For the potential benefit of future readers, and to echo @milliways comment to the question, I'd like to add this: This answer appears to be a case of getting the desired result (fewer log entries from dhcpcd) with an ill-advised approach. In other words, please do not assume that the inform option in dhcpcd was the cause for this. inform works perfectly well in a properly-configured network, and if you take the trouble to actually read man dhcpcd.conf you will find it should be used instead of a static IP.
    – Seamus
    Mar 28 at 21:44
  • A couple of other Q&A here that might be worth your time to read before you decide to discount use of the inform option in dhcpcd: [1](REFS: 1, 2
    – Seamus
    Mar 28 at 21:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.