[Kea-users] group by mac addresses ?

Veronique Lefebure Veronique.Lefebure at cern.ch
Tue Dec 16 13:29:07 UTC 2025


Hi,
For that purpose we have defined a class where we test the mac address like:

 "test": "(pkt4.mac == 0x000012345678 or pkt4.mac == 0x000012345679 or ...)"

More in 16. Client Classification — Kea 3.1.5 documentation<https://kea.readthedocs.io/en/latest/arm/classify.html#configuring-classes>

Hope it helps.
Cheers,
Veronique
________________________________
From: Kea-users <kea-users-bounces at lists.isc.org> on behalf of lejeczek via Kea-users <kea-users at lists.isc.org>
Sent: Tuesday, December 16, 2025 12:20 PM
To: Kea user's list <kea-users at lists.isc.org>
Cc: lejeczek <peljasz at yahoo.co.uk>
Subject: [Kea-users] group by mac addresses ?

Hi guys.

I had in my old dhcpd this, which I believed worked:

group {
  # VMware
  ignore client-updates;
  deny client-updates;
  ddns-domainname "vmware.mine";  # this is critical regardless of the rest, for DDNS
  option fqdn.no-client-update true;
  option fqdn.server-update true;
  option fqdn.fqdn  "vmware.mine";
  option domain-name  "vmware.mine";
  default-lease-time    86400;
  max-lease-time        86400;

  host hub.vcentre.vmware {
    hardware ethernet 02:98:1b:6d:36:12;
    fixed-address     10.3.1.230;
    option host-name "vcenter";
  }
  host vcenter.vmware {
    hardware ethernet 02:02:bf:56:c0:a0;
    fixed-address     10.1.1.230;
    option host-name "vcenter";
  }
  host hub.esx1.vmware {
    hardware ethernet 02:9d:f7:79:a7:17;
    fixed-address     10.3.1.231;
    option host-name "esx1";
  }
....
...
}

Simple idea there was to have a group of hosts qualified by their mac addresses, then such group would share some options.
I've not started using Kea yet and cannot figure out how such logic can be realized in Kea - would some experts mind shading some light on how this is done?
many thanks, L.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20251216/11280736/attachment.htm>


More information about the Kea-users mailing list