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

Is it possible to have DHCPv6 assign both a local and a global address

Scheduled Pinned Locked Moved DHCP and DNS
dhcpv6
7 Posts 3 Posters 970 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.
  • C
    ChrisJenk
    last edited by Nov 15, 2022, 11:44 AM

    My home network is dual stack. All devices get a local IPv6 address (fd00::/64) assigned either via manual assignment (servers) or DHCPv6.

    Is it possible to also have DHCPv6 assign global addresses to the same set of clients (based on my global IPv6 /64 prefix) on the same network? If so how to configure it?

    If it is possible, is it also possible to limit which clients get assigned global addresses?

    Thanks.

    B 1 Reply Last reply Nov 15, 2022, 11:56 AM Reply Quote 0
    • B
      Bob.Dig LAYER 8 @ChrisJenk
      last edited by Bob.Dig Nov 15, 2022, 12:02 PM Nov 15, 2022, 11:56 AM

      @chrisjenk Use DHCPv6 with Track Interface for the GUA and Subnets on RA for ULA.

      Screenshot 2022-11-15 125518.png
      Change Router Mode to something usefull like assisted.

      J C 2 Replies Last reply Nov 15, 2022, 12:19 PM Reply Quote 0
      • J
        JKnott @Bob.Dig
        last edited by Nov 15, 2022, 12:19 PM

        @bob-dig

        Of course, there's also SLAAC, instead of DHCPv6. DHCPv6 does not work with Android devices.

        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
        • C
          ChrisJenk @Bob.Dig
          last edited by Nov 15, 2022, 1:07 PM

          @bob-dig Thanks, but ideally I want to control the address that gets assigned, both local and global. Currently I can do that using the DUID for DHCPv6 for local addresses but if I switch to RA then I no longer have that control :-(

          C 1 Reply Last reply Nov 18, 2022, 9:29 AM Reply Quote 0
          • C
            ChrisJenk @ChrisJenk
            last edited by Nov 18, 2022, 9:29 AM

            @chrisjenk So I found the best solution for me based on these suggestions (thanks!).

            I have the DHCPv6 server set to hand out ULAs and have also set up some static mappings for key mobile devices.

            fd00::xxxxxxxxxxx

            I have the RA set to Assisted and I specify only the GUA address range there

            2001:aaaa:bbbb:cccc::xxxxxxxxxxxxx

            What I see now is that Apple devices (which do support DHCPv6) get 5 addresses:

            fd00::<reservation> via DHCPv6
            fd00::xxxxxxxxxxxx via SLAAC
            fdbd:<psudo random> - some private address that Apple insists on generating/assigning but which is otherwise useless
            2001:aaaa:bbbb:cccc::qqqqqqqqqqqqq - regular global address via SLAAC
            2001:aaaa:bbbb:cccc::yyyyyyyyyyyyyyy - temporary global address via SLAAC

            This is fine for me since the device has a well known private address (which I want/need) plus it has full IPv6 Internet access etc.

            Other devices that do not support DHCPv6 get the SLAAC addresses so they also work as expected (but without a well known address, which is fine as there are very few such devices in my network).

            Problem solved!

            B 1 Reply Last reply Nov 18, 2022, 11:06 AM Reply Quote 0
            • B
              Bob.Dig LAYER 8 @ChrisJenk
              last edited by Nov 18, 2022, 11:06 AM

              @chrisjenk said in Is it possible to have DHCPv6 assign both a local and a global address:

              @chrisjenk So I found the best solution for me based on these suggestions (thanks!).
              Problem solved!

              Until your GUA-Prefix changes, then you have to manually reassign it. That is why I would do it the other way around, GUA via Track Interface (and DHCPv6) and ULA via RA.

              But if your prefix is not dynamic then this doesn't apply to you.

              C 1 Reply Last reply Nov 18, 2022, 11:53 AM Reply Quote 0
              • C
                ChrisJenk @Bob.Dig
                last edited by Nov 18, 2022, 11:53 AM

                @bob-dig Yes, what you say is true. Luckily my prefix(es) are not dynamic and I'd need to do quite a few changes to flip to what you suggest. I'll probably think about that as a longer-term project but for now this solution works for my specific use case.

                1 Reply Last reply Reply Quote 0
                2 out of 7
                • First post
                  2/7
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                  This community forum collects and processes your personal information.
                  consent.not_received