OPNsense Forum

Archive => 22.7 Legacy Series => Topic started by: Taunt9930 on August 22, 2022, 01:54:19 PM

Title: dhcpdv6 failure
Post by: Taunt9930 on August 22, 2022, 01:54:19 PM
Hi There,

I have an issue where dhcpdv6 keeps stopping, and won't restart, which results in LAN side devices not being served an ipv6 address and subsequently random things seem to stop working on the internet. I'm new to OPNSense, so I may need some direction on what to do/where to look to seek out what the issue is!

I am using a PPPoE Connection (in the UK) on Zen UK. IPv6 is enabled and I get a WAN IPv6 address from my provider. They serve a /48 delegated prefix, through DHCPv6 over the IPv4 interface.

My OPNsense appliance is setup as per the first section 'Setting up IPv6 using DHCPv6' on the OPNSense documentation - https://docs.opnsense.org/manual/how-tos/IPv6_ZenUK.html#setting-up-ipv6-using-dhcpv6 (https://docs.opnsense.org/manual/how-tos/IPv6_ZenUK.html#setting-up-ipv6-using-dhcpv6)

On initial boot / setup, everything works fine.

After a random period of time (sometimes days, sometimes hours) I notice things timing out on the internet, pages not loading etc - without fail when I look at the Dashboard dhcpdv6 is showing as stopped. I still have a WAN ipv6 address as shown in Interfaces > Overview > WAN Interface (wan, pppoe0). Attempting to restart the service through the dashboard fails. Sometimes, rebooting the appliances brings it back up - every now and then it doesn't, and I have to disable ipv6 and re-set it up for it to work.

As said, if someone can give me a steer on what to do to look for relevant logs, outputs from the shell etc. I am more than happy to go and get the information for someone to help figure this out! I am up to date on 22.7.2, but it did happen on 22.7.1 also.

Thanks.


Title: Re: dhcpdv6 failure
Post by: Maurice on August 22, 2022, 02:18:34 PM
When this happens, does "Interfaces: Overview" still show an IPv6 address on the LAN interface and an IPv6 delegated prefix on the WAN interface?

dhcpdv6 log output is in "Services: DHCPv4 [sic]: Log File".
Title: Re: dhcpdv6 failure
Post by: sbellon on August 23, 2022, 08:56:13 AM
I have exactly the same issue as the original poster (here with German Telekom VDSL and dual IP stack).

Whenever there is a forced disconnect (at night), chances are that IPv6 is down afterwards.

In "Interfaces: Overview (wan, pppoe0)" I have


IPv6 link-local
IPv6 address
IPv6 delegated prefix
IPv6 gateway


regarding IPv6 when everything is working, but only


IPv6 link-local
IPv6 address
IPv6 gateway


in case IPv6 is "down" after a forced disconnect.

Will look inside DHCPv4 logs if it happens next time.
Title: Re: dhcpdv6 failure
Post by: Maurice on August 23, 2022, 12:52:29 PM
@sbellon This rather looks like dhcp6c failing after a forced disconnect. If dhcp6c can't aquire a delegated prefix, dhcpd6 will fail, too. You might want to check 'System: Log Files: General' for dhcp6c (and maybe turn up the log level in 'Interfaces: Settings').

The WAN interface still has an IPv6 address because Deutsche Telekom configures that with SLAAC (and the gateway always comes from Router Advertisements).
Title: Re: dhcpdv6 failure
Post by: sbellon on August 23, 2022, 01:59:37 PM
Ok, I took a look at /var/log/system/latest.log now and found the following...

The nightly disconnect looked as follows (IPs are redacted):


