OPNsense Forum

Archive => 17.1 Legacy Series => Topic started by: Space on April 01, 2017, 01:03:22 pm

Title: Issue with IPv6 on 17.1.4 - transmit failed: Can't assign requested address
Post by: Space on April 01, 2017, 01:03:22 pm
Hello,

I have update to 17.1.3 and then 17.1.4 and I just noticed that IPv6 is not working anymore. My OPNsense box sits behind a Fritzbox which get's a /56 network from my provider. On the WAN interface I have enabled dhcpv6 and request a /62 prefix. But somehow the dhcpv6 does not get an IPv6 address. I checked the dhcpd.log and see the following errors:

Code: [Select]
Apr  1 12:56:05 OPNvirt dhcp6c[11967]: failed to open /usr/local/etc/dhcp6cctlkey: No such file or directory
Apr  1 12:56:05 OPNvirt dhcp6c[11967]: failed initialize control message authentication
Apr  1 12:56:05 OPNvirt dhcp6c[11967]: skip opening control port
Apr  1 12:56:05 OPNvirt dhcpd: Internet Systems Consortium DHCP Server 4.3.5
Apr  1 12:56:05 OPNvirt dhcpd: Copyright 2004-2016 Internet Systems Consortium.
Apr  1 12:56:05 OPNvirt dhcpd: All rights reserved.
Apr  1 12:56:05 OPNvirt dhcpd: For info, please visit https://www.isc.org/software/dhcp/
Apr  1 12:56:05 OPNvirt dhcpd: Config file: /etc/dhcpd.conf
Apr  1 12:56:05 OPNvirt dhcpd: Database file: /var/db/dhcpd.leases
Apr  1 12:56:05 OPNvirt dhcpd: PID file: /var/run/dhcpd.pid
Apr  1 12:56:05 OPNvirt dhcpd: Internet Systems Consortium DHCP Server 4.3.5
Apr  1 12:56:05 OPNvirt dhcpd: Copyright 2004-2016 Internet Systems Consortium.
Apr  1 12:56:05 OPNvirt dhcpd: All rights reserved.
Apr  1 12:56:05 OPNvirt dhcpd: For info, please visit https://www.isc.org/software/dhcp/
Apr  1 12:56:05 OPNvirt dhcpd: Wrote 0 deleted host decls to leases file.
Apr  1 12:56:05 OPNvirt dhcpd: Wrote 0 new dynamic host decls to leases file.
Apr  1 12:56:05 OPNvirt dhcpd: Wrote 4 leases to leases file.
Apr  1 12:56:05 OPNvirt dhcpd: Listening on BPF/em0/52:54:00:93:c1:86/192.168.42.0/24
Apr  1 12:56:05 OPNvirt dhcpd: Sending on   BPF/em0/52:54:00:93:c1:86/192.168.42.0/24
Apr  1 12:56:05 OPNvirt dhcpd: Sending on   Socket/fallback/fallback-net
Apr  1 12:56:05 OPNvirt dhcpd: Server starting service.
Apr  1 12:56:06 OPNvirt dhcp6c[12113]: Sending Solicit
Apr  1 12:56:06 OPNvirt dhcp6c[12113]: transmit failed: Can't assign requested address
Apr  1 12:56:07 OPNvirt dhcp6c[12113]: Sending Solicit
Apr  1 12:56:07 OPNvirt dhcp6c[12113]: transmit failed: Can't assign requested address
Apr  1 12:56:09 OPNvirt dhcp6c[12113]: Sending Solicit
Apr  1 12:56:09 OPNvirt dhcp6c[12113]: transmit failed: Can't assign requested address
Apr  1 12:56:13 OPNvirt dhcp6c[12113]: Sending Solicit
Apr  1 12:56:13 OPNvirt dhcp6c[12113]: transmit failed: Can't assign requested address
Apr  1 12:56:21 OPNvirt dhcp6c[12113]: Sending Solicit
Apr  1 12:56:21 OPNvirt dhcp6c[12113]: transmit failed: Can't assign requested address
Apr  1 12:56:37 OPNvirt dhcp6c[12113]: Sending Solicit
Apr  1 12:56:37 OPNvirt dhcp6c[12113]: transmit failed: Can't assign requested address
Apr  1 12:57:09 OPNvirt dhcp6c[12113]: Sending Solicit
Apr  1 12:57:09 OPNvirt dhcp6c[12113]: transmit failed: Can't assign requested address

