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

KEA DHCP in 23.09.1 needs some attention

General pfSense Questions
4
10
772
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.
  • J
    jeff3820
    last edited by Apr 17, 2024, 4:40 AM

    I've been running KEA DHCP since it became available in Pfsense Plus. Periodically I assign static IPs to various devices and I have had no issues with KEA DHCP until today. Note, the DHCP service requirements are nothing fancy...just MAC addresses being assigned IP addresses...no DNS lookups or anything else. MAC to IP only. Today, I deleted a previously issued static IP, 192.168.115.210, plugged in a new PC and it was assigned 192.168.115.64. I then assigned 192.168.115.210 to the PC that had 192.168.115.64. When I restarted the PC it SHOULD have been assigned the static IP of 192.168.115.210 but it stayed on 64! Another restart, same result. I changed the Pfsense DHCP service back to the former ISC DHCP, restarted the PC again and this time the PC received the correct IP of 192.168.115.210!! I set the DHCP service back to KEA and restarted the PC and again I was back to the dynamic address of 64. Switch to ISC DHCP and again I get the correct static IP of 210.

    KEA DHCP needs some attention...

    1 Reply Last reply Reply Quote 0
    • S
      stephenw10 Netgate Administrator
      last edited by Apr 17, 2024, 1:14 PM

      I assume you mean assigned it using a static lease mapping?

      J 1 Reply Last reply Apr 17, 2024, 2:02 PM Reply Quote 0
      • J
        jeff3820 @stephenw10
        last edited by Apr 17, 2024, 2:02 PM

        @stephenw10 Yes, under Status, DHCP leases…I use the first + sign on the right of the lease. What is bizarre is I’ve been doing this with KEA for months but it wasn’t happy with this device. I tried it 3-4 times…same result. Tried it before bed but this time I didn’t complete the client identifier field in the static lease form and it behaved normally. Strange. Does the client identifier field override the MAC address identification process?

        G S 2 Replies Last reply Apr 17, 2024, 2:16 PM Reply Quote 0
        • G
          Gertjan @jeff3820
          last edited by Apr 17, 2024, 2:16 PM

          @jeff3820 said in KEA DHCP in 23.09.1 needs some attention:

          Does the client identifier field override the MAC address identification process?

          Can't get my eyes on it... As this is a DHCP question, check the DHCP sub forum.
          There was some one with the same question/suggestion: is "client identifier field" also used ? and not only the MAC filed ...

          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
          • S
            SteveITS Galactic Empire @jeff3820
            last edited by Apr 17, 2024, 2:22 PM

            @jeff3820 said in KEA DHCP in 23.09.1 needs some attention:

            Does the client identifier field override the MAC address

            As Gertjan posted there are I think a couple of posts concluding that cloning a VM with a different MAC address but the same identifier, uses the identifier.

            Here's such a thread for ISC actually: https://forum.netgate.com/topic/187300/isc-dhcp-server-handing-out-the-same-ip-address-to-multiple-clients/4

            Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
            When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
            Upvote 👍 helpful posts!

            1 Reply Last reply Reply Quote 0
            • S
              stephenw10 Netgate Administrator
              last edited by Apr 17, 2024, 2:23 PM

              Ah, yes that seemed familiar: https://redmine.pfsense.org/issues/6960#note-21

              ClientIDs are far more strict in Kea. ISC allowed things there that are not strictly valid. However the code should now allow it as shown on that bug.

              J S 2 Replies Last reply Apr 17, 2024, 3:02 PM Reply Quote 0
              • J
                jeff3820 @stephenw10
                last edited by Apr 17, 2024, 3:02 PM

                @stephenw10 Got it…I can easily avoid the client ID field unless needed. This topic would be useful in the KEA documentation.

                1 Reply Last reply Reply Quote 2
                • S
                  SteveITS Galactic Empire @stephenw10
                  last edited by Apr 17, 2024, 3:43 PM

                  @stephenw10 A note further down that redmine also seems relevant, it links to https://kea.readthedocs.io/en/kea-1.6.1/arm/dhcp4-srv.html#using-client-identifier-and-hardware-address
                  "RFC 2131 indicates that the server may use both of these identifiers to identify the client but the “client identifier”, if present, takes precedence over “chaddr”. "

                  Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                  When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                  Upvote 👍 helpful posts!

                  G 1 Reply Last reply Apr 17, 2024, 4:02 PM Reply Quote 0
                  • G
                    Gertjan @SteveITS
                    last edited by Apr 17, 2024, 4:02 PM

                    @SteveITS

                    Looks like we, the admins, need to do a little bit more work when creating a static lease. Things do change ones in a while.
                    Before the pfSense GUI gets overloaded with 'useful help text' everywhere :
                    What about a : "RTFM and go check and update your RFCs please" on the dashboard ?
                    Just as a reminder that router admins should do router admins things ones in a while 😊

                    More serious : back in the good old days, when pfSense was still burned to flash memory and everything needed to be as small as possible : all the package manuals where ditched.
                    Can't they get re introduced again ? Most of use have a pfSense with some spare Gbyte left. Would be nice to have the doc at out finger tips, and why not : have it clone every night this https://docs.netgate.com/pfsense/en/latest/ into our firewall.

                    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
                    • S
                      stephenw10 Netgate Administrator
                      last edited by Apr 17, 2024, 4:03 PM

                      Yes, and I assume that is the case here. But in addition there were values for client identifier that tripped up Kea that ISC just allowed.

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