dhcpd6

Started by mueller, May 04, 2023, 09:58:23 PM

Previous topic - Next topic
Hello all,

I've been struggling with the problem that since OPNsense 23.1.6 dhcpd6 does not start.
For a long time IPv6 ran without problems.
I have not changed anything in the configuration.

I can't get any further.
Does anyone have a tip for me?
I would be grateful for that.

Sorry, no tip, but I'm in the same boat - sometimes it's running, and other times it won't start...

I have tried several things, of course: Restarts. Saved configurations again. Reinstalled OPNsense and restored the saved configuration file.

DHCP runs without problems.

But I depend on DHCPv6 because I am a ds-lite victim :-)

I have the same issue.
Sometimes I can reach the Gui sometimes not.

My Workaround is to fully disable IPv6 in LAN and WAN interface..

Thanks for the tip! I had held out disabling ipv6, hoping that things would be resolved at some point, but disabling it resolved the issue I've seen recently where I lost access to opnsense on a reboot.

I am experiencing the following behavior:

When I enable DHCPv6 on WAN, I don't see any dhcpd6 entry on the dashboard under services.

If I also enable dhcpd6 on LAN under IPv6 Configuration Type: Track interface, then the dhcpd6 entry appears on the dashboard under services, but it shows that dhcpd6 is not running.

It seems that I am having similar issue, now in 23.1.7_3 (might have been there earlier). Today, I didn't receive the IPv6 prefix in my LAN net. dhcpd6 was not running. When trying to start it manually, I got the following error message:

/usr/local/etc/rc.newwanipv6: The command '/usr/local/sbin/dhcpd -6 -user dhcpd -group dhcpd -chroot /var/dhcpd -cf /etc/dhcpdv6.conf -pf /var/run/dhcpdv6.pid xn0 xn2' returned exit code '1', the output was 'Internet Systems Consortium DHCP Server 4.4.3-P1 Copyright 2004-2022 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ Config file: /etc/dhcpdv6.conf Database file: /var/db/dhcpd6.leases PID file: /var/run/dhcpdv6.pid Wrote 0 NA, 0 TA, 0 PD leases to lease file. Can't bind to dhcp address: Address already in use Please make sure there is no other dhcp server running and that there's no entry for dhcp or bootp in /etc/inetd.conf. Also make sure you are not running HP JetAdmin software, which includes a bootp server. If you think you have received this message due to a bug rather than a configuration issue please read the section on submitting bugs on either our web page at www.isc.org or in the README file before submitting a bug. These pages explain the proper process and the information we find helpful for debugging. exiting.'

dhcrelay6 was running. When i stopped dhcrelay6, I could start dhcpd6, and the prefix got delegated.

Quote from: mueller on May 05, 2023, 07:26:40 PM
I am experiencing the following behavior:

When I enable DHCPv6 on WAN, I don't see any dhcpd6 entry on the dashboard under services.

If I also enable dhcpd6 on LAN under IPv6 Configuration Type: Track interface, then the dhcpd6 entry appears on the dashboard under services, but it shows that dhcpd6 is not running.

Part of this is perfectly normal: As I explained in the german thread, there is a difference between DHCPv6 client and server. On the WAN interface, you act as a client - this is not shown as a service. When you track an interface, you can enable DHVpv6 as a service, which is shown on the dashboard. The only thing you have to find out is why it does not start. As we found earlier, you seem to have no suitable IPv6 assigned to your LAN interface(s). You should ifrst try to restart the DHCPv6 service in order to find if this is a glitch or permanent. Then, you could use the CLI to see if any IPv6 are assigned and also, which.

If no GUA is being assigned to the LAN interface(s) despite correct prefix IDs, you have to hunt down what the WAN dhcpv6 client does and why it does not propagate the prefix(es) to the LAN interface(s).
Intel N100, 4 x I226-V, 16 GByte, 256 GByte NVME, ZTE F6005

1100 down / 440 up, Bufferbloat A+