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

Kea DHCP stops working

DHCP and DNS
16
61
8.1k
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.
  • M
    MacUsers
    last edited by Feb 19, 2025, 12:30 AM

    okay, basically nothing is changng/updating related to DHCP. In one of the static-mappings, I provided custom DNS Servers (under the Server Options) and it's still showing the old DNS server address, even after restarting the client device. I'm very sure that it won't change, regardlessly what I do from/on the client side, nothing will change until I reboot the PFS box.

    I'll restart and report here back soon.

    G 1 Reply Last reply Feb 19, 2025, 6:37 AM Reply Quote 0
    • S
      stephenw10 Netgate Administrator @MacUsers
      last edited by Feb 19, 2025, 3:34 AM

      @MacUsers said in Kea DHCP stops working:

      Just to give it a benefit of doubt: how do I chk that device was actually pulling a new lease?

      The logging in Kea is (currently) unhelpful for that.

      The only way to really know for sure would be to run a packet capture when the client renews and see what's actually being sent.

      1 Reply Last reply Reply Quote 0
      • G
        Gertjan @MacUsers
        last edited by Feb 19, 2025, 6:37 AM

        @MacUsers

        The packet capture setup for DHCPv4 :

        🔒 Log in to view

        1. Select the interface you want to capture, typically LAN

        2. The details : you want them all

        3. It's UDP

        4. and ports involved are 67 and 68.

        5. Hit start.

        6. Go to a device, and execute the DHCP Release and then DHCP renew command.

        Get back to pfSense, and you should see a (1) packets coming in (the DHCP request) and the one packet getting send to the device with the DHCP lease info.

        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 2
        • M
          MacUsers
          last edited by MacUsers Feb 20, 2025, 7:18 PM Feb 20, 2025, 7:16 PM

          Okay, I do see the request hitting PFS when I release and renew the lease:

          🔒 Log in to view

          But no change in IP at all, as it should be 10.1.20.12 now as that's what the static mapping is now set:
          🔒 Log in to view

          This is happening for every single devices I have tested so far. Do you need the full capture?

          1 Reply Last reply Reply Quote 0
          • S
            stephenw10 Netgate Administrator
            last edited by Feb 20, 2025, 8:55 PM

            Hmm, note that it's requesting the old IP. If you clear the client side lease cache does it get the new static IP?

            Might need to force that in Kea. 🤔

            M 2 Replies Last reply Feb 20, 2025, 8:59 PM Reply Quote 0
            • M
              MacUsers @stephenw10
              last edited by MacUsers Feb 20, 2025, 9:00 PM Feb 20, 2025, 8:59 PM

              @stephenw10 I did everything: restarted Kea, cleared client side lease, even tried with a brand new device, predefined static mapping even before pluging in - not getting the actual IP if PFS not rebooted. Trying out all the usual stuff for almost a week now.
              In case of the brand new device, it's getting an IP from the dynamic pool but that lease is not showing up in Status > DHCP lease at all.

              1 Reply Last reply Reply Quote 0
              • M
                MacUsers @stephenw10
                last edited by MacUsers Feb 20, 2025, 9:08 PM Feb 20, 2025, 9:06 PM

                @stephenw10 said in Kea DHCP stops working:

                note that it's requesting the old IP

                Question though - how it's gonna know what IP to ask for, in the first place?
                AFAIK, device broadcasts a DHCP Discover message to find a DHCP server and the DHCP server responds with a DHCP Offer giving it an IP. Kea should offer the IP from static-mapping and after accepting that offer (followed by a DHCP Request), it should be Acknowledged by the server - is not what happens?

                1 Reply Last reply Reply Quote 0
                • S
                  stephenw10 Netgate Administrator
                  last edited by Feb 20, 2025, 9:26 PM

                  Yes, but when it's renewing it will just request the old IP. And in some cases will just request an old cached lease address anyway. The server can refuse and issue a new lease.

                  However it sounds like it's just not seeing the new static lease entry.
                  Do you see the reservation listed in /usr/local/etc/kea/kea-dhcp4.conf?

                  M 1 Reply Last reply Feb 20, 2025, 10:05 PM Reply Quote 0
                  • M
                    MacUsers @stephenw10
                    last edited by Feb 20, 2025, 10:05 PM

                    @stephenw10 said in Kea DHCP stops working:

                    Do you see the reservation listed in /usr/local/etc/kea/kea-dhcp4.conf?

                    Yes, the IP is in the file against the correct MAC
                    🔒 Log in to view

                    but looks like not being offered?

                    1 Reply Last reply Reply Quote 0
                    • M
                      MacUsers
                      last edited by MacUsers Feb 20, 2025, 10:20 PM Feb 20, 2025, 10:20 PM

                      @RobbieTT said in KEA DHCP - lacking features:

                      @maverickws

                      Before it went live it was suggested that encouraging users to leave ISC for Kea was rather over done, considering its immaturity.

                      I did switch to Kea during the beta period and it was seamless with no apparent drawbacks but once I released some basics were missing and that it was relying on previous ISC managed data to function, had me switching back.

                      As I understand it, simple static mappings / reservations from Kea are not actually supported. However, it may give an illusion of functionality if you have run ISC previously. Existing mappings / reservations will still be resolvable as the hosts file still contains them as a hang-over from running ISC. Any new mappings added or modified will not be resolvable.

                      To me, the ability to set a static mapping / reservation is a basic cornerstone of networking. I think there will be a cascade of confusion as and when the previous hosts file becomes out-of-date.

                      ☕️

                      That's a post from back in 2023 and looks like it's not fixed. I think that's exactly happening here too - the already existing records (from ISC) are working and the new ones are not at all.

                      1 Reply Last reply Reply Quote 0
                      • S
                        stephenw10 Netgate Administrator
                        last edited by Feb 20, 2025, 11:41 PM

                        Nope that's unrelated. At that time both dynamic and static leases were not resolvable at all. 24.11 has out custom binary that handles the Kea-Unbound glue to allow it. But that didn't affect the actual leases, only resolving hosts.

                        What client type are you testing this from?

                        M 1 Reply Last reply Feb 21, 2025, 12:45 AM Reply Quote 0
                        • M
                          MacUsers @stephenw10
                          last edited by Feb 21, 2025, 12:45 AM

                          @stephenw10 said in Kea DHCP stops working:

                          Nope that's unrelated. At that time both dynamic and static leases were not resolvable at all.

                          May be it was but still matches exactly with my case. Probably this particular part somehow escape testing before release?

                          @stephenw10 said in Kea DHCP stops working:

                          What client type are you testing this from?

                          I tested with two MacBooks, Minix U22-XJ, Raspberry Pi 5 and even with a Netgate 6200 - none of 'em got the IP they deserv :)
                          If that's what you meant. It doesn't matter what client or type - any new mapping (brand-new or edited) not working.

                          Pls let me know if there is anything else I can provide to get it fix.

                          S 1 Reply Last reply Feb 21, 2025, 12:51 AM Reply Quote 0
                          • S
                            stephenw10 Netgate Administrator @MacUsers
                            last edited by Feb 21, 2025, 12:51 AM

                            @MacUsers said in Kea DHCP stops working:

                            May be it was but still matches exactly with my case.

                            So you are also seeing issues resolving hosts?

                            M 1 Reply Last reply Feb 21, 2025, 1:13 AM Reply Quote 0
                            • S
                              stephenw10 Netgate Administrator
                              last edited by Feb 21, 2025, 1:00 AM

                              Can you test the 25.03-Beta?
                              I can't replicate that issue here. I reconnect a client (Linux Laptop) after setting a static lease and it immediately pulls that.

                              M 1 Reply Last reply Feb 21, 2025, 7:47 AM Reply Quote 0
                              • M
                                MacUsers @stephenw10
                                last edited by Feb 21, 2025, 1:13 AM

                                @stephenw10 said in Kea DHCP stops working:

                                So you are also seeing issues resolving hosts?

                                I was talking about this part:
                                🔒 Log in to view

                                1 Reply Last reply Reply Quote 0
                                • M
                                  MacUsers @stephenw10
                                  last edited by Feb 21, 2025, 7:47 AM

                                  @stephenw10 said in Kea DHCP stops working:

                                  Can you test the 25.03-Beta?

                                  Is Beta stable enough to run for regulat use atm? Anything in particular I should be aware of before upgrading?

                                  -S

                                  1 Reply Last reply Reply Quote 0
                                  • S
                                    stephenw10 Netgate Administrator
                                    last edited by Feb 21, 2025, 11:39 AM

                                    Yes, I'm running it as my edge device now and have been for some time.

                                    If you're running ZFS you always roll back to the 24.11 BE snap anyway.

                                    M 1 Reply Last reply Feb 24, 2025, 11:03 PM Reply Quote 0
                                    • M
                                      MacUsers @stephenw10
                                      last edited by Feb 24, 2025, 11:03 PM

                                      Thnaks @stephenw10!
                                      I'll give it a try. Kea is definately not working, for me, to do the static mapping without restarting PFS.

                                      -S

                                      1 Reply Last reply Reply Quote 0
                                      • S
                                        swmspam
                                        last edited by Mar 6, 2025, 1:42 PM

                                        Kea started crashing a few days ago, requiring a reboot almost every day to resolve this week. Sometimes Kea would restart, sometimes required reboot. Upgraded to 25.03 BETA (amd64) and Kea continues to fail. I reverted back to ISC to keep the network stable.

                                        1 Reply Last reply Reply Quote 0
                                        • S
                                          stephenw10 Netgate Administrator
                                          last edited by Mar 6, 2025, 1:51 PM

                                          Anything logged?

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