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

    Question about DHCPv6 Static Mappings

    Scheduled Pinned Locked Moved DHCP and DNS
    9 Posts 3 Posters 766 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.
    • B
      bimmerdriver
      last edited by bimmerdriver

      I have a laptop which I normally use with a dock, but I also occasionally use it with the built-in ethernet and Wi-Fi adapters.

      For my owned devices I create static mappings so I can easily see if a non-typical device has been connected to my LAN.

      I created three DHCP Static Mappings, all with the same host name for the docked ethernet, the built-in ethernet and the WiFi, respectively.

      I tried to create three similar DHCPv6 Static Mappings, but it was not possible, because it would not accept the same host name for more than one mapping.

      Since it works for DHCP, but not for DHCPv6, should it be considered a bug for DHCPv6?

      This is on pfSense 2.7.2.

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

        @bimmerdriver

        ISC ? Kea ?
        Also : IPv6 DHCP RFC's allow this ?

        Btw : imho : consider using 2.8.0 RC for more recent DHCP kea support.

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

        P B 2 Replies Last reply Reply Quote 0
        • P
          pst @Gertjan
          last edited by

          @Gertjan

          consider using 2.8.0 RC

          or wait a couple of weeks for the release 😀

          @bimmerdriver

          I tried to create three similar DHCPv6 Static Mappings, but it was not possible, because it would not accept the same host name for more than one mapping.

          @bimmerdriver I verified two mappings to work with KEA on the latest pfSense+ 25.03 beta, which is more of less the same as 2.8.0 RC. Just make sure the DUID you specify is unique, the laptop should send different DUIDs for the various connection scenarios.

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

            @pst said in Question about DHCPv6 Static Mappings:

            I verified two mappings to work with KEA on the latest pfSense+ 25.03 beta

            I think I spoke too soon, there might still be issues in the latest beta. I managed to create a mapping for a device using the tracking interface format (::nnn) but I get an error

            This Hostname, IP or DUID already exists.
            

            when I specify a full address (prefix::nnn)

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

              As 25.03 Beta now proposes :

              77f0b954-93ab-4ded-b923-ba3cb11a5348-image.png

              Get yourself a small guided tour in here : /usr/local/etc/kea/kea-dhcp6.conf
              and see how the reservation section is made.
              With this knowledge, create your own 'JSON' structure that doubles a lease reservation and past it in the what I've shown above.
              What you entered will be 'lint' tested, and beware : kea (json) is picky. Syntax errors are forbidden.

              When saved (and pfSense did't explode ^^) go to the DHCP serbver logs and see if kea complained.
              If it does, and knowing that kea is "RFC" compliant (right ?), the issue is solved : It's not possible to make double leases as its not allowed.
              If it does accept : make a feature request ?!

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

              B 2 Replies Last reply Reply Quote 0
              • B
                bimmerdriver @Gertjan
                last edited by bimmerdriver

                @Gertjan said in Question about DHCPv6 Static Mappings:

                @bimmerdriver

                ISC ? Kea ?
                Also : IPv6 DHCP RFC's allow this ?

                Btw : imho : consider using 2.8.0 RC for more recent DHCP kea support.

                Good questions.

                The system is using Kea.

                I never considered that DHCPv6 might not allow multiple reservations, even though DHCP does.

                I'm running 2.8.0 but it's a test system. My "production" system is running 2.7.2.

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

                  This post is deleted!
                  1 Reply Last reply Reply Quote 0
                  • B
                    bimmerdriver @Gertjan
                    last edited by

                    @Gertjan I didn't have a chance to try JSON, but I read the KEA documentation. As far as I understood, it is allowable for there to be multiple reservations for a client, particularly when they are for different hardware, which is the case in my situation.

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

                      @Gertjan Thanks for the suggestion, but I unfortunately have no way to try this right now because I'm running CE 2.7.2.

                      I see it's also in CE 2.8.0, but my test system running that version is virtual, so I won't be able to try it until I upgrade my main system to 2.8.0, which won't be until it gets released.

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