Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5118

Networking and servers • Re: Too many dhcp6 leases in logs?

$
0
0
Hey pi-anazazi, thanks for the answer.
ipv6 is a pain and hardly controllable. Add to /boot/config.txt kernel boot line:

Code:

ipv6.disable=1
and reboot.
I guess you mean cmdline.txt instead of config.txt . Also, these files are placed in /boot/firmware/ nowadays, at least on my pi 5.


This works, but then my docker containers start complaining in the log (see below), so I reverted it. :D

Code:

# journalctl -b | grep eth0Apr 23 21:06:21 raspberrypi dockerd[905]: time="2024-04-23T21:06:21.651047556+02:00" level=warning msg="Cannot configure IPv6 forwarding on container interface. Has IPv6 been disabled in this node's kernel?" error="stat /proc/sys/net/ipv6/conf/eth0/disable_ipv6: no such file or directory"
With

Code:

sudo nmtui
you can edit the network interfaces and disable ipv6 for each manually.
I tried the nmtui method to disable ipv6 for the two specific networks (eth0 and wlan0) and it seems like it works. The logs are clear from ipv6 lease entries and also from dockerd complaints, as the network docker0 can have its own ipv6 lease.

Thanks! I'll try like this for a while and see if it really is stable and functioning.

I wonder though, why does something like this happen in the first place...

Statistics: Posted by loveisfoss — Tue Apr 23, 2024 7:20 pm



Viewing all articles
Browse latest Browse all 5118

Trending Articles