are there any known gotchas with Alpine containers not retrieving any IPv6 address on a stateful DHCP setup?
I assigned the provided public IPv6/64 network to incusbr0 and configured statefull DHCP for website hosting etc. (IPv4 is backup for now and private IP)
Spinning up any Ubuntu or Debian container and assign a static IPv4 or IPv6 works without any issues. Can ping the gateway,host, internet out of the container and I can ping the container from my homenetwork. In short all working properly.
However, if I launch any Alpine container they only get an IPv4 assigned but no IPv6 regardless if I assign an address or leave it empty on Incus config. The only way to get IPv6 working in Alpine is to edit /etc/network/interfaces like this:
Results into a proper IPv6 config dynamic or static configured in Incus.
Based on the linked post IPv6 implementation in udhcpc is rather incomplete (used by Alpine). I’m pretty sure Incus or better DNSMasq does the right thing as other distros are working properly.
Think this note is key:
In summary, while udhcpc can be used for IPv6, its reliance on Router Advertisements for address assignment can lead to unstable IPv6 addresses. For more stable and manageable IPv6 networks, consider using a dedicated DHCPv6 server and client.
Not sure if there is an option to use “Router Advertisements” with Incus and if this would solve the real issue?
Would prefer a native solution but can live with the approach above. Not sure if I can call it solved.
(Aside: that link you gave doesn’t work for me. It says “Error: access denied: denied by administrative rule”. It thinks I’m an AI bot, although I’m just browsing from Firefox or Chrome with no plugins worth mentioning, definitely no Javascript blocking)
The most direct way to prove this would be: install Alpine as a VM, manually, using their supplied ISO image. If it can’t pick up an address via dhcp6 then it’s an issue with Alpine and nothing to do with Incus. You could then take it up with them directly.
If on the other hand dhcp6 client does work in the VM, then you can work out what’s different between that and the container/VM images on images.linuxcontainers.org.
Cut and paste from google, properly only works using direct google link? Search for “alpine dhcp6 client” and it came up under top 5 links. Sometimes you are able to click it only through goole.
Right, given all the things I read about it I kind of think this is an Alpine issue. Will try the ISO approach during the next days.
What I noticed, the default /etc/network/interfaces doesn’t contain anything about IPv6 which makes me believe there is no IPv6 support on default but might be mistaken.
I will admit I’m using macvlan, and simply getting the slaac router solicitations from my isps router. Router. I don’t have any need for an internal Network. Since these machines are on the internet.