<11>1 2022-08-23T04:47:29+02:00 opnsense.local opnsense 85190 - [meta sequenceId="1"] /usr/local/etc/rc.newwanip: IPv4 renewal is starting on 'pppoe0'
<11>1 2022-08-23T04:47:29+02:00 opnsense.local opnsense 85190 - [meta sequenceId="2"] /usr/local/etc/rc.newwanip: On (IP address: X.X.X.X) (interface: WAN[wan]) (real interface: pppoe0).
<13>1 2022-08-23T04:47:29+02:00 opnsense.local dhcp6c 7928 - [meta sequenceId="3"] RTSOLD script - Sending SIGHUP to dhcp6c
<11>1 2022-08-23T04:47:29+02:00 opnsense.local opnsense 85190 - [meta sequenceId="4"] /usr/local/etc/rc.newwanip: ROUTING: entering configure using 'wan'
<11>1 2022-08-23T04:47:29+02:00 opnsense.local opnsense 85190 - [meta sequenceId="5"] /usr/local/etc/rc.newwanip: ROUTING: IPv4 default gateway set to wan
<11>1 2022-08-23T04:47:29+02:00 opnsense.local opnsense 85190 - [meta sequenceId="6"] /usr/local/etc/rc.newwanip: ROUTING: setting IPv4 default route to X.X.X.X
<11>1 2022-08-23T04:47:29+02:00 opnsense.local opnsense 85190 - [meta sequenceId="7"] /usr/local/etc/rc.newwanip: ROUTING: keeping current default gateway 'X.X.X.X'
<11>1 2022-08-23T04:47:29+02:00 opnsense.local opnsense 85190 - [meta sequenceId="8"] /usr/local/etc/rc.newwanip: ROUTING: IPv6 default gateway set to wan
<11>1 2022-08-23T04:47:29+02:00 opnsense.local opnsense 85190 - [meta sequenceId="9"] /usr/local/etc/rc.newwanip: ROUTING: setting IPv6 default route to fe80::xxxx
<11>1 2022-08-23T04:47:29+02:00 opnsense.local opnsense 85190 - [meta sequenceId="10"] /usr/local/etc/rc.newwanip: ROUTING: keeping current default gateway 'fe80::xxxx%pppoe0'
<13>1 2022-08-23T04:47:29+02:00 opnsense.local opnsense 85190 - [meta sequenceId="11"] plugins_configure monitor ()
<13>1 2022-08-23T04:47:29+02:00 opnsense.local opnsense 85190 - [meta sequenceId="12"] plugins_configure monitor (execute task : dpinger_configure_do())
<11>1 2022-08-23T04:47:29+02:00 opnsense.local opnsense 85190 - [meta sequenceId="13"] /usr/local/etc/rc.newwanip: The WAN_DHCP6 monitor address is empty, skipping.
<11>1 2022-08-23T04:47:29+02:00 opnsense.local opnsense 85190 - [meta sequenceId="14"] /usr/local/etc/rc.newwanip: The WAN_PPPOE monitor address is empty, skipping.
<11>1 2022-08-23T04:47:29+02:00 opnsense.local opnsense 96300 - [meta sequenceId="15"] /usr/local/etc/rc.newwanipv6: IPv6 renewal is starting on 'pppoe0'
<11>1 2022-08-23T04:47:29+02:00 opnsense.local opnsense 96300 - [meta sequenceId="16"] /usr/local/etc/rc.newwanipv6: Failed to detect IP for WAN[wan]
<13>1 2022-08-23T04:47:29+02:00 opnsense.local dhcp6c 26028 - [meta sequenceId="17"] RTSOLD script - Sending SIGHUP to dhcp6c
<11>1 2022-08-23T04:47:29+02:00 opnsense.local php 85190 - [meta sequenceId="18"] /usr/local/etc/rc.newwanip: IP address change detected, killing states of old ip X.X.X.X
<13>1 2022-08-23T04:47:29+02:00 opnsense.local php 85190 - [meta sequenceId="19"] plugins_configure vpn (,wan)
<13>1 2022-08-23T04:47:29+02:00 opnsense.local php 85190 - [meta sequenceId="20"] plugins_configure vpn (execute task : ipsec_configure_do(,wan))
<13>1 2022-08-23T04:47:29+02:00 opnsense.local php 85190 - [meta sequenceId="21"] plugins_configure vpn (execute task : openvpn_configure_do(,wan))
<13>1 2022-08-23T04:47:29+02:00 opnsense.local php 85190 - [meta sequenceId="22"] plugins_configure newwanip (,wan)
<13>1 2022-08-23T04:47:29+02:00 opnsense.local php 85190 - [meta sequenceId="23"] plugins_configure newwanip (execute task : dyndns_configure_do(,wan))
<13>1 2022-08-23T04:47:29+02:00 opnsense.local php 85190 - [meta sequenceId="24"] plugins_configure newwanip (execute task : ntpd_configure_do())
<13>1 2022-08-23T04:47:29+02:00 opnsense.local php 85190 - [meta sequenceId="25"] plugins_configure newwanip (execute task : opendns_configure_do())
<13>1 2022-08-23T04:47:29+02:00 opnsense.local php 85190 - [meta sequenceId="26"] plugins_configure newwanip (execute task : openssh_configure_do(,wan))
<13>1 2022-08-23T04:47:29+02:00 opnsense.local php 85190 - [meta sequenceId="27"] plugins_configure newwanip (execute task : unbound_configure_do(,wan))
<13>1 2022-08-23T04:47:29+02:00 opnsense.local php 85190 - [meta sequenceId="28"] plugins_configure newwanip (execute task : vxlan_configure_do())
<13>1 2022-08-23T04:47:29+02:00 opnsense.local php 85190 - [meta sequenceId="29"] plugins_configure newwanip (execute task : webgui_configure_do(,wan))
<13>1 2022-08-23T04:47:30+02:00 opnsense.local dhcp6c 4296 - [meta sequenceId="30"] dhcp6c REQUEST on pppoe0 - running newipv6
<11>1 2022-08-23T04:47:30+02:00 opnsense.local opnsense 15701 - [meta sequenceId="31"] /usr/local/etc/rc.newwanipv6: IPv6 renewal is starting on 'pppoe0'
<11>1 2022-08-23T04:47:30+02:00 opnsense.local opnsense 15701 - [meta sequenceId="32"] /usr/local/etc/rc.newwanipv6: Failed to detect IP for WAN[wan]
<13>1 2022-08-23T04:47:32+02:00 opnsense.local dhcp6c 62369 - [meta sequenceId="33"] dhcp6c RELEASE on pppoe0 - running dns reload


