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?