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

    Unable to get DHCPv6 to work

    Scheduled Pinned Locked Moved IPv6
    30 Posts 4 Posters 3.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
      pst @zingbats
      last edited by pst

      @zingbats I am trying to understand how VF is configuring the IPv6 connection, postings on the net suggests they are in the process of rolling out native IPv6 support. Could you post the result of https://ipv6-test.com/ using the ISP router? It should indicate if you have native IPv6, or 6to4 (see https://forum.vodafone.co.uk/t5/Other-broadband-queries/ipv6-settings/td-p/2742474/page/2)

      Z 1 Reply Last reply Reply Quote 0
      • Z
        zingbats @pst
        last edited by

        @pst I had already read up on the 6to4, but as I'm a new customer, I knew I'd be on the native. Here's the screenshot from the vodafone router

        Vodafone ipv6.png

        P 1 Reply Last reply Reply Quote 0
        • P
          pst @zingbats
          last edited by

          @zingbats good you've native, pity as it closes another avenue. With everything you've already tested it doesn't really leave much else to try. I still suspect VF is rejecting the DHCPv6 Request because pfSense is not sending the same parameters as the original router.

          Here's what pfSense is sending

          c4e7587d-6dd1-4d84-aa29-dff393df9127-image.png

          Whereas the VF router sends additional information:

          597183f2-4db4-4205-8c2d-5309169b6c61-image.png
          2368d8cd-1153-4431-b384-147e6d160291-image.png

          You could try adding the missing parameters (Option Request rDNS, Reconfigure Accept, Domain Name, and Prefix Delegation (which should have been included when setting Send Hint)) by enabling WAN / DHCP6 Client Configuration / Advanced Configuration, and then populate Advanced DHCP6 Client Configuration. I have never attemped this, and would not have much to contribute. There might be someone else though, that can provide the final pieces of this puzzle.

          Z 1 Reply Last reply Reply Quote 0
          • Z
            zingbats @pst
            last edited by

            @pst I tried the advance options, but it seems like the manual that pfSense references does not support these DHCP6 options.

            https://man.freebsd.org/cgi/man.cgi?query=dhcp6c.conf&apropos=0&sektion=0&manpath=FreeBSD+10.3-RELEASE+and+Ports&arch=default&format=html

            I imagine that means it's game over sadly.

            P 1 Reply Last reply Reply Quote 0
            • P
              pst @zingbats
              last edited by

              @zingbats said in Unable to get DHCPv6 to work:

              I imagine that means it's game over sadly.

              Not yet, it might just be a little more complicated than first imagined :)

              Let's try and add one parameter:

              e94d63c7-c781-472e-b8e0-80525ac3f4cd-image.png

              I think this falls under the manual section

              b39f786d-7899-4cb7-9fa8-9368c9b94564-image.png

              In pfSense that would I guess translate into

              b1e497bb-368b-42ba-a5df-4eb101c4384a-image.png

              If that works we should see pfSense sending this parameter to the DHCP6 Request, and we can continue with the next parameter.

              Z 1 Reply Last reply Reply Quote 0
              • Z
                zingbats @pst
                last edited by

                @pst I have tried setting JUST this as requested, and replicating the complete default config file (which includes domain-name-servers) and I don't see any options passed in the packets.

                P 1 Reply Last reply Reply Quote 0
                • P
                  pst @zingbats
                  last edited by

                  @zingbats I wonder if there's a bug in the 2.7.2 version of pfSense then. I did a test on my 23.09.1, adding sip-server-list as advanced configuration. I noticed that ONLY sip-server-list was requested, not DNS servers and other stuff which is usually asked for. The DHCPv6 Request was rejected and no IPv6 connectivity established. That seems to indicate that the Advanced DHCP6 configuration needs to be a complete configuration, AND that the DHCPv6 server might reject a Request that does not include everything it is expecting.

                  That both the Advanced DHCP6 configuration and "Send IPv6 prefix hint" seems to be ignored by pfSense 2.7.2, suggests a bug IMHO.

                  Z 1 Reply Last reply Reply Quote 0
                  • Z
                    zingbats @pst
                    last edited by

                    @pst luckily I'm in my 14 day cancellation window with my ISP so I'm moving to BT who seem to better support IPv6 without the need for non-standard options. Hopefully IPv6 will become more stable and configurable in pfsense soon, as it seems the dhcp6c is missing modern request options such as those required by vodafone.

                    P 1 Reply Last reply Reply Quote 0
                    • P
                      pst @zingbats
                      last edited by

                      @zingbats said in Unable to get DHCPv6 to work:

                      request options such as those required by vodafone

                      or it could just be us not understanding what is needed...

                      BTW, have you tried configuring SLAAC instead of DHCP6 on the WAN? (the last straw)

                      Z 1 Reply Last reply Reply Quote 0
                      • Z
                        zingbats @pst
                        last edited by

                        @pst SLAAC yielded no luck, unfortunately.

                        I did another clean install of pfsense and couldn't get the options to appear in the DHCP6 packets. As part of my research, I decided to test OPNSense. You can see in my packet below that it sent one (spoofing the MAC of the vodafone router) but it didn't seem to send it directly to the Nokia media convertor / modem. I think I'm right in assuming it broadcast it? Don't forget these devices are on their own VLAN to allow packet sniffing. Is that relevant here?

                        I am not asking for help with OPNSense because I much prefer supporting pfsense, but I wonder if this knowledge might help us? i.e. what is OPNSense using as a DHCP6 Client, and why is it sending the packet differently.

                        OPNSense DHCP6.pcapng

                        M 1 Reply Last reply Reply Quote 0
                        • M
                          mikemod @zingbats
                          last edited by mikemod

                          @zingbats I had similar issues when trying to get my BT IPv6 working, these are the settings I changed to get it to work in the end.
                          I think I had to reset the connection once the changes had been made.

                          In the WAN settings set to DHCP6 and in client config

                          6.jpg

                          1.jpg

                          In the LAN settings page set track interface and under Track IPv6 Interface

                          2.jpg

                          3.jpg

                          And then in the Firewall LAN rules make sure you have IPv6 added to the any rule.

                          5.jpg

                          4.jpg

                          Z 2 Replies Last reply Reply Quote 0
                          • Z
                            zingbats @mikemod
                            last edited by

                            This post is deleted!
                            1 Reply Last reply Reply Quote 1
                            • Z
                              zingbats @mikemod
                              last edited by

                              @mikemod @pst Thanks for your help! Weirdly, turns out this worked on OPNSense but not on pfSense. On pfSense, despite configuring Router Advertisements (unmanaged), I cannot load some ipv6 websites when I can on OPNSense.
                              I can ping ipv6.google.com but a tracert / https request to https://ipv6-test.com just times out.

                              DNS is functioning fine.

                              If I don't get any further responses, I'll start a new thread.

                              M 1 Reply Last reply Reply Quote 0
                              • M
                                mikemod @zingbats
                                last edited by

                                @zingbats said in Unable to get DHCPv6 to work:

                                My Router Advertisements is set to disabled

                                I set it to "Router Advertisements (unmanaged)" and it broke my IPv6 connection
                                Setting it back to disabled and saving didn't help, I had to reboot the router, with it set to disabled, to get IPv6 restored.

                                GertjanG Z 2 Replies Last reply Reply Quote 0
                                • GertjanG
                                  Gertjan @mikemod
                                  last edited by

                                  @mikemod

                                  I solved things the other way around.
                                  As my router, pfSense, gets a prefix, and I prefer that my pfSEnse handles all network related issues, I've set it to :

                                  2f330480-5b5b-43cf-8807-245f3bccb715-image.png

                                  and since that moment, my LAN is fully IPv6 operational.

                                  My (may stupid) thought is : if you disable it, or unmange it, who will handle the Ipv6 details ?
                                  Me ? No way.
                                  Go SLAAC mode ? No thanks.

                                  No "help me" PM's please. Use the forum, the community will thank you.
                                  Edit : and where are the logs ??

                                  1 Reply Last reply Reply Quote 0
                                  • Z
                                    zingbats @mikemod
                                    last edited by

                                    @mikemod interesting. When I have RA disabled I can't get any IPv6 addresses on the lan clients.

                                    M 1 Reply Last reply Reply Quote 0
                                    • M
                                      mikemod @zingbats
                                      last edited by mikemod

                                      @zingbats Yes all seems a bit strange around that setting.

                                      If I change mine to Managed and then back to disabled I also lose all IPv6 IPs from the clients.
                                      In the status/services it shows "radvd Router Advertisement Daemon" with a red cross.

                                      I had to actually do a config restore to get back to where I was, with it disabled by default.

                                      GertjanG 1 Reply Last reply Reply Quote 0
                                      • GertjanG
                                        Gertjan @mikemod
                                        last edited by

                                        @mikemod said in Unable to get DHCPv6 to work:

                                        If I change mine to Managed and then back to disabled I also lose all IPv6 IPs from the clients.
                                        In the status/services it shows "radvd Router Advertisement Daemon" with a red cross.

                                        Isn't that obvious : you disable the service so it isn't running == a red cross ?(!)

                                        pfSense, out of the box, doesn't use/have IPv6 activated, as every ISP on planet earth uses it's own method to use it. Some (probably : most) are still pretty broken if they do so.

                                        When you managed to activate IPv6 on your WAN (you've obtained an IPv6 on WAN)
                                        AND
                                        pfSense also obtained from upstream (your ISP, or your local ISP router) at least one or more prefix,
                                        AND you use this prefix with the 'tracking' method on one of your LAN's like :

                                        d261e973-bd11-44d3-8657-cbf0ede7d2e7-image.png
                                        a bit lower on the same LAN settings page ; you select WAN as the interface to track, and the prefix ID ( I've only one, so 0 out of 0) :
                                        05ef5438-1d33-4cdb-96e8-0009115f0d58-image.png

                                        THEN
                                        Activate the DHCPv6 server on LAN and set it up a bit like a DHCPv4 server on that LAN :
                                        Example :

                                        85f216e9-f139-42ab-9a61-553c0383ee53-image.png

                                        and of course you use RADVD as managed :

                                        1fd33b54-d7ec-4924-822f-935aba5834af-image.png

                                        because (pure BS ahead ) : do you want to manage IPv6 yourself or do you want pfSense to do it for you ? ^^
                                        (ok, now I'll get struck by the IPv6 purists and other SLAAC fans)

                                        From then on :

                                        187d462b-822c-4961-a0d4-25aca7bce4b0-image.png

                                        ..... again : every ISP handles IPv6 somewhat differently. If you wonder why, then be welcome to the club. Ask your ISP ^^ tel us what they said, as their replies go often way beyond humor.
                                        Some thinking, documentation and "selecting the right ISP" is, as always, important (was previously known as "learning")
                                        IPv6 isn't plug and play, and this is understandably, as it took decades for IPv4 to become what it is today (so we can ditch it for-good "tomorrow".

                                        No "help me" PM's please. Use the forum, the community will thank you.
                                        Edit : and where are the logs ??

                                        M 1 Reply Last reply Reply Quote 1
                                        • M
                                          mikemod @Gertjan
                                          last edited by

                                          @Gertjan So if it's disabled by default then why does it work if I don't change that setting and it shows a green tick in the services.

                                          All clients pass the IPv6 tests and if I ping google.co.uk it uses the google IPv6 address.

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