A manually triggered PPPoE reload (via Interfaces: Overview) looks as follows (IPs are redacted):


<11>1 2022-08-23T08:34:56+02:00 opnsense.local opnsense 44303 - [meta sequenceId="1"] /status_services.php: Warning! dhcpd_dhcp6_configure() found no suitable IPv6 address on lan
<11>1 2022-08-23T08:35:23+02:00 opnsense.local opnsense 8017 - [meta sequenceId="2"] /usr/local/etc/rc.configure_interface: Accept router advertisements on interface pppoe0
<11>1 2022-08-23T08:35:23+02:00 opnsense.local opnsense 8017 - [meta sequenceId="3"] /usr/local/etc/rc.configure_interface: ROUTING: entering configure using 'wan'
<11>1 2022-08-23T08:35:23+02:00 opnsense.local opnsense 8017 - [meta sequenceId="4"] /usr/local/etc/rc.configure_interface: ROUTING: IPv6 default gateway set to wan
<11>1 2022-08-23T08:35:23+02:00 opnsense.local opnsense 8017 - [meta sequenceId="5"] /usr/local/etc/rc.configure_interface: ROUTING: skipping IPv6 default route
<13>1 2022-08-23T08:35:23+02:00 opnsense.local opnsense 8017 - [meta sequenceId="6"] plugins_configure ipsec (1,wan)
<13>1 2022-08-23T08:35:23+02:00 opnsense.local opnsense 8017 - [meta sequenceId="7"] plugins_configure ipsec (execute task : ipsec_configure_do(1,wan))
<13>1 2022-08-23T08:35:23+02:00 opnsense.local opnsense 8017 - [meta sequenceId="8"] plugins_configure dhcp (1)
<13>1 2022-08-23T08:35:23+02:00 opnsense.local opnsense 8017 - [meta sequenceId="9"] plugins_configure dhcp (execute task : dhcpd_dhcp_configure(1))
<11>1 2022-08-23T08:35:23+02:00 opnsense.local opnsense 8017 - [meta sequenceId="10"] /usr/local/etc/rc.configure_interface: Warning! dhcpd_dhcp6_configure() found no suitable IPv6 address on lan
<11>1 2022-08-23T08:35:23+02:00 opnsense.local opnsense 8017 - [meta sequenceId="11"] /usr/local/etc/rc.configure_interface: Warning! dhcpd_radvd_configure(manual) found no suitable IPv6 address on igb1
<11>1 2022-08-23T08:35:23+02:00 opnsense.local opnsense 8017 - [meta sequenceId="12"] /usr/local/etc/rc.configure_interface: Warning! dhcpd_radvd_configure(auto) found no suitable IPv6 address on igb1_vlan99
<13>1 2022-08-23T08:35:23+02:00 opnsense.local opnsense 8017 - [meta sequenceId="13"] plugins_configure dns (1)
<13>1 2022-08-23T08:35:23+02:00 opnsense.local opnsense 8017 - [meta sequenceId="14"] plugins_configure dns (execute task : dnsmasq_configure_do(1))
<11>1 2022-08-23T08:35:24+02:00 opnsense.local opnsense 80289 - [meta sequenceId="15"] /usr/local/etc/rc.newwanip: IPv4 renewal is starting on 'pppoe0'
<11>1 2022-08-23T08:35:24+02:00 opnsense.local opnsense 80289 - [meta sequenceId="16"] /usr/local/etc/rc.newwanip: On (IP address: X.X.X.X) (interface: WAN[wan]) (real interface: pppoe0).
<13>1 2022-08-23T08:35:24+02:00 opnsense.local dhcp6c 5277 - [meta sequenceId="17"] RTSOLD script - Sending SIGHUP to dhcp6c
<11>1 2022-08-23T08:35:24+02:00 opnsense.local opnsense 80289 - [meta sequenceId="18"] /usr/local/etc/rc.newwanip: ROUTING: entering configure using 'wan'
<11>1 2022-08-23T08:35:24+02:00 opnsense.local opnsense 80289 - [meta sequenceId="19"] /usr/local/etc/rc.newwanip: ROUTING: IPv4 default gateway set to wan
<11>1 2022-08-23T08:35:24+02:00 opnsense.local opnsense 80289 - [meta sequenceId="20"] /usr/local/etc/rc.newwanip: ROUTING: setting IPv4 default route to X.X.X.X
<11>1 2022-08-23T08:35:24+02:00 opnsense.local opnsense 80289 - [meta sequenceId="21"] /usr/local/etc/rc.newwanip: ROUTING: keeping current default gateway 'X.X.X.X'
<11>1 2022-08-23T08:35:24+02:00 opnsense.local opnsense 80289 - [meta sequenceId="22"] /usr/local/etc/rc.newwanip: ROUTING: IPv6 default gateway set to wan
<11>1 2022-08-23T08:35:24+02:00 opnsense.local opnsense 80289 - [meta sequenceId="23"] /usr/local/etc/rc.newwanip: ROUTING: setting IPv6 default route to fe80::xxxx
<11>1 2022-08-23T08:35:24+02:00 opnsense.local opnsense 80289 - [meta sequenceId="24"] /usr/local/etc/rc.newwanip: ROUTING: keeping current default gateway 'fe80::xxxx%pppoe0'
<13>1 2022-08-23T08:35:24+02:00 opnsense.local opnsense 80289 - [meta sequenceId="25"] plugins_configure monitor ()
<11>1 2022-08-23T08:35:24+02:00 opnsense.local opnsense 92472 - [meta sequenceId="26"] /usr/local/etc/rc.newwanipv6: IPv6 renewal is starting on 'pppoe0'
<11>1 2022-08-23T08:35:24+02:00 opnsense.local opnsense 92472 - [meta sequenceId="27"] /usr/local/etc/rc.newwanipv6: Failed to detect IP for WAN[wan]
<13>1 2022-08-23T08:35:24+02:00 opnsense.local opnsense 80289 - [meta sequenceId="28"] plugins_configure monitor (execute task : dpinger_configure_do())
<11>1 2022-08-23T08:35:24+02:00 opnsense.local opnsense 80289 - [meta sequenceId="29"] /usr/local/etc/rc.newwanip: The WAN_DHCP6 monitor address is empty, skipping.
<11>1 2022-08-23T08:35:24+02:00 opnsense.local opnsense 80289 - [meta sequenceId="30"] /usr/local/etc/rc.newwanip: The WAN_PPPOE monitor address is empty, skipping.
<13>1 2022-08-23T08:35:24+02:00 opnsense.local opnsense 8017 - [meta sequenceId="31"] plugins_configure dns (execute task : unbound_configure_do(1))
<11>1 2022-08-23T08:35:24+02:00 opnsense.local php 80289 - [meta sequenceId="32"] /usr/local/etc/rc.newwanip: IP address change detected, killing states of old ip X.X.X.X
<13>1 2022-08-23T08:35:24+02:00 opnsense.local php 80289 - [meta sequenceId="33"] plugins_configure vpn (,wan)
<13>1 2022-08-23T08:35:24+02:00 opnsense.local php 80289 - [meta sequenceId="34"] plugins_configure vpn (execute task : ipsec_configure_do(,wan))
<13>1 2022-08-23T08:35:24+02:00 opnsense.local php 80289 - [meta sequenceId="35"] plugins_configure vpn (execute task : openvpn_configure_do(,wan))
<13>1 2022-08-23T08:35:24+02:00 opnsense.local php 80289 - [meta sequenceId="36"] plugins_configure newwanip (,wan)
<13>1 2022-08-23T08:35:24+02:00 opnsense.local php 80289 - [meta sequenceId="37"] plugins_configure newwanip (execute task : dyndns_configure_do(,wan))
<13>1 2022-08-23T08:35:24+02:00 opnsense.local php 80289 - [meta sequenceId="38"] plugins_configure newwanip (execute task : ntpd_configure_do())
<13>1 2022-08-23T08:35:24+02:00 opnsense.local php 80289 - [meta sequenceId="39"] plugins_configure newwanip (execute task : opendns_configure_do())
<13>1 2022-08-23T08:35:24+02:00 opnsense.local php 80289 - [meta sequenceId="40"] plugins_configure newwanip (execute task : openssh_configure_do(,wan))
<13>1 2022-08-23T08:35:24+02:00 opnsense.local php 80289 - [meta sequenceId="41"] plugins_configure newwanip (execute task : unbound_configure_do(,wan))
<13>1 2022-08-23T08:35:24+02:00 opnsense.local php 80289 - [meta sequenceId="42"] plugins_configure newwanip (execute task : vxlan_configure_do())
<13>1 2022-08-23T08:35:24+02:00 opnsense.local php 80289 - [meta sequenceId="43"] plugins_configure newwanip (execute task : webgui_configure_do(,wan))
<13>1 2022-08-23T08:35:25+02:00 opnsense.local dhcp6c 837 - [meta sequenceId="44"] RTSOLD script - Sending SIGHUP to dhcp6c
<13>1 2022-08-23T08:35:26+02:00 opnsense.local dhcp6c 23150 - [meta sequenceId="45"] dhcp6c REQUEST on pppoe0 - running newipv6
<11>1 2022-08-23T08:35:26+02:00 opnsense.local opnsense 27845 - [meta sequenceId="46"] /usr/local/etc/rc.newwanipv6: IPv6 renewal is starting on 'pppoe0'
<11>1 2022-08-23T08:35:26+02:00 opnsense.local opnsense 27845 - [meta sequenceId="47"] /usr/local/etc/rc.newwanipv6: On (IP address: 2003:de:xxxx) (interface: WAN[wan]) (real interface: pppoe0).
<13>1 2022-08-23T08:35:26+02:00 opnsense.local opnsense 27845 - [meta sequenceId="48"] plugins_configure dhcp (,inet6)
<13>1 2022-08-23T08:35:26+02:00 opnsense.local opnsense 27845 - [meta sequenceId="49"] plugins_configure dhcp (execute task : dhcpd_dhcp_configure(,inet6))
<11>1 2022-08-23T08:35:26+02:00 opnsense.local opnsense 27845 - [meta sequenceId="50"] /usr/local/etc/rc.newwanipv6: ROUTING: entering configure using 'wan'
<11>1 2022-08-23T08:35:26+02:00 opnsense.local opnsense 27845 - [meta sequenceId="51"] /usr/local/etc/rc.newwanipv6: ROUTING: IPv4 default gateway set to wan
<11>1 2022-08-23T08:35:26+02:00 opnsense.local opnsense 27845 - [meta sequenceId="52"] /usr/local/etc/rc.newwanipv6: ROUTING: setting IPv4 default route to X.X.X.X
<11>1 2022-08-23T08:35:26+02:00 opnsense.local opnsense 27845 - [meta sequenceId="53"] /usr/local/etc/rc.newwanipv6: ROUTING: keeping current default gateway 'X.X.X.X'
<11>1 2022-08-23T08:35:26+02:00 opnsense.local opnsense 27845 - [meta sequenceId="54"] /usr/local/etc/rc.newwanipv6: ROUTING: IPv6 default gateway set to wan
<11>1 2022-08-23T08:35:26+02:00 opnsense.local opnsense 27845 - [meta sequenceId="55"] /usr/local/etc/rc.newwanipv6: ROUTING: setting IPv6 default route to fe80::xxxx
<11>1 2022-08-23T08:35:26+02:00 opnsense.local opnsense 27845 - [meta sequenceId="56"] /usr/local/etc/rc.newwanipv6: ROUTING: keeping current default gateway 'fe80::xxxx%pppoe0'
<13>1 2022-08-23T08:35:26+02:00 opnsense.local opnsense 27845 - [meta sequenceId="57"] plugins_configure monitor ()
<13>1 2022-08-23T08:35:26+02:00 opnsense.local opnsense 27845 - [meta sequenceId="58"] plugins_configure monitor (execute task : dpinger_configure_do())
<11>1 2022-08-23T08:35:26+02:00 opnsense.local opnsense 27845 - [meta sequenceId="59"] /usr/local/etc/rc.newwanipv6: The WAN_DHCP6 monitor address is empty, skipping.
<11>1 2022-08-23T08:35:26+02:00 opnsense.local opnsense 27845 - [meta sequenceId="60"] /usr/local/etc/rc.newwanipv6: The WAN_PPPOE monitor address is empty, skipping.
<13>1 2022-08-23T08:35:27+02:00 opnsense.local php 27845 - [meta sequenceId="61"] plugins_configure vpn (,wan)
<13>1 2022-08-23T08:35:27+02:00 opnsense.local php 27845 - [meta sequenceId="62"] plugins_configure vpn (execute task : ipsec_configure_do(,wan))
<13>1 2022-08-23T08:35:27+02:00 opnsense.local php 27845 - [meta sequenceId="63"] plugins_configure vpn (execute task : openvpn_configure_do(,wan))
<13>1 2022-08-23T08:35:27+02:00 opnsense.local php 27845 - [meta sequenceId="64"] plugins_configure newwanip (,wan)
<13>1 2022-08-23T08:35:27+02:00 opnsense.local php 27845 - [meta sequenceId="65"] plugins_configure newwanip (execute task : dyndns_configure_do(,wan))
<13>1 2022-08-23T08:35:27+02:00 opnsense.local php 27845 - [meta sequenceId="66"] plugins_configure newwanip (execute task : ntpd_configure_do())
<13>1 2022-08-23T08:35:30+02:00 opnsense.local php 27845 - [meta sequenceId="67"] plugins_configure newwanip (execute task : opendns_configure_do())
<13>1 2022-08-23T08:35:30+02:00 opnsense.local php 27845 - [meta sequenceId="68"] plugins_configure newwanip (execute task : openssh_configure_do(,wan))
<13>1 2022-08-23T08:35:30+02:00 opnsense.local php 27845 - [meta sequenceId="69"] plugins_configure newwanip (execute task : unbound_configure_do(,wan))
<13>1 2022-08-23T08:35:30+02:00 opnsense.local php 27845 - [meta sequenceId="70"] plugins_configure newwanip (execute task : vxlan_configure_do())
<13>1 2022-08-23T08:35:30+02:00 opnsense.local php 27845 - [meta sequenceId="71"] plugins_configure newwanip (execute task : webgui_configure_do(,wan))


