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

KEA DHCP - lacking features

Scheduled Pinned Locked Moved DHCP and DNS
60 Posts 15 Posters 19.0k 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.
  • M
    molykule @Gertjan
    last edited by molykule Nov 30, 2023, 11:18 PM Nov 30, 2023, 11:00 PM

    @Gertjan Thank you for replying. You are correct for static MAC DHCP lease.
    however I still got the same error. I do notice that you dont have static ARP checked. I dont know if that could be the cause,
    please let me know,
    Thanks again for help,
    Screenshot 2023-11-30 165922.png
    Screenshot 2023-11-30 165553.png

    Screenshot 2023-11-30 165555.png

    In the file /usr/local/etc/kea/kea-dhcp4.conf, this occurs 3 times because its defined in 3 different subnets, which is erroring out.
    {
    "name": "mac_8C705AB898C4",
    "test": "substring(hexstring(pkt4.mac, ''), 0, 12) == '8c705ab898c4'"
    },

    Log:
    Nov 30 16:53:36 kea-dhcp4 36871 ERROR [kea-dhcp4.dhcp4.0x253335c12000] DHCP4_INIT_FAIL failed to initialize Kea server: configuration error using file '/usr/local/etc/kea/kea-dhcp4.conf': Can't add class: Client Class: mac_8C705AB898C4 has already been defined (/usr/local/etc/kea/kea-dhcp4.conf:164:13)
    Nov 30 16:53:36 kea-dhcp4 36871 ERROR [kea-dhcp4.dhcp4.0x253335c12000] DHCP4_CONFIG_LOAD_FAIL configuration error using file: /usr/local/etc/kea/kea-dhcp4.conf, reason: Can't add class: Client Class: mac_8C705AB898C4 has already been defined (/usr/local/etc/kea/kea-dhcp4.conf:164:13)
    Nov 30 16:53:36 kea-dhcp4 36871 ERROR [kea-dhcp4.dhcp4.0x253335c12000] DHCP4_PARSER_FAIL failed to create or run parser for configuration element client-classes: Can't add class: Client Class: mac_8C705AB898C4 has already been defined (/usr/local/etc/kea/kea-dhcp4.conf:164:13)
    Nov 30 16:53:36 kea-dhcp4 36871 INFO [kea-dhcp4.hooks.0x253335c12000] HOOKS_LIBRARY_CLOSED hooks library /usr/local/lib/kea/hooks/libdhcp_lease_cmds.so successfully closed
    Nov 30 16:53:36 kea-dhcp4 36871 INFO [kea-dhcp4.dhcpsrv.0x253335c12000] DHCPSRV_CFGMGR_SOCKET_TYPE_DEFAULT "dhcp-socket-type" not specified , using default socket type raw
    Nov 30 16:53:36 kea-dhcp4 36871 INFO [kea-dhcp4.dhcpsrv.0x253335c12000] DHCPSRV_CFGMGR_ADD_IFACE listening on interface igb3
    Nov 30 16:53:36 kea-dhcp4 36871 INFO [kea-dhcp4.dhcpsrv.0x253335c12000] DHCPSRV_CFGMGR_ADD_IFACE listening on interface igb2
    Nov 30 16:53:36 kea-dhcp4 36871 INFO [kea-dhcp4.dhcpsrv.0x253335c12000] DHCPSRV_CFGMGR_ADD_IFACE listening on interface igb1
    Nov 30 16:53:36 kea-dhcp4 36871 INFO [kea-dhcp4.dhcpsrv.0x253335c12000] DHCPSRV_CFGMGR_ADD_IFACE listening on interface igb0

    J 1 Reply Last reply Nov 30, 2023, 11:20 PM Reply Quote 0
    • J
      johnpoz LAYER 8 Global Moderator @molykule
      last edited by johnpoz Nov 30, 2023, 11:23 PM Nov 30, 2023, 11:20 PM

      @molykule said in KEA DHCP - lacking features:

      I do notice that you dont have static ARP checked.

      Yeah that for sure could be problematic - and currently static arp doesn't even work correctly using isc dhcpd.. Sure it sets them, but when your client does dhcp for it.. It switches from perm to dynamic in the arp table..

      There is a thread and redmine about it.

      https://forum.netgate.com/topic/184155/static-arp-in-dhcp-overwritten

      I really wouldn't count on kea not being weird if your doing anything other than just serving IPs out of a pool..

      An intelligent man is sometimes forced to be drunk to spend time with his fools
      If you get confused: Listen to the Music Play
      Please don't Chat/PM me for help, unless mod related
      SG-4860 24.11 | Lab VMs 2.8, 24.11

      M G 2 Replies Last reply Dec 1, 2023, 12:25 AM Reply Quote 0
      • M
        molykule @johnpoz
        last edited by Dec 1, 2023, 12:25 AM

        @johnpoz
        Thank you for the detailed reply and the links,

        1 Reply Last reply Reply Quote 0
        • G
          Gertjan @johnpoz
          last edited by Dec 1, 2023, 6:27 AM

          @johnpoz said in KEA DHCP - lacking features:

          I really wouldn't count on kea not being weird if your doing anything other than just serving IPs out of a pool..

          So can I deduct that I have a run of the mill networks so kea works fine for me ? ;)

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

          J 1 Reply Last reply Dec 1, 2023, 6:35 AM Reply Quote 1
          • J
            JonathanLee @Gertjan
            last edited by JonathanLee Dec 1, 2023, 6:37 AM Dec 1, 2023, 6:35 AM

            @Gertjan any network with a firewall is far from run of the mill ☺️ especially one running a new cutting edge kea dhcp server. Give yourself credit where credit is due.

            Make sure to upvote

            1 Reply Last reply Reply Quote 0
            • B bmeeks referenced this topic on Dec 2, 2023, 4:48 AM
            • G Gertjan referenced this topic on Dec 14, 2023, 1:10 PM
            • O
              omiwaaa
              last edited by Dec 28, 2023, 11:34 PM

              Is there a way to get back to ISC DHCP if I clicked to migrate to KEA? If not, then I will check if any OPTION can be set directly into files, I need it for WAPD.

              S 1 Reply Last reply Dec 29, 2023, 2:57 AM Reply Quote 0
              • S
                SteveITS Galactic Empire @omiwaaa
                last edited by Dec 29, 2023, 2:57 AM

                @omiwaaa said in KEA DHCP - lacking features:

                Is there a way to get back to ISC DHCP if I clicked to migrate to KEA?

                On that same page you can change back.

                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!

                O 1 Reply Last reply Dec 29, 2023, 3:49 AM Reply Quote 0
                • O
                  omiwaaa @SteveITS
                  last edited by Dec 29, 2023, 3:49 AM

                  @SteveITS unfortunately I dismissed the banner and no other possible option found in the section. I'll workaround deploying another DHCP on another server while the module gets populated with more fields.

                  J 1 Reply Last reply Dec 29, 2023, 3:51 AM Reply Quote 0
                  • J
                    johnpoz LAYER 8 Global Moderator @omiwaaa
                    last edited by Dec 29, 2023, 3:51 AM

                    @omiwaaa this was just asked earlier today - you set it back in the same place you set it to kea..

                    ISC.jpg

                    An intelligent man is sometimes forced to be drunk to spend time with his fools
                    If you get confused: Listen to the Music Play
                    Please don't Chat/PM me for help, unless mod related
                    SG-4860 24.11 | Lab VMs 2.8, 24.11

                    V 1 Reply Last reply Apr 6, 2024, 8:06 PM Reply Quote 1
                    • G Gertjan referenced this topic on Jan 29, 2024, 8:00 AM
                    • V
                      vitko-core.ru @johnpoz
                      last edited by Apr 6, 2024, 8:06 PM

                      @johnpoz thank you for giving me the opportunity to choose and force me to specify my DHCP OPTIONS 9f74c534-37ab-45ec-8ce6-431cc8b551aa-image.png

                      1 Reply Last reply Reply Quote 0
                      • C
                        CyberCow @molykule
                        last edited by Jun 11, 2024, 10:21 AM

                        @molykule said in KEA DHCP - lacking features:

                        Hi,
                        I have 2 different subnets LAN and OPT1. I have a laptop, which has static IP address defined in both subnets, for lan the ip is 192.168.2.20, and for opt1, the ip is 192.168.3.20.

                        I have removed the client identifier in both subnets. Is there any work around for such scenario or I am missing something,
                        I have posted it in separate in topic before, hoping if somebody else ran in the same issue, but haven't heard anything
                        thanks,

                        I got the same error as you, and in my case it seemed to be that i had the same mac-addresses entered in "MAC Deny" on 2 different vlan-interfaces.
                        Fired up a VM and did the same settings and got the same result.

                        when i deleted the mac-addresses from 1 vlan-interface kea-dhcp worked again.

                        in this situation in the config file "/usr/local/etc/kea/kea-dhcp4.conf" the class is indeed being defined 2 times.

                        i assume this is a bug, but if someone else could confirm...

                        J 1 Reply Last reply Jun 11, 2024, 10:59 AM Reply Quote 0
                        • J
                          johnpoz LAYER 8 Global Moderator @CyberCow
                          last edited by Jun 11, 2024, 10:59 AM

                          @CyberCow said in KEA DHCP - lacking features:

                          i assume this is a bug, but if someone else could confirm...

                          You want to report/confirm a bug in a feature that is listed as not supported yet, in the preview release?

                          An intelligent man is sometimes forced to be drunk to spend time with his fools
                          If you get confused: Listen to the Music Play
                          Please don't Chat/PM me for help, unless mod related
                          SG-4860 24.11 | Lab VMs 2.8, 24.11

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