[Kea-users] Configuring a subnet for both static and dynamic assignment for authorized MAC addresses

Cristina Bulfon cristina.bulfon at roma1.infn.it
Sat Jan 17 17:12:11 UTC 2026


Dear all, 

I would like to configure a Kea DHCP4 server  that assign static IP addresses to a portion of a given network ,
and dynamic IP addresses to a specific MAC addresses for the rest of the subnet.
I was thinking of a configuration like this 
—
subnet4 : [
{
    “Id” :”1”
     “match-client-id”: “false”,
      “subnet”: “X.Y.Z.0/24”,
      “pools: [ { “pool”:  “X.Y.Z.50 - X.Y.Z.252” }}
      “reservations-global”  : false,
      “reservation-in-subnet” : “true"
       “reservation-out-of-pool” : “true”,
       “reservations”: [
            <?include “/etc/kea/static.json” ?>
            <?include “/etc/kea/dynamic.json”?>
        ]
     }
]
=====
dynamic.json
{ “hw-address” : “aa:cc:bb:dd:ee:ff”},
{“hw-address”:  “gg:hh:jj:mm:nn:pp”}

==
Static.json
{
 “hw-address”:    “oo:qq:rr:ss:tt:vv”,
 “Ip-address”: “X.Y.Z.30”,
“hostname”: “paperino”
},
===
Might it work ?  Any suggestions  are welcome.

Thanks ,
Cristina 




More information about the Kea-users mailing list