To me, it looks like the manual reload just tries a second time (a few seconds later) in case of "Failed to detect IP for WAN[wan]" whereas the nightly forced disconnect then does the "RELEASE on pppoe0".
Title: Re: dhcpdv6 failure
Post by: franco on August 23, 2022, 02:16:32 PM
<13>1 2022-08-23T04:47:30+02:00 opnsense.local dhcp6c 4296 - [meta sequenceId="30"] dhcp6c REQUEST on pppoe0 - running newipv6
<11>1 2022-08-23T04:47:30+02:00 opnsense.local opnsense 15701 - [meta sequenceId="31"] /usr/local/etc/rc.newwanipv6: IPv6 renewal is starting on 'pppoe0'
<11>1 2022-08-23T04:47:30+02:00 opnsense.local opnsense 15701 - [meta sequenceId="32"] /usr/local/etc/rc.newwanipv6: Failed to detect IP for WAN[wan]
<13>1 2022-08-23T04:47:32+02:00 opnsense.local dhcp6c 62369 - [meta sequenceId="33"] dhcp6c RELEASE on pppoe0 - running dns reload

Not sure what's going on here: request was answered but interface has no IPv6? Is this with prefix only mode or does it also request an address?


Cheers,
Franco
Title: Re: dhcpdv6 failure
Post by: Maurice on August 23, 2022, 02:26:37 PM
@franco, as far as I know, Deutsche Telekom doesn't assign addresses via DHCPv6, only prefixes. Even if you'd request an address, you won't get one.

