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

    DHCPv6 on pfSense is confusing me

    Scheduled Pinned Locked Moved IPv6
    12 Posts 4 Posters 2.6k 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.
    • D
      dhockenberry
      last edited by

      Forgot to mention – RA is enabled in Managed mode on this DHCPv6 interface. Have also tried Assisted mode with the same results.

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

        Normally, you should be using assisted.

        You said that your devices are getting addresses, but are you sure the addresses are from dhcp in the configured range? Even if you have dhcp, some devices won't use it, such as android devices. If there is a dhcp address, you should see a lease for it.

        Not sure what you mean by "copying the DUID". Each host must have a unique DUID.

        If you make a static mapping, there will not be a lease, because a lease isn't needed.

        It would help if you posted screen captures of Services DHCPv6 Server & RA LAN DHCPv6 Server and Status DHCPv6 Leases.

        Sometimes when you make changes, it helps to restart dhcp and release / renew the connection on the host.

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

          All hosts use DHCPv6 (CentOS, Ubuntu)

          By static mapping, I dont mean static addressing, but static DHCP – allows dynamic updates to DHCP config scope (dns, ntp, tftp, etc) but effectively a static address per host. I should be able to allow DHCPv6 to dynamically allocate an address, then grab the Host DUID from the DHCPv6 list, and create the static mapping within DHCPv6 config.

          As I said, the issue is that addresses being allocated from this DHCPb6 server are not showing up in the DHCPv6 lease list.

          I will try a restart on the service, see if that changes anything -- if not that, will try reboot of pfSense.

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

            I'm seeing this same issue. No leases show up in the dhcp6 lease list. I resorted to grabbing DUID's from the dhcp6's logs of assigned IP's.
            I've tried rebooting, and of course stopping and starting the DHCP service.

            I have DHCPv6 enabled only on my DMZ interface, not LAN or WLAN. Is that what's doing this? My DMZ is managed, the others are unmanaged.

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

              I don't normally use static mappings for dhcpv6, but all of my hosts using dhcpv6 show up in the list of leases. If I ping the address, it goes online and the mac is displayed. If you use dhcpv6 without a static mapping, does that work?

              I created a static mapping on my pfsense 2.4 beta system and there seem to be some strange things. I'll try on my pfsense 2.3.3-p1 system and report back.

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

                Even without static mappings, leases do appear in the DHCPv6 lease list, but not all of them….

                I can literally sit on a host, monitor the DHCPv6 renewal process to be successful, and look on the DHCPv6 lease list on pfSense, and the lease is not listed. I can ping6 the host without issue, but still does not show up in the list. Would like to get to static mappings, but need to resolve this issue first.

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

                  @dhockenberry:

                  Even without static mappings, leases do appear in the DHCPv6 lease list, but not all of them….

                  I can literally sit on a host, monitor the DHCPv6 renewal process to be successful, and look on the DHCPv6 lease list on pfSense, and the lease is not listed. I can ping6 the host without issue, but still does not show up in the list. Would like to get to static mappings, but need to resolve this issue first.

                  Are the addresses for which the leases not showing up in the ndp table? Is there anything unusual about the host names? When you ping the host, does the host name appear with the domain appended? Check in /var/dhcpd/var/db/dhcpd6.leases to see if there is a lease but it's not being displayed. Are the addresses that you think are being allocated for leases in the range that you have configured? Try restarting dhcpd and see if that makes any difference.

                  Regarding the static mappings, I'm going to look at this for a while. There seems to be some weird sh*t going on.

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

                    There are some problems creating ipv6 static mappings. I created a bug. https://redmine.pfsense.org/issues/7443

                    BTW, I tested with 2.4 beta.

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

                      Thanks for the reference to https://redmine.pfsense.org/issues/7443

                      I was able to get (at least) the DHCPv6 server to dynamically allocate and list addresses correctly, after a system restart  :)

                      But static mapping is still not working. I went to the DHCPv6 log (cli, as I am not yet trusting the web interface on this info), and captured the DUID assignment to a known target, and tried to create a static mapping using this DUID – no joy.

                      Based on the reference you posted, I imagine this will be fixed in some upcoming release -- will monitor the release notes :)

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

                        I submitted the bug against 2.4 beta. I haven't had a chance to try it on my 2.3.3-p1 system. The bug was assigned to a developer, so that's a good sign.

                        So are you saying now that leases are being allocated and they are showing up on status / dhcpv6 leases?

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

                          There is an issue with the leases being displayed as well: https://redmine.pfsense.org/issues/7413

                          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
                          • First post
                            Last post
                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.