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

    Getting IPv6 SLAAC to work in my network

    Scheduled Pinned Locked Moved IPv6
    ipv6slaacguaulastateless
    31 Posts 4 Posters 4.1k 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.
    • I
      IonutIT
      last edited by IonutIT

      So this is bugging me for a while and I need to ask you guys for help.

      My ISP is configured with PPPoE IPv4 and DHCPv6-PD.

      Screenshot 2022-10-15 at 10.53.48.jpg

      But the allocation it gives out is a bit weird

      Screenshot 2022-10-15 at 10.55.00.png

      So I get a public IPv4 address but the gateway is 10.0.0.1 and the subnet mask is /32. And I also get a GUA IPv6 but with a /128 mask again with fe80::1 gateway.

      On the LAN side, I get GUA IPv6 with a /56 subnet which is OK, even though I ask for a /64 (and the ISP itself is saying on it's info page that they give out /64 PD)

      Here is the LAN config:

      Screenshot 2022-10-15 at 11.01.01.jpg

      From here, if I want to use DHCPv6 server I can get it to work with the below settings (RA set to managed):

      Screenshot 2022-10-15 at 11.01.37.png

      Now I want my LAN to work with only SLAAC and disable the DHCPv6 server, but for some strange reason whenever I do that, the guests hosts only get ULA addresses (fdcd:7355:ec2f:4dbf::/64) and don't ever get GUA addresses derived from my Prefix Delegation from my ISP.

      If I manually input my ISPs Prefix Delegation into RA Subnets field into Router Advertisments, everything is working fine, but those PDs are dynamic, and if I disconnect for any reason I will get a new prefix delegation so that field needs to be manually updated.

      Any way to get this to work properly? I also suspect the fact that my ISP is giving a /56 PD instead of /64 (and I remember SLAAC only works with /64) that might also cause the issue.

      Thanks in advance

      Bob.DigB JKnottJ 2 Replies Last reply Reply Quote 0
      • Bob.DigB
        Bob.Dig LAYER 8 @IonutIT
        last edited by

        @ionutit said in Getting IPv6 SLAAC to work in my network:

        but for some strange reason whenever I do that, the guests only get ULA addresses (fdcd:7355:ec2f:4dbf::/64)

        What guest network? I only see LAN and pfSense is not giving out ULA on its own...

        I 1 Reply Last reply Reply Quote 0
        • I
          IonutIT @Bob.Dig
          last edited by

          @bob-dig sorry, I misspoke, English is not my native language.

          I meant to say hosts, ie. the devices connected to the LAN network.

          Bob.DigB 1 Reply Last reply Reply Quote 0
          • Bob.DigB
            Bob.Dig LAYER 8 @IonutIT
            last edited by

            @ionutit Then you must have configured that ULA yourself in RA? Again, pfSense is not handing out ULA on its own.

            I 1 Reply Last reply Reply Quote 0
            • I
              IonutIT @Bob.Dig
              last edited by

              @bob-dig

              Those are probably from some other actor inside my network. Maybe my Apple devices are doing that. I will look into that, but regardless, I have my RA priority set to High on pfsense, so if things there are working, it should take from my router not anyone else.

              With DHCPv6 server turned off and RA set to Unmanaged, I don't get any GUA addresses from my ISPs Prefix Delegation, unless I manually set it in the RA Subnets field in pfsense config.

              I also tried with RA set to Stateless DHCP and the results are the same.

              Is the fact that my PD from my ISP at /56 an issue? Is there a way to fill in the /56 to a /64 so that I can serve a /64 to SLAAC (might be talking nonsense here, I've been learning about IPv6 for a few months now, even though I work in networking for 14 years, I only dealt with IPv4 so far).

              Bob.DigB 1 Reply Last reply Reply Quote 0
              • Bob.DigB
                Bob.Dig LAYER 8 @IonutIT
                last edited by Bob.Dig

                @ionutit said in Getting IPv6 SLAAC to work in my network:

                Is the fact that my PD from my ISP at /56 an issue?

                No, every LAN-type-interface in pfSense need its own /64 and /56 contains many /64, so that is good.

                Maybe you have something incorrectly configured in the beginning and it is better to start fresh.

                I 1 Reply Last reply Reply Quote 0
                • I
                  IonutIT @Bob.Dig
                  last edited by

                  @bob-dig

                  But the interface itself (LAN) gets a /56. The WAN gets a /128.

                  Bob.DigB 1 Reply Last reply Reply Quote 0
                  • Bob.DigB
                    Bob.Dig LAYER 8 @IonutIT
                    last edited by Bob.Dig

                    @ionutit WAN doesn't matter and LAN has to be /64. I don't know how you managed to do this wrong.


                    Screenshot 2022-10-15 110705.png

                    I 1 Reply Last reply Reply Quote 0
                    • I
                      IonutIT @Bob.Dig
                      last edited by IonutIT

                      @bob-dig

                      I didn't do anything wrong, It gets a /56 automatically from the ISP through DHCPv6-PD.

                      There's not many settings to mess up when configuring, as you can see in the screenshots I posted.

                      On the WAN interface I did:

                      Screenshot 2022-10-15 at 12.15.38.jpg

                      On the LAN interface I did:

                      Screenshot 2022-10-15 at 12.16.05.jpg

                      And in the RA page I did:

                      Screenshot 2022-10-15 at 12.16.29.jpg

                      I haven't touched anything else...

                      And for some weird reason, even though I set my Prefix Delegation to /64, my ISP always gives me /56.

                      Bob.DigB 1 Reply Last reply Reply Quote 0
                      • Bob.DigB
                        Bob.Dig LAYER 8 @IonutIT
                        last edited by

                        @ionutit said in Getting IPv6 SLAAC to work in my network:

                        I haven't touched anything else...

                        And non the less there is no way I can think of that pfSense is showing /56 on the Subnet in the DHCPv6 Options for your LAN if you use Track Interface.

                        Something is fundamentally wrong in your setup, maybe your running pppoe over your LAN? Really just start fresh is all I can advice you to do.

                        I 2 Replies Last reply Reply Quote 0
                        • I
                          IonutIT @Bob.Dig
                          last edited by

                          @bob-dig

                          I'm not running PPPoE over my LAN, that's just for WAN.

                          The only thing I think it's wrong is the fact that my ISP gives me a /56 even though I ask for a /64. And the Prefix Delegation is assigned to /56 even though I want /64.

                          Screenshot 2022-10-15 at 12.25.48.png

                          1 Reply Last reply Reply Quote 0
                          • I
                            IonutIT @Bob.Dig
                            last edited by IonutIT

                            @bob-dig

                            OK so I finally made it work, but in a very weird way.

                            Seeing as when I set "64" in WAN settings "DHCPv6 Prefix Delegation size" gave me an actual /56 network for my LAN interface, I tried to set that to "56" (against the information that is handed out by my ISP), and sure enough, I instantly got a /64 network for my LAN interface and SLAAC magically started working.

                            Can't really explain why that worked, but I won't complain.

                            Screenshot 2022-10-15 at 13.39.31.png

                            Bob.DigB 1 Reply Last reply Reply Quote 0
                            • Bob.DigB
                              Bob.Dig LAYER 8 @IonutIT
                              last edited by Bob.Dig

                              @ionutit said in Getting IPv6 SLAAC to work in my network:

                              Can't really explain why that worked, but I won't complain.

                              Interesting! Still won't explain the ULA on your LAN but at least you're making some progress.

                              I 1 Reply Last reply Reply Quote 0
                              • I
                                IonutIT @Bob.Dig
                                last edited by

                                @bob-dig

                                Yeah, I have no idea where those ULAs are coming from. It seems that not all my IPv6 enabled devices in my network get 2 IPs, one GUA and one ULA.

                                Is there a way to check RA packets and pinpoint the source?

                                At the end of the day this is not such a dealbreaker as obviously Internet traffic is passed through the GUA IP.

                                JKnottJ 1 Reply Last reply Reply Quote 0
                                • JKnottJ
                                  JKnott @IonutIT
                                  last edited by

                                  @ionutit said in Getting IPv6 SLAAC to work in my network:

                                  And I also get a GUA IPv6 but with a /128 mask again with fe80::1 gateway.
                                  On the LAN side, I get GUA IPv6 with a /56 subnet which is OK, even though I ask for a /64 (and the ISP itself is saying on it's info page that they give out /64 PD)

                                  A /128 GUA and link local gateway is entirely normal. Are you sure you get a /56 on the LAN?

                                  but those PDs are dynamic, and if I disconnect for any reason I will get a new prefix delegation so that field needs to be manually updated.

                                  Have you selected Do not allow PD/Address release on the WAN page?

                                  PfSense running on Qotom mini PC
                                  i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                                  UniFi AC-Lite access point

                                  I haven't lost my mind. It's around here...somewhere...

                                  I 1 Reply Last reply Reply Quote 0
                                  • JKnottJ
                                    JKnott @IonutIT
                                    last edited by

                                    @ionutit said in Getting IPv6 SLAAC to work in my network:

                                    Is there a way to check RA packets and pinpoint the source?

                                    Do a packet capture and check the MAC.

                                    PfSense running on Qotom mini PC
                                    i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                                    UniFi AC-Lite access point

                                    I haven't lost my mind. It's around here...somewhere...

                                    1 Reply Last reply Reply Quote 0
                                    • I
                                      IonutIT @JKnott
                                      last edited by

                                      @jknott said in Getting IPv6 SLAAC to work in my network:

                                      Are you sure you get a /56 on the LAN?

                                      Yeah, for some strange and weird reason, when I set my Prefix Delegation size to 64 in WAN settings page, I always got a /56 assigned to my LAN (interface was set to tracking).

                                      But as I mentioned in my last post, when I set the PD size to 56 (against what my ISP has informed me I should use) I immediately got a /64 assigned to my LAN and SLAAC started working.

                                      Now I just need to find the source of these ULA addresses that my network gets, it's going to be a pain to find them, but fortunately it doesn't really impact my ability to go online though IPv6.

                                      JKnottJ 1 Reply Last reply Reply Quote 0
                                      • JKnottJ
                                        JKnott @IonutIT
                                        last edited by

                                        @ionutit said in Getting IPv6 SLAAC to work in my network:

                                        But as I mentioned in my last post, when I set the PD size to 56 (against what my ISP has informed me I should use) I immediately got a /64 assigned to my LAN and SLAAC started working.

                                        56 on the WAN is normal. That's what I have here. This way, you have up to 256 /64s to use.

                                        As for the RAs, as I said, do a packet capture to see the MAC address, from which you can identify the device.

                                        PfSense running on Qotom mini PC
                                        i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                                        UniFi AC-Lite access point

                                        I haven't lost my mind. It's around here...somewhere...

                                        I 1 Reply Last reply Reply Quote 0
                                        • I
                                          IonutIT @JKnott
                                          last edited by

                                          @jknott

                                          I'm trying to do that, but I might be doing it wrong.

                                          So I'm running Wireshark on the ens0 (Ethernet port on my Mac Mini) and filtering for

                                          icmpv6.type == 134

                                          But all my outputs are showing fe80: link-local source and destination. I can't catch the fdcd: ULA anywhere.

                                          Any pointers on how I should sniff for that?

                                          Bob.DigB JKnottJ 2 Replies Last reply Reply Quote 0
                                          • Bob.DigB
                                            Bob.Dig LAYER 8 @IonutIT
                                            last edited by Bob.Dig

                                            @ionutit In the end, you can not filter "local" traffic in one subnet anyway, only something routed through the firewall can be filtered. So as long as this (apple-)device is only member of one subnet, it shouldn't matter. I hope you have more than one LAN because otherwise the firewall isn't doing much for you.

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