Don't have a Telekom line, but last time I had access to one this is how it worked. WAN interface address autoconfigured via SLAAC, delegated prefix assigned via DHCPv6.
Title: Re: dhcpdv6 failure
Post by: franco on August 23, 2022, 02:29:24 PM
Ok, but the setting may matter as prefix-only will know not to look for a GUA on WAN and try to find one for the tracked LAN(s) instead. If prefix-only is not set detection of the IP can fail when SLAAC takes to long and the prefix wasn't handed over. However, there should be more logs for dhcp6c somewhere. Can you increate debug level?


Cheers,
Franco
Title: Re: dhcpdv6 failure
Post by: sbellon on August 23, 2022, 03:18:49 PM
"Request only an IPv6 prefix" is active on the WAN interface in my setup, yes.

@franco: Where do I increase the log level for what you'd like to see?
Title: Re: dhcpdv6 failure
Post by: skyeci2018 on August 23, 2022, 03:47:39 PM
Quote from: Taunt9930 on August 22, 2022, 01:54:19 PM
Hi There,

I have an issue where dhcpdv6 keeps stopping, and won't restart, which results in LAN side devices not being served an ipv6 address and subsequently random things seem to stop working on the internet. I'm new to OPNSense, so I may need some direction on what to do/where to look to seek out what the issue is!

