OPNsense Forum

English Forums => Tutorials and FAQs => Topic started by: wilj81 on February 10, 2022, 03:46:27 am

Title: DHCPv6 with Windows 10
Post by: wilj81 on February 10, 2022, 03:46:27 am
This may be outdated, but I'm loosely following this to get DHCPv6 running in order to assign DNS for my pihole. However, after enabling Manual configuration and turning on DHCPv6 Windows 10 will no longer pull an IPv6 address. What's odd, is that it seemed somewhat borked in a fresh/default install of opnsense.

It's definitely broken with DHCPv6 enabled. Running ipconfig /renew6 returns this

Code: [Select]
An error occurred while renewing interface Ethernet : The cluster resource is not available.
Googling that I find nothing. Googling DHCPv6 setup on opnsense, I find a ton of folks having similar issues. I would greatly appreciate help in understanding what is going on here.

Thank you!
Title: Re: DHCPv6 with Windows 10
Post by: bartjsmit on February 10, 2022, 07:56:32 am
This works for me:

- Fixed IPv6 address for the LAN interface inside the ISP assigned range
- RADVD running on the LAN interface with pi-hole IP configured as DNS

Check with radvdump in an OPNsense shell and let all LAN machines pick up a SLAAC address.

Bart...
Title: Re: DHCPv6 with Windows 10
Post by: wilj81 on February 11, 2022, 07:06:00 am
I'm guessing you needed to enable manual mode to get that to work?
Title: Re: DHCPv6 with Windows 10
Post by: bartjsmit on February 11, 2022, 07:55:08 am
enable manual mode to get that to work?
Do you mean a manual IPv6 address on the LAN interface? It may also work with an address that tracks the WAN but my ISP delegates a static /56.
Title: Re: DHCPv6 with Windows 10
Post by: wilj81 on February 11, 2022, 11:17:34 pm
I was referring to the setting shown in the attached image (bottom of the page on Interfaces -> [LAN])

Title: Re: DHCPv6 with Windows 10
Post by: wilj81 on February 12, 2022, 08:10:54 am
I set my pihole IP as DNS, but ipconfig /all never updates to that address.
Title: Re: DHCPv6 with Windows 10
Post by: bartjsmit on February 12, 2022, 09:27:26 am
Step back a bit. There is no setting like that on the RADV page  ???

Go to Services, Router Advertisements, LAN

Router Advertisements: Unmanaged
Router Priority: High
Source Address: Automatic

Set the IPv6 address of your pi hole under DNS servers

Open a shell on the firewall and run 'radvdump'. Do you see advertisements every few minutes?

Restart the radvd service from the dashboard if needed.

Bart...
Title: Re: DHCPv6 with Windows 10
Post by: wilj81 on February 12, 2022, 08:49:52 pm
You have to enable the checkbox in the screenshot I sent before "Router Advertisements" service is listed there.

In radvdump output I see advertisements every few seconds from by WAN interface. Is that what is expected?

Thank you kindly for your help!
Title: Re: DHCPv6 with Windows 10
Post by: bartjsmit on February 13, 2022, 08:25:46 am
How do you get to that checkbox? I can't find it  :( Can you post the path from the root of the GUI please?

If I go Interfaces, LAN, there is no mention of radv. Maybe you need to undo the steps you took for DHCPv6?

IMHO there are actually very few cases where you need DHCPv6. A lot of people set it up because they are used to it in IPv4. Router advertisements take care of the basic networking (how do I get to my destination) and push out DNS settings. Most other services use multicast (IPv6 is big on multicast).

You need to see advertisements on your LAN interface. The ones on your WAN may be necessary for your ISP connection but it does nothing for SLAAC of your internal clients.

Bart...
Title: Re: DHCPv6 with Windows 10
Post by: Greelan on February 13, 2022, 09:24:58 am
It appears if the IPv6 configuration type is Track interface
Title: Re: DHCPv6 with Windows 10
Post by: wilj81 on February 15, 2022, 04:05:44 am
For the checkbox go to Interfaces->[LAN] and then scroll to the very bottom. That's where I see that checkbox. I'm running 22.1.

I'm not currently using DHCPv6. The service is definitely not running.

If I go to Services->Router Advertisements->[LAN], there is where I'm setting the following:
Router Adv: Unmanaged
Router Priority: Normal
Source Address: Automatic
Advertise Routes:
     Prefix: [EMPTY], Length: 128

Do I need to put something in prefix or does it do that automatically (I'm assuming automatically)?

I've watched radvd output for sometime and never seen an advertisement other than WAN.

Lastly, the IPv6 Configuration Type under Interfaces->[LAN] is set to "Track Interface".

Again, your help is much appreciated - thank you!


Title: Re: DHCPv6 with Windows 10
Post by: bartjsmit on February 15, 2022, 07:42:42 am
can you set the LAN interface to a static IPv6 inside your ISP range?
Title: Re: DHCPv6 with Windows 10
Post by: wilj81 on February 16, 2022, 06:36:48 am
Instead of "Track Interface"?

Meaning... set the IPv6 configuration type to "Static IPv6" and then assign an address?
Title: Re: DHCPv6 with Windows 10
Post by: bartjsmit on February 16, 2022, 07:40:55 am
Yes, that only works if your ISP delegation itself is static though.
Title: Re: DHCPv6 with Windows 10
Post by: wilj81 on February 16, 2022, 10:41:34 pm
ISP delegation is DHCP
Title: Re: DHCPv6 with Windows 10
Post by: bartjsmit on February 17, 2022, 07:34:04 am
Sorry, I can't test with that. You may want to start a new topic around router advertisement without a static ISP range.

Also complain bitterly to your ISP. There are almost certainly more /56 ranges in their block than people on this earth. How many sales are they hoping for?
Title: Re: DHCPv6 with Windows 10
Post by: ilumos on February 11, 2023, 05:34:03 pm
For anyone else who runs ipconfig /renew6 on Windows 10 and receives the error:

Quote
An error occurred while renewing interface The cluster resource is not available.

I was able to fix it in OPNsense by navigating to Services > DHCPV6 > LAN and entering values for Range From and Range To. I copied the values from Available range.

Previously I had set Router Advertisements to Assisted and enabled the DHCPv6 server, but had not entered in values for the DHCPv6 range, and even though OPNsense allowed me to save the settings without validation errors, it seems that this is an invalid configuration.

Hope this helps someone!