[Kea-users] [EXTERNAL] Re: Need to have DHCP Relay in order for Kea to work...?

Ubence Quevedo thatrat at gmail.com
Sat Aug 3 23:39:16 UTC 2024


I tried setting just "reservations-out-of-pool": true, and it still wanted
to assign from the first pool I have configured and not the reservations.

Below is a snippet of two of the subnets I have configured, there's a
third, but it's nearly identical to the first one, just 192.168.12.X:
    "subnet4": [
      {
        "id": 1,
        "subnet": "192.168.10.0/24",
        "pools": [
          {
            "pool": "192.168.10.225 - 192.168.10.250"
          }
        ],
        "option-data": [
          {
            "space": "dhcp4",
            "name": "routers",
            "code": 3,
            "data": "192.168.10.1"
          },
          {
            "space": "dhcp4",
            "name": "domain-name-servers",
            "code": 6,
            "data": "192.168.10.3"
          },
          {
            "space": "dhcp4",
            "name": "domain-search",
            "code": 119,
            "data": "totusmel.com"
          }
          ],
          #Reservations
          <?include "/etc/kea/01-dhcp_network.10.json"?>
      },
      {
        "id": 2,
        "subnet": "192.168.11.0/24",
        "pools": [
          {
            "pool": "192.168.11.100 - 192.168.11.150"
          }
        ],
        "option-data": [
          {
            "space": "dhcp4",
            "name": "routers",
            "code": 3,
            "data": "192.168.11.1"
          },
          {
            "space": "dhcp4",
            "name": "domain-name-servers",
            "code": 6,
            "data": "192.168.11.3"
          },
          {
            "space": "dhcp4",
            "name": "domain-search",
            "code": 119,
            "data": "totusmel.com"
          },
          {
            "space": "dhcp4",
            "code": 121,
            "data": "192.168.100.0/24 - 192.168.11.1"
          },
          {
            "space": "dhcp4",
            "name": "ms-classless-static-routes",
            "code": 249,
            "data": "24, 192, 168, 100, 192, 168, 11, 1, 24, 192, 168, 10,
192, 168, 11, 1"
          }
          ],
          #Reservations
          <?include "/etc/kea/02-dhcp_user_systems.11.json"?>
          <?include "/etc/kea/03-dhcp_ent.11.json"?>
          <?include "/etc/kea/04-dhcp_servers.11.json"?>
      },

Here's a snippet from inside the first include:
     "reservations": [
      # Network Devices - WiFi, Switches, and Unifi Controller
      {
        "hostname": "u6-pro-cr",
        "hw-address": "e4:38:83:92:87:05",
        "ip-address": "192.168.10.25"
      },

It eventually ends in a closed bracket without a comma [since it's
technically the end of that section].

I'm not sure what more might need to be seen from my config.  I can get
more specific info if needed, I just wanted to illustrate that I moved
around the reservation info into the subnets.

I enabled Kea DDNS and it works well with populating named zone info with
the hostnames from the reservation files.

-Ubence

On Sat, Aug 3, 2024 at 4:03 PM Sonic <sonicsmith at gmail.com> wrote:

> On Sat, Aug 3, 2024 at 6:05 PM Ubence Quevedo <thatrat at gmail.com> wrote:
> > I moved things into reservations inside the subnets and set the
> following, which I think is the equivalent of "reservation-mode":
> "out-of-pool",:
> > "reservations-global": false,
> > "reservations-in-subnet": true,
> > "reservations-out-of-pool": true,
>
> This alone '"reservations-out-of-pool": true', is equivalent to
> setting all 3 of those as you show. And those are the replacement
> arguments for "reservation-mode".
>
> You might want to share more of your configuration (you would have
> been a lot further on a lot sooner had you done so earlier).
> One distressing part of Kea, at least for the version I'm running and
> using my limited knowledge (I started my first Kea install 3 weeks
> ago, so I'm still learning), is that it does not do DNS lookups to
> assign reserved addresses.
> With isc-dhcpd one could use:
> fixed-address a.b.c.d;
> or
> fixed-address hostname.example.com;
> either worked just fine.
>
> With Kea one needs:
> "ip-address": "a.b.c.d"
> as using the hostname
> "ip-address": "hostname.example.com"
> simply does not work.
>
> Really quite annoying as with isc-dhcpd one could simply update the
> static DNS ip assignment and the host would get the new address. Now
> one needs to update the IP address in the Kea reservation and then
> update the DNS server as well if DNS name resolution is desired.
>
> Chris
> --
> ISC funds the development of this software with paid support
> subscriptions. Contact us at https://www.isc.org/contact/ for more
> information.
>
> To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.
>
> Kea-users mailing list
> Kea-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/kea-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20240803/af6d53c2/attachment.htm>


More information about the Kea-users mailing list