I am using a PPPoE Connection (in the UK) on Zen UK. IPv6 is enabled and I get a WAN IPv6 address from my provider. They serve a /48 delegated prefix, through DHCPv6 over the IPv4 interface.

My OPNsense appliance is setup as per the first section 'Setting up IPv6 using DHCPv6' on the OPNSense documentation - https://docs.opnsense.org/manual/how-tos/IPv6_ZenUK.html#setting-up-ipv6-using-dhcpv6 (https://docs.opnsense.org/manual/how-tos/IPv6_ZenUK.html#setting-up-ipv6-using-dhcpv6)

On initial boot / setup, everything works fine.

After a random period of time (sometimes days, sometimes hours) I notice things timing out on the internet, pages not loading etc - without fail when I look at the Dashboard dhcpdv6 is showing as stopped. I still have a WAN ipv6 address as shown in Interfaces > Overview > WAN Interface (wan, pppoe0). Attempting to restart the service through the dashboard fails. Sometimes, rebooting the appliances brings it back up - every now and then it doesn't, and I have to disable ipv6 and re-set it up for it to work.

As said, if someone can give me a steer on what to do to look for relevant logs, outputs from the shell etc. I am more than happy to go and get the information for someone to help figure this out! I am up to date on 22.7.2, but it did happen on 22.7.1 also.

