DHCPv6 ipv6 - static mappings [solved]

Started by RamSense, December 01, 2021, 07:48:31 PM

Previous topic - Next topic
December 01, 2021, 07:48:31 PM Last Edit: December 06, 2021, 08:19:50 AM by RamSense
My ISP has just enabled ipv6.

I followed this guide: https://homenetworkguy.com/how-to/configure-ipv6-opnsense-with-isp-such-as-comcast-xfinity/
and all works and I have ipv6.

under Services - DHCPv6 - leases I can see some devices and make lease type static. But why are not all ipv6 devices showing up? When I look in AdGuard Home I can see the other devices working and dns queries, but they do not automatically show up in opnsense-services-DHCPv6. Is this a bug? Or what do I have to do?
Deciso DEC850v2

You're probably seeing SLAAC generated addresses - for devices that are also receiving DHCPv6 addresses, and for devices that are not (eg Android devices)

Can there be SLAAC generated addresses while I have set opnsense to [track interface]?
under opnsene-interfaces-lan-IPv6 Configuration Type -> Track interface
Deciso DEC850v2

What mode is set under services/router advertisements?

Router Advertisements is set to [managed]
Deciso DEC850v2

OK. That should mean DHCPv6 only. You can check on clients that they only have the DHCPv6 address and no other IPv6 address except for link-local

It's also possible that until you set that RA setting, clients generated SLAAC addresses (by default OPN does SLAAC unless you change it) and they have not yet been deprecated. If a client has SLAAC addresses you can test this by rebooting it - the SLAAC addresses should go away

Otherwise I'm not sure what you are observing because my setup is SLAAC only (plus DNS records)

thnx. sounds like a possibility. I will reboot some devices and opnsense to see what happens...
Deciso DEC850v2

I did reboot opnsense yesterday and waited until today to boot a laptop to see what happens.
And indeed, the laptop did show up in DHCPv6! so I will do that with other devices also. thnx for the depreciated hint.

I also noticed that with the reboot of opnsense my wan ipv4 stayed the same as normal. But my ipv6 did change.
Than I remembered the guide: https://homenetworkguy.com/how-to/configure-ipv6-opnsense-with-isp-such-as-comcast-xfinity/

interfaces - WAN - prevent release (see the attached picture from that guide website)

I can not find that setting on interfaces - wan page. Where is this setting now?
Deciso DEC850v2

Looks like it has been removed recently? Not sure exactly which version

Not sure it would help you much if your ISP stupidly changes your prefix regularly tho

humm... ok. well I'll keep a watch on this setting and hoping it will show up again with the next update of opnsense :-)
Deciso DEC850v2

You'll find the 'no release' option in Intefaces->Settings. You'll need to reboot after you save and apply.
OPNsense 25.7a - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

@Marjohn56: Thanks. Found it!
Deciso DEC850v2

December 02, 2021, 07:52:03 PM #12 Last Edit: December 05, 2021, 08:26:30 AM by RamSense
---
Deciso DEC850v2

December 05, 2021, 08:29:29 AM #13 Last Edit: December 05, 2021, 10:56:58 AM by RamSense
I have IPV6 running and added the devices with the static option.
But now I noticed that the devices added to static works fine on that day, and the next day it does not get its IPV6 ip anymore......

Removing the device from static list to add again did not work, device did not get ipv6 (MacBook Pro)

I finally decided to reboot opnsense, and than ipv6 worked again. The removed device got its ipv6 ip back (although not added as static anymore) and received the same ipv6 ip as before. The static iPhones got an ipv6 fe80:. than on the iPhones After setting wifi off and on again it got its static ipv6 ip again also.
The Synology NAS got its static ipv6 ip again...
How is it that opnsense IPV6 stops working after a day? Others having problems with this? How to solve? Or has it to do with the static ipv6? config error? To me it looks like a bug in opnsense or FreeBSD

Thanks in advance for the help!
Deciso DEC850v2

This, we are pretty certain is an issue with FreeBSD12 and IPv6 multicast, it's been a pain in the a**** all the time we've been on FreeBSD12. Hopefully the move to FreeBSD13 in 22.1 will see the end of it. Currently the only solution appears to be a Cron event to restart dhcpdv6 and radvd every 12 hours or so. It doesn't happen every day and my system may run for a week or more without the issue appearing but sure as night follows day, it will happen at some point.


Franco spent a lot of time trying to resolve this, and did improve it, but sadly did not solve it.
OPNsense 25.7a - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member