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

    IPv6 DHCP-PD – radvd dies after interface reset - dhcpv6 does not reaquire addr

    Scheduled Pinned Locked Moved 2.1 Snapshot Feedback and Problems - RETIRED
    166 Posts 21 Posters 76.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.
    • P
      priller
      last edited by

      @priller:

      I had that happen yesterday.  WAN DHCPv6 did a renew, the WAN IPv6 address was still there.  But, RADVD disappeared and there was no IPv6 address on the LAN.

      OK, this problem is pretty serious and very real.

      Right on cue, 48 hours later, the WAN dhcpv6 did a renew and BAM!   IPv6 addressing assigned to the LAN (DHCP-PD) is gone and radvd has disappeared.

      Is there anything I can provide to help resolve this issue?

      ** Edit **

      Just saw something.  Both times this has happened, there was this syslog message just before everything went to crap.

      "pfSense package system has detected an ip change 2001:558:6020:xxxx:35ac:547f:afad:d3f ->  2001:558:6020:xxxx:4cff:12d7:4aa5:fc41 … Restarting packages."

      When in reality, there was NO change.  Before the 'event', the address was  2001:558:6020:xxxx:4cff:12d7:4aa5:fc41 and it still is.

      So, the question is … What is triggering this?  Why did pfsense erroneously think it had changed? Is the WAN address stored in a file somewhere and is compared when dhcpv6 renews?  I'm thinking that file is not being updated and every time there is a renewal, it thinks it has changed.

      Thoughts?

      1 Reply Last reply Reply Quote 0
      • P
        priller
        last edited by

        @priller:

        Just saw something.  Both times this has happened, there was this syslog message just before everything went to crap.

        "pfSense package system has detected an ip change 2001:558:6020:xxxx:35ac:547f:afad:d3f ->  2001:558:6020:xxxx:4cff:12d7:4aa5:fc41 … Restarting packages."

        When in reality, there was NO change.  Before the 'event', the address was  2001:558:6020:xxxx:4cff:12d7:4aa5:fc41 and it still is.

        So, the question is … What is triggering this?  Why did pfsense erroneously think it had changed? Is the WAN address stored in a file somewhere and is compared when dhcpv6 renews?  I'm thinking that file is not being updated and every time there is a renewal, it thinks it has changed.

        I've noticed something that doesn't look right that may explain the above.

        The current WAN address from ifconfig:

        inet6 2001:558:6020:14a:3117:6e4b:xxxx:b6bf prefixlen 128

        The contents of /var/db/wan_ipv6:

        2001:558:6020:14a:4cff:12d7:4aa5:fc41      <<<–-- OLD ... the previous address

        The contents of /var/db/wan_cacheipv6:

        2001:558:6020:14a:4cff:12d7:4aa5:fc41        <<<–-- OLD ... the previous address

        So, the next time it renews (and gets the same address renewed), one of those files will be checked and pfsense will erroneously think the address changed.  But, that is stale information.

        Can somebody confirm that the expectation is that the /var/db file(s) should be the current address and not the last, no longer valid address?

        Is my logic wrong?

        Thanks

        1 Reply Last reply Reply Quote 0
        • E
          eri--
          last edited by

          Do you have on the logs any line similar to:
          rc.newwanipv6: on (IP address: {$curwanipv6}) (interface: {$interface}) (real interface: {$interface_real}).

          1 Reply Last reply Reply Quote 0
          • P
            priller
            last edited by

            @ermal:

            Do you have on the logs any line similar to:
            rc.newwanipv6: on (IP address: {$curwanipv6}) (interface: {$interface}) (real interface: {$interface_real}).

            There is:

            Mar 16 18:57:19 php: : rc.newwanipv6: Informational is starting re1.
            Mar 16 18:57:24 php: : rc.newwanipv6: on (IP address: 2001:558:6020:14a:4cff:12d7:4aa5:fc41) (interface: wan) (real interface: re1).

            This ran during a scheduled dhcpv6 renewal.  Since the time stamp on that one, the WAN IP had changed after reboot and there is no syslog to reflect that it ran. And the /var/db files were not updated.

            For now, I've manually edited those 2 /var/db files to reflect the current address.  Will see if it survives the next renewal without issue.

            –-

            A secondary issue is that almost every time I reboot, the WAN IPv6 address and the PD for LAN change.  It's like the DUID is changing with each restart.  This should be constant.

            I've found some older discussions about the DUID changing here:
            http://www.dslreports.com/forum/r27854661-IPv6-Seeing-two-different-LAN-side-ranges
            http://forum.pfsense.org/index.php/topic,55161.msg306484.html#msg306484

            1 Reply Last reply Reply Quote 0
            • R
              reslip
              last edited by

              @ermal:

              Do you have on the logs any line similar to:
              rc.newwanipv6: on (IP address: {$curwanipv6}) (interface: {$interface}) (real interface: {$interface_real}).

              Previously I had
              rc.newwanipv6: on (IP address: 2001:558:xxxxxxxx) (interface: wan) (real interface: fxp1).

              Not sure if you need any more info.

              Looks like you have made some changes to dual stack (rc.linkup) and radvd, but the latest build I see is from yesterday March 17th. I will wait for a new build later today, then do the update to let you know how it goes. Ironically, I have not lost my ipv6 lan address in the past 12 hours.

              1 Reply Last reply Reply Quote 0
              • E
                eri--
                last edited by

                Yeah made some changes which should improve the situation.
                Test with newer snapshots.

                1 Reply Last reply Reply Quote 0
                • P
                  priller
                  last edited by

                  @ermal:

                  Yeah made some changes which should improve the situation.
                  Test with newer snapshots.

                  It gotten worse with the 20130318-1652 build.  I can get the WAN interface IPv6 address, but cannot get the PD for LAN.

                  RADVD doesn't even start at all.

                  After upgrade, getting this on the dashboard:
                  [ There were error(s) loading the rules: pfctl: DIOCADDALTQ: Device busy - The line in question reads [0]: ]

                  This message is constant:   dhcp6c[16530]: client6_recvadvert: XID mismatch

                  –-----

                  Reverted back to:

                  2.1-BETA1 (amd64)
                  built on Sun Mar 17 12:19:16 EDT 2013
                  FreeBSD 8.3-RELEASE-p6

                  ... and everything came back.

                  1 Reply Last reply Reply Quote 0
                  • E
                    eri--
                    last edited by

                    It would have been helpful having the system logs rather than just it does not work!

                    This message is constant:  dhcp6c[16530]: client6_recvadvert: XID mismatch

                    This might be not important since you might be seeing other clients reply/advertisments.

                    1 Reply Last reply Reply Quote 0
                    • P
                      priller
                      last edited by

                      Here's what I saw after applying the 20130318-1652 build.

                      • IPv4 was working fine.

                      • IPv6 - The WAN obtained an address.  There was never PD assigned to the LAN.

                      • There are dozens of "client6_recvadvert: XID mismatch" messages.

                      • I never saw RADVD start.  Never saw it in a 'stopped' state, it just never appeared. There is not a single syslog message about it.  Possibly it doesn't get called until there is IPV6 address on the LAN?

                      • The dashboard kept flashing the following:
                        There were error(s) loading the rules: pfctl: DIOCADDALTQ: Device busy - The line in question reads 0

                      • I attempted to revert back to previous configuration from GUI.  Firmware –> Restore Full Backup.
                        This failed twice (as in didn't do anything, no syslog message)

                      • I then downloaded and installed the  Sun Mar 17 12:19:16 build.  When it came back up, system was normal.

                      Here's syslogs that appear to be anywhere relevant to the issue.

                      No indication that  rc.newwanipv6 ever ran.

                      21:15:40 syslogd: kernel boot file is /boot/kernel/kernel
                      21:15:41 php: : Restarting/Starting all packages.

                      21:15:54 dhcp6c[15951]: client6_recvadvert: XID mismatch

                      21:15:57 php: : Checking for and disabling any rules dependent upon disabled preprocessors for WAN…
                      21:17:46 dhcp6c[15951]: client6_recvadvert: XID mismatch

                      21:35:41 php: : rc.newwanip: Informational is starting ovpns1.
                      21:35:42 apinger: Starting Alarm Pinger, apinger(23340)
                      21:35:42 apinger: bind socket: Can't assign requested address
                      21:35:45 dhcp6c[16042]: client6_recvadvert: XID mismatch

                      21:35:48 php: : The command '/sbin/route change -inet6 default fe80::201:5cff:fe24:9301' returned exit code '1', the output was 'route: writing to routing socket: Network is unreachable route: writing to routing socket: Network is unreachable change net default: gateway fe80::201:5cff:fe24:9301: Network is unreachable'

                      21:35:58 php: : Checking for and disabling any rules dependent upon disabled preprocessors for WAN…

                      21:36:27 kernel: re1: promiscuous mode enabled

                      21:36:37 dhcp6c[16042]: client6_recvadvert: XID mismatch

                      1 Reply Last reply Reply Quote 0
                      • E
                        eri--
                        last edited by

                        Ok after a lot of fighting with it i finally think that tomorrow snapshot will behave ok.
                        The problem was that multiple dhcp6c were running at same time.

                        Test with tomorrows snapshot and let me know.

                        1 Reply Last reply Reply Quote 0
                        • P
                          priller
                          last edited by

                          Thanks for all the work you have put into it.  I updated to ….

                          2.1-BETA1 (amd64)
                          built on Tue Mar 19 16:39:04 EDT 2013

                          ... and I'm pulling IPv6 addressing.   A couple of issues/observations.

                          1. RADVD -  It comes up and stops and I have to manually start it.

                          Mar 19 19:29:51 pfsense radvd[57759]: version 1.9.1 started
                          Mar 19 19:29:54 pfsense radvd[57888]: our AdvManagedFlag on re0 doesn't agree with fe80::201:5cff:fe24:9301  <<–- Confirmed Gateway addr
                          Mar 19 19:29:57 pfsense radvd[57888]: our AdvManagedFlag on re0 doesn't agree with fe80::201:5cff:fe24:9301

                          I have rebooted twice and same. It's stopped, but will manually start OK.

                          1. Cannot pass IPv6 traffic from the LAN to the Internet
                          • The LAN is assigned the PD
                          • The hosts are seeing the RA.  I've captured with Wireshark, on the hosts,  and all looks correct.
                          • The WAN IPv6 gateway is up
                          • The default route on the hosts and pfsense is there.

                          However, IPv6 traffic from the LAN cannot access the Internet.  My SWAG is that the error in #1 above has prevented the CMTS from inserting the LAN prefix into it's routing table, so I can't get anywhere (I've seen something like this before with other products).

                          If if go back to the  Sun Mar 17 12:19:16 EDT 2013 build, everything starts working.

                          I've very sorry, but I don't know what else to add.  ????

                          1. /var/db/wan_ipv6   and   /var/db/wan_cacheipv6

                          Neither reflects the current IPv6 WAN address.  Is that an issue?  It appeared to be a conflict when the address renews.   rc.newwanipv6 is erroneously triggered thinking the WAN address has changed, when in reality it has not.

                          1 Reply Last reply Reply Quote 0
                          • R
                            reslip
                            last edited by

                            I am getting the same types of issues with the March 19th 16:35 build.

                            Mar 20 08:02:53 php: : rc.newwanipv6: Informational is starting fxp1.
                            Mar 20 08:02:58 php: : rc.newwanipv6: Failed to update wan IPv6, restarting…
                            Mar 20 08:02:58 dhcp6c[29010]: check_exit: exiting
                            Mar 20 08:03:02 php: : rc.newwanipv6: Informational is starting fxp1.
                            Mar 20 08:03:07 php: : rc.newwanipv6: Failed to update wan IPv6, restarting…

                            It appears I can no longer use ping6 on the lan side, probably due to radvd not starting. I see radvd in the services section, but when I go to start it I get this error.
                            Mar 20 08:04:38 kernel: pid 89651 (radvd), uid 0: exited on signal 11 (core dumped)

                            1 Reply Last reply Reply Quote 0
                            • R
                              reslip
                              last edited by

                              Thank you for the continued work on this. I've updated to the latest Mar 21 04:30:58 EDT 2013.

                              A few notes on this build:

                              • In the system log I am seeing quite frequently… dhcp6c[34635]: client6_recvadvert: XID mismatch
                              • Ping6 works fine from the firewall, but not from any clients on the local lan.
                              • radvd does not start automatically. However, I can start it now without it giving a core dump. When I do start it, I can ping from the local lan as well. :)
                              1 Reply Last reply Reply Quote 0
                              • P
                                priller
                                last edited by

                                I updated to:

                                2.1-BETA1 (amd64)
                                built on Thu Mar 21 17:04:35 EDT 2013

                                Appears to working OK.  Only observations are:

                                1. I had to manually start radvd.  Once started, there were no errors.  IPv6 connectivity is good.

                                2. /var/db/wan_ipv6   and   /var/db/wan_cacheipv6   don't have the current WAN IPv6 address.  Problem or not???

                                So, I'll wait 48 hours and see what happens at dhcpv6 renewal time.  That's when I have been loosing the LAN PD and have to reboot.

                                1 Reply Last reply Reply Quote 0
                                • P
                                  priller
                                  last edited by

                                  @priller:

                                  So, I'll wait 48 hours and see what happens at dhcpv6 renewal time.  That's when I have been loosing the LAN PD and have to reboot.

                                  It's now been over 72 hours and it's still solid.  So, it looks like a good fix.  Thanks!

                                  1 Reply Last reply Reply Quote 0
                                  • P
                                    priller
                                    last edited by

                                    Guess I spoke too soon.   A different issue has shown itself now.

                                    At exactly 4 days uptime, I lost all IPv6 addressing.  The WAN IPv6 address was gone; the PD for the LAN was also gone.

                                    4 days just happens to be the IPv6 lease time from Comcast.  So, it looks like the lease expired and pfSense did not renew.

                                    The only syslog during this event was:

                                    Mar 26 07:35:03 dhcp6c[46766]: client6_timo: all information to be updated was canceled
                                    Mar 26 07:38:12 dhcp6c[46766]: client6_timo: all information to be updated was canceled

                                    1 Reply Last reply Reply Quote 0
                                    • R
                                      reslip
                                      last edited by

                                      I'm still having similar problems. It looks like it was around 48 hours later, then my ipv6 lan addressing was also dropped.

                                      Mar 21 12:14:43 radvd[66853]: version 1.9.1 started <–-----------------STARTED
                                      Mar 21 12:38:50 radvd[67052]: attempting to reread config file
                                      Mar 21 12:38:50 radvd[67052]: resuming normal operation
                                      Mar 21 12:43:50 radvd[67052]: attempting to reread config file
                                      Mar 21 12:43:50 radvd[67052]: resuming normal operation
                                      Mar 23 11:55:35 radvd[67052]: Exiting, sigterm or sigint received. <–----------RADVD STOPPED, NEVER RESTARTED

                                      Wan IPv6 still works ok. I am using Comcast as well.

                                      Using the latest Mar 26th build it looks like radvd is still not starting.
                                      Mar 26 18:50:43 php: : rc.newwanip: Informational is starting fxp1.
                                      Mar 26 18:50:43 php: : rc.newwanip: on (IP address: 71.238.140.xxx) (interface: wan) (real interface: fxp1).
                                      Mar 26 18:50:43 php: : Accept router advertisements on interface fxp1
                                      Mar 26 18:50:43 php: : ROUTING: setting default route to 71.238.140.1
                                      Mar 26 18:50:43 php: : ROUTING: setting IPv6 default route to fe80::201:5cff:fe3d:xxxx%fxp1
                                      Mar 26 18:50:43 php: : ROUTING: setting default route to 71.238.140.1
                                      Mar 26 18:50:43 php: : ROUTING: setting IPv6 default route to fe80::201:5cff:fe3d:xxxx%fxp1
                                      Mar 26 18:50:44 dhcpleases: Could not deliver signal HUP to process because its pidfile does not exist, No such file or directory.
                                      Mar 26 18:50:44 dhcp6c[46524]: dhcp6_ctl_authinit: failed to open /usr/local/etc/dhcp6cctlkey: No such file or directory
                                      Mar 26 18:50:44 dhcp6c[46524]: client6_init: failed initialize control message authentication
                                      Mar 26 18:50:44 dhcp6c[46524]: client6_init: skip opening control port

                                      1 Reply Last reply Reply Quote 0
                                      • P
                                        priller
                                        last edited by

                                        Very interesting.  I had to start radvd manually every time the system booted.

                                        I decided to do a total reinstall, now radvd starts reliably (I imported the config.xml into the fresh install)

                                        Does applying the update builds leave stuff behind that in-turn causes conflicts or doesn't update something?

                                        Have to wait and see if the IPv6 address renewal problem is any better now.

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

                                          I think I've fallen victim to this issue as well. IPv6 has disappeared from the LAN interface. RADVD service is simply gone from the services page now. It was there earlier. I think after 48 hours there is some sort of address renewal process which triggers this.

                                          Without the LAN interface having any IPv6 connectivity, all IPv6 connectivity on the LAN has ceased. Strangely enough, the renewal code seems to correctly populate resolv.conf with the IPV6 DNS entries. Upon bootup, resolv.conf will only have IPv4 DNS. So startup and renewal each have their own issues.

                                          This is on the March 26th snapshot nanobsd i386. ISP is Comcast.

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

                                            I'm not sure if what I'm seeing after upgrading to the March 30th snapshot is the same issue for this thread but I don't have any IPv6 connectivity at all on the LAN. RADVD is sending advertisements, all LAN clients pick up an address (but not DNS) but there is no connectivity.

                                            I can't ping the router's LAN address

                                            I get a lot of failed to update WAN IPv6 address errors.

                                            Mar 31 17:18:05 	php: : ROUTING: setting IPv6 default route to fe80::201:5cff:fe31:b7c1%vr1
                                            Mar 31 10:18:08 	php: : rc.newwanipv6: Failed to update wan IPv6, restarting...
                                            Mar 31 17:18:11 	check_reload_status: Updating all dyndns
                                            Mar 31 10:18:18 	php: : rc.newwanip: Informational is starting vr1.
                                            Mar 31 10:18:18 	php: : rc.newwanip: on (IP address: 24.x.y.z) (interface: wan) (real interface: vr1).
                                            Mar 31 10:18:18 	php: : Accept router advertisements on interface vr1
                                            Mar 31 17:18:18 	check_reload_status: Restarting ipsec tunnels
                                            Mar 31 10:18:18 	php: : ROUTING: setting default route to 24.x.yyy.1
                                            Mar 31 10:18:18 	php: : ROUTING: setting IPv6 default route to fe80::201:5cff:fe31:b7c1%vr1
                                            Mar 31 17:18:20 	check_reload_status: Reloading filter
                                            Mar 31 10:18:21 	dhcp6c[18942]: client6_recvreply: status code: success
                                            Mar 31 10:18:21 	dhcp6c[48004]: dhcp6_ctl_authinit: failed to open /usr/local/etc/dhcp6cctlkey: No such file or directory
                                            Mar 31 10:18:22 	dhcp6c[48004]: client6_init: failed initialize control message authentication
                                            Mar 31 10:18:22 	dhcp6c[48004]: client6_init: skip opening control port
                                            Mar 31 10:18:23 	php: : rc.newwanipv6: Informational is starting vr1.
                                            Mar 31 10:18:25 	php: : Resyncing OpenVPN instances for interface WAN.
                                            Mar 31 10:18:26 	php: : Creating rrd update script
                                            Mar 31 10:18:28 	php: : rc.newwanipv6: Failed to update wan IPv6, restarting...
                                            Mar 31 10:18:28 	dhcp6c[18942]: client6_recvadvert: XID mismatch
                                            Mar 31 10:18:28 	dhcp6c[18942]: client6_recvadvert: XID mismatch
                                            Mar 31 10:18:28 	dhcp6c[18942]: client6_recvadvert: XID mismatch
                                            Mar 31 10:18:28 	dhcp6c[18942]: client6_recvadvert: XID mismatch
                                            Mar 31 10:18:28 	dhcp6c[18942]: client6_recvadvert: XID mismatch
                                            Mar 31 10:18:28 	dhcp6c[18942]: client6_recvadvert: XID mismatch
                                            Mar 31 10:18:28 	dhcp6c[18942]: client6_recvreply: status code: success
                                            Mar 31 10:18:30 	php: : rc.newwanipv6: Informational is starting vr1.
                                            Mar 31 10:18:30 	php: : pfSense package system has detected an ip change 0.0.0.0 -> 24.x.y.z ... Restarting packages.
                                            Mar 31 17:18:30 	check_reload_status: Starting packages
                                            Mar 31 10:18:35 	php: : rc.newwanipv6: Failed to update wan IPv6, restarting...
                                            Mar 31 10:18:35 	dhcp6c[18942]: check_exit: exiting
                                            Mar 31 10:18:40 	php: : Restarting/Starting all packages.
                                            Mar 31 10:18:40 	php: : The OpenVPN Client Export Utility package is missing its configuration file and must be reinstalled.
                                            Mar 31 10:18:44 	php: : rc.newwanipv6: Informational is starting vr1.
                                            Mar 31 17:18:46 	check_reload_status: Syncing firewall
                                            Mar 31 10:18:49 	php: : rc.newwanipv6: Failed to update wan IPv6, restarting...
                                            Mar 31 17:18:54 	php: : Creating rrd update script
                                            Mar 31 17:19:38 	php: : PBI dir for zip-3.0-i386 was not found - cannot cleanup PBI files
                                            Mar 31 17:19:38 	php: : PBI dir for p7zip-9.20.1-i386 was not found - cannot cleanup PBI files
                                            Mar 31 17:19:40 	check_reload_status: Syncing firewall
                                            Mar 31 17:19:43 	php: : Beginning package installation for OpenVPN Client Export Utility .
                                            Mar 31 17:21:48 	check_reload_status: Syncing firewall
                                            Mar 31 10:21:49 	syslogd: exiting on signal 15
                                            Mar 31 10:21:49 	syslogd: kernel boot file is /boot/kernel/kernel
                                            Mar 31 10:21:51 	php: : Restarting/Starting all packages.
                                            
                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.