Thanks.


I am with zen too. Have had a number of issues lately with the lan interface not picking up an address e.g after a reboot. If it does fail I either reboot it again and both interfaces get a valid address. Its been like this for some time. I have also found that if I restart the wan6 gateway pinger the lan side then gets a valid address.
I am not storing the duid as this seemed to break it even more. I also stopped using the tick in the ask for prefix and it's been better. As I said I have seen this behaviour for sometime with Zen
Title: Re: dhcpdv6 failure
Post by: sbellon on August 29, 2022, 01:07:37 PM
Quote from: sbellon on August 23, 2022, 03:18:49 PM
"Request only an IPv6 prefix" is active on the WAN interface in my setup, yes.

@franco: Where do I increase the log level for what you'd like to see?

I'm happy to supply more information to debug this, if you can tell me what to provide.
Title: Re: dhcpdv6 failure
Post by: Taunt9930 on September 02, 2022, 07:04:14 PM
Typically, after consistently exhibiting this behaviour since I got the appliance, it has been behaving itself since! I have upgraded to 22.7.2 and 22.7.3_2 since, though.
Title: Re: dhcpdv6 failure
Post by: skyeci2018 on September 03, 2022, 07:11:06 PM
Mine has continued to be problematic even after upgrading but I have now fixed it by implementing my static ipv6 addresses from zen for the lan and wan. I had to set router advertisements to stateless but its all good. Once I had setup the dhcpv6 server and set ra both my windows and android devices all get ipv6 addresses. This seems the way to go rather than relying on the dhcpv6 option.