Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    DHCPv6 Client Broken in latest snapshot

    Scheduled Pinned Locked Moved 2.4 Development Snapshots
    55 Posts 12 Posters 14.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      bimmerdriver
      last edited by bimmerdriver

      I'm using Telus. I have three "connections". One is directly using the router inside the modem. It's working fine. There are two others connections, which are both pfsense using the bridged port on the modem. One of these systems is running pfsense 2.4.3. It's working fine. The other is running the latest development snapshot. On this system, ipv4 is working, but ipv6 is not working, as I described above. It used to work, but some time in April it stopped working. I can only presume a change was made to pfsense that broke the ipv6 or dhcpv6 client. I am using the "do not wait for RA flag", because it's required for my connection. It's possible a change was made to pfsense that affected this flag, because without it, it's not possible to connect to Telus. The only abnormal log messages are above.

      1 Reply Last reply Reply Quote 0
      • B
        bimmerdriver
        last edited by bimmerdriver

        I'm really at a loss as to what's happening here. I'll restate the configuration and the situation. I have no idea what to look for in the logs.

        My ISP is Telus. I have a bonded VDSL. There are three ipv6 prefixes. The prefix is a /56 and in order to get a prefix allocated, the do not wait for RA setting is required. I was one of the original users that tested this feature and it has been reliable for months. One prefix is for the modem, which is only used for IPTV. The other two prefixes are via a bridged port which is connected to a virtual switch on a hyper-v server using a dedicated NIC. There are two vms connected to the virtual switch. One is running pfsense 2.4.3. It has been perfectly stable for months. The other is running the latest pfsense development snapshot. It was stable for months, but in April, ipv6 stopped working after an upgrade. I tried reverting to 2.4.3 and it started working again. When I went back to the snapshot, it stopped working. I created a completely new vm and installed 2.4.3. It worked. When I updated to the development version, it stopped working. I tried reinstalling the development version from scratch on a new vm and it did not work. The only obvious log messages are posted above. I used wireshark to capture ipv6 packets from the system but there are none.

        If anyone has a suggestion of where I can look or what I can do, I would appreciate it. If I can't get this working, I will move off pfsense to another system.

        Are old shapshots archived somewhere? If so, I could try reinstalling them until I find the exact date where the problem started.

        1 Reply Last reply Reply Quote 0
        • B
          bimmerdriver
          last edited by

          Does anyone know if "transmit failed: Input/output error" is a pfsense error or a BSD error? Is there any way to get more information about the cause? It's pretty useless without knowing what caused it.

          jimpJ 1 Reply Last reply Reply Quote 0
          • B
            bimmerdriver
            last edited by

            I noticed that 2.4.4 development is running a different version of freebsd. Does anyone know when the change was introduced? I'm suspicious that it's related.

            1 Reply Last reply Reply Quote 0
            • w0wW
              w0w
              last edited by w0w

              I can not find any trace when Netgate moved from FreeBSD 11.1 to 11.2 beta, but it have happened in May, I think. There are also a bunch of PHP7 related changes happened in the same period of time, but I don't see any related to DHCPv6, so your problem can be related to base system only.

              B 1 Reply Last reply Reply Quote 0
              • B
                bimmerdriver @w0w
                last edited by

                @w0w Martin (who did a bunch of work on interfaces.inc, but since left for other pastures), took a look at interfaces.inc and didn't see any changes, so the change of freebsd is a smoking gun.

                1 Reply Last reply Reply Quote 0
                • D
                  darkfire
                  last edited by

                  I have the exact same problem with my DHCPv6 Client since the last update to 2.4.3-RELEASE-p1.

                  jimpJ 1 Reply Last reply Reply Quote 0
                  • jimpJ
                    jimp Rebel Alliance Developer Netgate @bimmerdriver
                    last edited by

                    @bimmerdriver said in DHCPv6 Client Broken in latest snapshot:

                    Does anyone know if "transmit failed: Input/output error" is a pfsense error or a BSD error? Is there any way to get more information about the cause? It's pretty useless without knowing what caused it.

                    That would be from the dhcp6c client

                    Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                    Need help fast? Netgate Global Support!

                    Do not Chat/PM for help!

                    1 Reply Last reply Reply Quote 0
                    • jimpJ
                      jimp Rebel Alliance Developer Netgate @darkfire
                      last edited by

                      @darkfire said in DHCPv6 Client Broken in latest snapshot:

                      I have the exact same problem with my DHCPv6 Client since the last update to 2.4.3-RELEASE-p1.

                      Are you also using "Do not wait for RA"?

                      Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                      Need help fast? Netgate Global Support!

                      Do not Chat/PM for help!

                      1 Reply Last reply Reply Quote 0
                      • D
                        darkfire
                        last edited by

                        Yes, i do. Without “Do not wait for RA” the dhcp6c client will not start anymore.

                        /var/etc/dhcp6c_wan.conf

                        interface em0 {
                        	send ia-pd 0;
                        	script "/var/etc/dhcp6c_wan_script.sh";
                        };
                        id-assoc pd { };
                        

                        logs with “Do not wait for RA”

                        May 29 23:02:14 	dhcp6c 	53193 	failed to open /usr/local/etc/dhcp6cctlkey: No such file or directory
                        May 29 23:02:14 	dhcp6c 	53193 	failed initialize control message authentication
                        May 29 23:02:14 	dhcp6c 	53193 	skip opening control port
                        May 29 23:02:15 	dhcp6c 	53211 	Sending Solicit
                        May 29 23:02:15 	dhcp6c 	53211 	transmit failed: Can't assign requested address
                        May 29 23:02:16 	dhcp6c 	53211 	Sending Solicit
                        May 29 23:02:16 	dhcp6c 	53211 	transmit failed: Can't assign requested address 
                        

                        process list

                        ps aux | grep dhcp6c
                        root   53211   0.0  0.1   8380  2364  -  Is   23:02       0:00.00 /usr/local/sbin/dhcp6c -d -c /var/etc/dhcp6c_wan.conf -p /var/run/dhcp6c_em0.pid em0
                        
                        jimpJ 1 Reply Last reply Reply Quote 0
                        • jimpJ
                          jimp Rebel Alliance Developer Netgate @darkfire
                          last edited by

                          @darkfire said in DHCPv6 Client Broken in latest snapshot:

                          Without “Do not wait for RA” the dhcp6c client will not start anymore.

                          So it fails without that enabled? Or it fails both ways but with different errors?

                          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                          Need help fast? Netgate Global Support!

                          Do not Chat/PM for help!

                          1 Reply Last reply Reply Quote 0
                          • B
                            bimmerdriver
                            last edited by bimmerdriver

                            My system behaves differently. If I disable do not wait for ra, dhcp6c never runs, because it's waiting for an RA, which will not be sent. Also, the error message is different.

                            1 Reply Last reply Reply Quote 0
                            • D
                              darkfire
                              last edited by

                              If i disable “Do not wait for RA” the client won't start. If i enable “Do not wait for RA” the client starts, but I do not get a prefix delegation.

                              1 Reply Last reply Reply Quote 0
                              • B
                                bimmerdriver
                                last edited by

                                I'm bumping this thread to see if anyone else is experiencing this issue. I'm dead in the water trying to find out the cause, at least without the snapshots from the April time frame.

                                1 Reply Last reply Reply Quote 0
                                • jimpJ
                                  jimp Rebel Alliance Developer Netgate
                                  last edited by jimp

                                  I haven't seen any additional complaints, and though I have kept one of my boxes here configured with "do not wait for RA", I have yet to see the same errors others have posted here.

                                  The error messages above, transmit failed: Can't assign requested address, would seem to imply that an address disappeared from the interface at some point but it's a fairly generic error even in the source. And since there is no address specified in the config file, that makes me curious how that is happening. The previous error, transmit failed: Input/output error is also very generic.

                                  If you can, please go into the WAN options in the dhcp6 section and check Start DHCP6 client in debug mode and see if anything more informative gets put in the logs, and post anything in the logs from dhcp6c.

                                  Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                                  Need help fast? Netgate Global Support!

                                  Do not Chat/PM for help!

                                  1 Reply Last reply Reply Quote 0
                                  • B
                                    bimmerdriver
                                    last edited by

                                    I enabled DHCP debug. The DHCP log from the start of a reboot is below. The only thing that appears to be abnormal is the transmit failed: Input/output error.

                                    Jun 9 09:21:41	dhcp6c	11661	reset a timer on hn1, state=SOLICIT, timeo=5, retrans=31928
                                    Jun 9 09:21:41	dhcp6c	11661	transmit failed: Input/output error
                                    Jun 9 09:21:41	dhcp6c	11661	set IA_PD
                                    Jun 9 09:21:41	dhcp6c	11661	set option request (len 4)
                                    Jun 9 09:21:41	dhcp6c	11661	set elapsed time (len 2)
                                    Jun 9 09:21:41	dhcp6c	11661	set client ID (len 14)
                                    Jun 9 09:21:41	dhcp6c	11661	Sending Solicit
                                    Jun 9 09:21:34	dhcpd		Server starting service.
                                    Jun 9 09:21:34	dhcpd		Sending on Socket/fallback/fallback-net
                                    Jun 9 09:21:34	dhcpd		Sending on BPF/hn0/00:15:5d:5c:e2:31/192.168.1.0/24
                                    Jun 9 09:21:34	dhcpd		Listening on BPF/hn0/00:15:5d:5c:e2:31/192.168.1.0/24
                                    Jun 9 09:21:33	dhcpd		Wrote 1 leases to leases file.
                                    Jun 9 09:21:33	dhcpd		For info, please visit https://www.isc.org/software/dhcp/
                                    Jun 9 09:21:33	dhcpd		All rights reserved.
                                    Jun 9 09:21:33	dhcpd		Copyright 2004-2018 Internet Systems Consortium.
                                    Jun 9 09:21:33	dhcpd		Internet Systems Consortium DHCP Server 4.3.6-P1
                                    Jun 9 09:21:33	dhcpd		PID file: /var/run/dhcpd.pid
                                    Jun 9 09:21:33	dhcpd		Database file: /var/db/dhcpd.leases
                                    Jun 9 09:21:33	dhcpd		Config file: /etc/dhcpd.conf
                                    Jun 9 09:21:33	dhcpd		For info, please visit https://www.isc.org/software/dhcp/
                                    Jun 9 09:21:33	dhcpd		All rights reserved.
                                    Jun 9 09:21:33	dhcpd		Copyright 2004-2018 Internet Systems Consortium.
                                    Jun 9 09:21:33	dhcpd		Internet Systems Consortium DHCP Server 4.3.6-P1
                                    Jun 9 09:21:25	dhcp6c	11661	reset a timer on hn1, state=SOLICIT, timeo=4, retrans=16326
                                    Jun 9 09:21:25	dhcp6c	11661	transmit failed: Input/output error
                                    Jun 9 09:21:25	dhcp6c	11661	set IA_PD
                                    Jun 9 09:21:25	dhcp6c	11661	set option request (len 4)
                                    Jun 9 09:21:25	dhcp6c	11661	set elapsed time (len 2)
                                    Jun 9 09:21:25	dhcp6c	11661	set client ID (len 14)
                                    Jun 9 09:21:25	dhcp6c	11661	Sending Solicit
                                    Jun 9 09:21:17	dhcp6c	11661	reset a timer on hn1, state=SOLICIT, timeo=3, retrans=8065
                                    Jun 9 09:21:17	dhcp6c	11661	transmit failed: Input/output error
                                    Jun 9 09:21:17	dhcp6c	11661	set IA_PD
                                    Jun 9 09:21:17	dhcp6c	11661	set option request (len 4)
                                    Jun 9 09:21:17	dhcp6c	11661	set elapsed time (len 2)
                                    Jun 9 09:21:17	dhcp6c	11661	set client ID (len 14)
                                    Jun 9 09:21:17	dhcp6c	11661	Sending Solicit
                                    Jun 9 09:21:13	dhcp6c	11661	reset a timer on hn1, state=SOLICIT, timeo=2, retrans=3982
                                    Jun 9 09:21:13	dhcp6c	11661	transmit failed: Input/output error
                                    Jun 9 09:21:13	dhcp6c	11661	set IA_PD
                                    Jun 9 09:21:13	dhcp6c	11661	set option request (len 4)
                                    Jun 9 09:21:13	dhcp6c	11661	set elapsed time (len 2)
                                    Jun 9 09:21:13	dhcp6c	11661	set client ID (len 14)
                                    Jun 9 09:21:13	dhcp6c	11661	Sending Solicit
                                    Jun 9 09:21:11	dhcp6c	11661	reset a timer on hn1, state=SOLICIT, timeo=1, retrans=2083
                                    Jun 9 09:21:11	dhcp6c	11661	transmit failed: Input/output error
                                    Jun 9 09:21:11	dhcp6c	11661	set IA_PD
                                    Jun 9 09:21:11	dhcp6c	11661	set option request (len 4)
                                    Jun 9 09:21:11	dhcp6c	11661	set elapsed time (len 2)
                                    Jun 9 09:21:11	dhcp6c	11661	set client ID (len 14)
                                    Jun 9 09:21:11	dhcp6c	11661	Sending Solicit
                                    Jun 9 09:21:09	dhcp6c	11661	reset a timer on hn1, state=SOLICIT, timeo=0, retrans=1091
                                    Jun 9 09:21:09	dhcp6c	11661	transmit failed: Input/output error
                                    Jun 9 09:21:09	dhcp6c	11661	set IA_PD
                                    Jun 9 09:21:09	dhcp6c	11661	set option request (len 4)
                                    Jun 9 09:21:09	dhcp6c	11661	set elapsed time (len 2)
                                    Jun 9 09:21:09	dhcp6c	11661	set client ID (len 14)
                                    Jun 9 09:21:09	dhcp6c	11661	a new XID (1bb44a) is generated
                                    Jun 9 09:21:09	dhcp6c	11661	Sending Solicit
                                    Jun 9 09:21:09	dhcp6c	11661	reset a timer on hn1, state=INIT, timeo=0, retrans=891
                                    Jun 9 09:21:09	dhcp6c	11654	called
                                    Jun 9 09:21:09	dhcp6c	11654	called
                                    Jun 9 09:21:09	dhcp6c	11654	<3>end of sentence [;] (1)
                                    Jun 9 09:21:09	dhcp6c	11654	<3>end of closure [}] (1)
                                    Jun 9 09:21:09	dhcp6c	11654	<3>end of sentence [;] (1)
                                    Jun 9 09:21:09	dhcp6c	11654	<3>end of closure [}] (1)
                                    Jun 9 09:21:09	dhcp6c	11654	<3>end of sentence [;] (1)
                                    Jun 9 09:21:09	dhcp6c	11654	<3>[8] (1)
                                    Jun 9 09:21:09	dhcp6c	11654	<3>[sla-len] (7)
                                    Jun 9 09:21:09	dhcp6c	11654	<3>end of sentence [;] (1)
                                    Jun 9 09:21:09	dhcp6c	11654	<3>[0] (1)
                                    Jun 9 09:21:09	dhcp6c	11654	<3>[sla-id] (6)
                                    Jun 9 09:21:09	dhcp6c	11654	<3>begin of closure [{] (1)
                                    Jun 9 09:21:09	dhcp6c	11654	<5>[hn0] (3)
                                    Jun 9 09:21:09	dhcp6c	11654	<3>[prefix-interface] (16)
                                    Jun 9 09:21:09	dhcp6c	11654	<13>begin of closure [{] (1)
                                    Jun 9 09:21:09	dhcp6c	11654	<13>[0] (1)
                                    Jun 9 09:21:09	dhcp6c	11654	<13>[pd] (2)
                                    Jun 9 09:21:09	dhcp6c	11654	<3>[id-assoc] (8)
                                    Jun 9 09:21:09	dhcp6c	11654	<3>end of sentence [;] (1)
                                    Jun 9 09:21:09	dhcp6c	11654	<3>end of closure [}] (1)
                                    Jun 9 09:21:09	dhcp6c	11654	<3>comment [# we'd like nameservers and RTSOLD to do all the work] (53)
                                    Jun 9 09:21:09	dhcp6c	11654	<3>end of sentence [;] (1)
                                    Jun 9 09:21:09	dhcp6c	11654	<3>["/var/etc/dhcp6c_wan_dhcp6withoutra_script.sh"] (46)
                                    Jun 9 09:21:09	dhcp6c	11654	<3>[script] (6)
                                    Jun 9 09:21:09	dhcp6c	11654	<3>end of sentence [;] (1)
                                    Jun 9 09:21:09	dhcp6c	11654	<3>[domain-name] (11)
                                    Jun 9 09:21:09	dhcp6c	11654	<3>[request] (7)
                                    Jun 9 09:21:09	dhcp6c	11654	<3>end of sentence [;] (1)
                                    Jun 9 09:21:09	dhcp6c	11654	<3>[domain-name-servers] (19)
                                    Jun 9 09:21:09	dhcp6c	11654	<3>[request] (7)
                                    Jun 9 09:21:09	dhcp6c	11654	<3>comment [# request prefix delegation] (27)
                                    Jun 9 09:21:09	dhcp6c	11654	<3>end of sentence [;] (1)
                                    Jun 9 09:21:09	dhcp6c	11654	<3>[0] (1)
                                    Jun 9 09:21:09	dhcp6c	11654	<3>[ia-pd] (5)
                                    Jun 9 09:21:09	dhcp6c	11654	<3>[send] (4)
                                    Jun 9 09:21:09	dhcp6c	11654	<3>begin of closure [{] (1)
                                    Jun 9 09:21:09	dhcp6c	11654	<5>[hn1] (3)
                                    Jun 9 09:21:09	dhcp6c	11654	<3>[interface] (9)
                                    Jun 9 09:21:09	dhcp6c	11654	skip opening control port
                                    Jun 9 09:21:09	dhcp6c	11654	failed initialize control message authentication
                                    Jun 9 09:21:09	dhcp6c	11654	failed to open /usr/local/etc/dhcp6cctlkey: No such file or directory
                                    Jun 9 09:21:09	dhcp6c	11654	extracted an existing DUID from /var/db/dhcp6c_duid: 00:01:00:01:22:95:fa:13:00:15:5d:5c:e2:31
                                    Jun 9 09:21:05	dhclient		Creating resolv.conf
                                    Jun 9 09:21:05	dhclient		/sbin/route add default 154.20.116.1
                                    Jun 9 09:21:05	dhclient		Adding new routes to interface: hn1
                                    Jun 9 09:21:05	dhclient		New Routers (hn1): 154.20.116.1
                                    Jun 9 09:21:05	dhclient		New Broadcast Address (hn1): 154.20.119.255
                                    Jun 9 09:21:05	dhclient		New Subnet Mask (hn1): 255.255.252.0
                                    Jun 9 09:21:05	dhclient		New IP Address (hn1): 154.20.119.154
                                    Jun 9 09:21:05	dhclient		ifconfig hn1 inet 154.20.119.154 netmask 255.255.252.0 broadcast 154.20.119.255
                                    Jun 9 09:21:05	dhclient		Starting add_new_address()
                                    Jun 9 09:21:05	dhclient		REBOOT
                                    Jun 9 09:21:04	dhclient		PREINIT
                                    
                                    1 Reply Last reply Reply Quote 0
                                    • jimpJ
                                      jimp Rebel Alliance Developer Netgate
                                      last edited by jimp

                                      Do you have a different piece of hardware (real or virtual) you can try here to see if it's isolated to those hnX NICs or your environment (hyperv?)?

                                      Also we recently, in the last few days, resynchronized with FreeBSD 11.2 so it's possible we picked up a bug fix, so it's worth testing on the latest snapshot.

                                      Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                                      Need help fast? Netgate Global Support!

                                      Do not Chat/PM for help!

                                      B 1 Reply Last reply Reply Quote 0
                                      • B
                                        bimmerdriver @jimp
                                        last edited by bimmerdriver

                                        @jimp said in DHCPv6 Client Broken in latest snapshot:

                                        Do you have a different piece of hardware (real or virtual) you can try here to see if it's isolated to those hnX NICs or your environment (hyperv?)?

                                        Also we recently, in the last few days, resynchronized with FreeBSD 11.2 so it's possible we picked up a bug fix, so it's worth testing on the latest snapshot.

                                        Unfortunately, I don't have any other hardware to try.

                                        I just updated to the latest snapshot and unfortunately, the error is exactly the same.

                                        If it would be useful to you, I could set up teamviewer so you can get on the system and take a look.

                                        1 Reply Last reply Reply Quote 0
                                        • D
                                          darkfire
                                          last edited by

                                          @jimp is there something we can do to help you?

                                          jimpJ 1 Reply Last reply Reply Quote 0
                                          • D
                                            darkfire
                                            last edited by

                                            a link to a related issue on the pfsense bug tracker
                                            https://redmine.pfsense.org/issues/8489

                                            B 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.