6rd + Kea DHCPv6-PD with dynamic prefixes woes.

Started by HiTekRedNek, Today at 03:07:29 AM

Previous topic - Next topic
My ISP only provides IPv6 via 6rd. I was attempting to use Identity Association plus Kea's IPv6 to pass a dynamic /60 PD to my core switch.

The problem is that my WAN interface doesn't have an IPv6 address or prefix. That's the wan_stf interface. But the code doesn't seem to look there for dynamic prefix option in Kea -> DHCPv6

It just passes "dead:beef:x:x:x" as the prefix, never the actual prefix given to me via 6rd.

Today at 06:05:28 AM #1 Last Edit: Today at 06:29:18 AM by Monviech (Cedrik)
The code only cares for a prefix existing in this file:

https://github.com/opnsense/core/blob/8b88393932c94b7dafea941803ae0fe34f966888/src/opnsense/mvc/app/library/OPNsense/Interface/Autoconf.php#L41

So if in your case there is no delegated prefix with a file like "/tmp/igc1_prefixv6" (-dont know the exact name right now, also depends on your interface name-) containing your prefix it will fall back to dead:beef so kea doesnt crash.

Please say where in your case the delegated prefix is written to.

6rd does not necessarily provide a DHCPv6-delegated prefix. The available prefix may instead be derived from the 6rd configuration and the WAN IPv4 address.
Can you show your 6rd configuration and where OPNsense exposes the resulting IPv6 prefix? We currently consume the prefix made available through the normal interface prefix file mechanism.
Hardware:
DEC740