Is this a configuration issue?

Thanks and best regards,

    Jogi
Title: Re: Issue with IPv6 on 17.1.4 - transmit failed: Can't assign requested address
Post by: Space on April 02, 2017, 06:41:13 pm
Hello,

I have reinstalled every package via
Code: [Select]
opnsense-update -f and now at least the interface get's an IPv6 IP address again. But somehow the clients on the LAN interface still do not get an IP. Could this be related to the interface showing a prefix of /64?

Code: [Select]
inet6 2002:1234:1234:0:1234:5678:9012:3456 prefixlen 64 autoconf
According the AVM info page (https://avm.de/service/fritzbox/fritzbox-3270/wissensdatenbank/publication/show/1239_IPv6-Subnetz-in-FRITZ-Box-einrichten/ (https://avm.de/service/fritzbox/fritzbox-3270/wissensdatenbank/publication/show/1239_IPv6-Subnetz-in-FRITZ-Box-einrichten/)) the FritzBox offers a /62 subnet and DHCPv6 Prefix Delegation size is set to /62 as well.

What am I doing wrong ...

Thanks for any help and best regards,

     jochen
Title: Re: Issue with IPv6 on 17.1.4 - transmit failed: Can't assign requested address
Post by: djGrrr on April 02, 2017, 07:33:48 pm
LAN is meant to get a /64, it doesn't matter if the prefix from the isp is bigger. This allows you to divide the prefix up into multiple /64s, do you have the LAN interface set to track interface?
Title: Re: Issue with IPv6 on 17.1.4 - transmit failed: Can't assign requested address
Post by: bringha on April 02, 2017, 07:45:46 pm
Hello,

I had the same issue today; last night, my ISP reset the reconnection and updated the FritzBox OS and reset the connection. FritzOS is now 06.83; Since then, router advertising displayed the message in routing.log:
Code: [Select]
Apr  2 13:30:36 OPNsense radvd[7509]: no auto-selected prefix on interface igb2, disabling advertisements
Apr  2 13:30:36 OPNsense radvd[7509]: no auto-selected prefix on interface igb0, disabling advertisements
Apr  2 13:30:36 OPNsense radvd[7509]: no auto-selected prefix on interface igb3, disabling advertisements
Apr  2 13:30:39 OPNsense radvd[7597]: attempting to reread config file
Which are all my internal interfaces ...

I fixed that by restarting the  dhcp6 client on opnsense. Then, radvd and rtsold restarted and all was fine again ...

Br br
Title: Re: Issue with IPv6 on 17.1.4 - transmit failed: Can't assign requested address
Post by: Space on April 02, 2017, 10:24:37 pm
LAN is meant to get a /64, it doesn't matter if the prefix from the isp is bigger. This allows you to divide the prefix up into multiple /64s, do you have the LAN interface set to track interface?

LAN is set to track WAN interface. I have already tried different IPv6 Prefix IDs without success.
Title: Re: Issue with IPv6 on 17.1.4 - transmit failed: Can't assign requested address
Post by: Space on April 02, 2017, 10:36:18 pm
Hello,

I had the same issue today; last night, my ISP reset the reconnection and updated the FritzBox OS and reset the connection. FritzOS is now 06.83
...
I fixed that by restarting the  dhcp6 client on opnsense. Then, radvd and rtsold restarted and all was fine again ...

Br br
Hello,

I have updated my FritzBox to same version as well. I got the following messages in routing.log when saving WAN interface again:

Code: [Select]
Apr  2 22:21:25 OPNvirt radvd[45592]: Exiting, sigterm or sigint received.
Apr  2 22:21:25 OPNvirt radvd[45592]: sending stop adverts
Apr  2 22:21:25 OPNvirt radvd[45592]: removing /var/run/radvd.pid
Apr  2 22:21:41 OPNvirt radvd[34797]: version 1.15 started
Apr  2 22:21:41 OPNvirt radvd[34797]: no auto-selected prefix on interface em0, disabling advertisements
Apr  2 22:21:41 OPNvirt radvd[35364]: sendmsg: Can't assign requested address
Apr  2 22:21:42 OPNvirt radvd[35364]: attempting to reread config file
Apr  2 22:21:42 OPNvirt radvd[35364]: no auto-selected prefix on interface em0, disabling advertisements
Apr  2 22:21:42 OPNvirt radvd[35364]: can't join ipv6-allrouters on em0
Apr  2 22:21:42 OPNvirt radvd[35364]: sendmsg: Can't assign requested address
Apr  2 22:21:42 OPNvirt radvd[35364]: resuming normal operation

Thanks for any tips and best regards,

    Jochen
Title: Re: Issue with IPv6 on 17.1.4 - transmit failed: Can't assign requested address
Post by: djGrrr on April 03, 2017, 07:31:05 am
Can you please screencap the DHCPv6 section of the wan interface settings? This could help in determining what the problem might be.
Title: Re: Issue with IPv6 on 17.1.4 - transmit failed: Can't assign requested address
Post by: Space on April 03, 2017, 10:39:15 am
Hi,

find attached the settings.
Title: Re: Issue with IPv6 on 17.1.4 - transmit failed: Can't assign requested address
Post by: gothbert on April 03, 2017, 11:58:59 am
Hi,

issue seems related to

https://forum.opnsense.org/index.php?topic=4816.msg18821#msg18821 (https://forum.opnsense.org/index.php?topic=4816.msg18821#msg18821)
https://github.com/opnsense/core/issues/1506 (https://github.com/opnsense/core/issues/1506)

Best regards
Boris
Title: Re: Issue with IPv6 on 17.1.4 - transmit failed: Can't assign requested address
Post by: Space on April 03, 2017, 12:42:49 pm
Hi,

yes, I remember that it was working when I had switched to 17.1 ... but I can't tell for sure when it stopped ... could very well be that it stopped working with 17.1.2 ...

Thanks and best regards,

    Jochen
Title: Re: Issue with IPv6 on 17.1.4 - transmit failed: Can't assign requested address
Post by: djGrrr on April 03, 2017, 03:34:35 pm
Is there a particular reason why you have "Request only a IPv6 Prefix" enabled? I would think that you'd also want the WAN interface to get an IPv6 address from DHCPv6?
Title: Re: Issue with IPv6 on 17.1.4 - transmit failed: Can't assign requested address
Post by: Space on April 03, 2017, 04:22:53 pm
Hi,

that option "Request only a IPv6 Prefix" was ticked in some pfsense documentation ... but the WAN interface does get an IPv6 IP. From OPNsense I am able to reach ipv6.google.com, e.g. ... but not from the LAN systems. And with 17.1 it initially worked with these settings.

Best regards,

    Jochen
Title: Re: Issue with IPv6 on 17.1.4 - transmit failed: Can't assign requested address
Post by: djGrrr on April 03, 2017, 04:41:12 pm
Can you try changing the different DHCPv6 options on the WAN interface? the only one that is required is the prefix delegation size, the 3 with the checkmarks should all be able to be turned off.
Title: Re: Issue with IPv6 on 17.1.4 - transmit failed: Can't assign requested address
Post by: Space on April 03, 2017, 06:26:41 pm
Hi,

result does not change ... WAN always get's an IPv6 IP, LAN always stays on

Code: [Select]
inet6 fe80::1:1%em0 prefixlen 64 scopeid 0x1
Best regards,

   Space