[Kea-users] Grouping host entries
Darren Ankney
darren.ankney at gmail.com
Fri May 30 15:38:35 UTC 2025
Hi Christoph,
Assuming each client had a "host" entry in ISC DHCP, you could
leverage this to add clients to a different class based on which
eventual file you want to send. For example:
"reservations": [
{
"hw-address": "aa:bb:cc:dd:ee:ff",
"client-classes": [ "bookworm"]
}
],
"client-classes": [
{
"name": "bookworm"
},
{
"name": "pxe-system-type-00:00",
"test": "(option[123].hex == '00:00') and (member('bookworm'))",
"boot-file-name": "/linf/bookworm/boot/current-amd64/pxelinux.0"
}
]
Please review this documentation for further details:
- https://kea.readthedocs.io/en/latest/arm/classify.html
- https://kea.readthedocs.io/en/latest/arm/dhcp4-srv.html#host-reservations-in-dhcpv4
Thank you,
Darren Ankney
On Fri, May 30, 2025 at 9:15 AM Christoph Pleger
<Christoph.Pleger at cs.tu-dortmund.de> wrote:
>
> Hello,
>
> > In Kea, you could use class membership as a proxy for groups. For
> > example, this:
> >
> > Would be setup in Kea as four classes with different test lines for
> > the pxe-system-type and value. For example something like:
> >
> > "client-classes": [
> > {
> > "name": "pxe-system-type-00:00",
> > "test": "option[123].hex == '00:00'",
> > "boot-file-name": "/linf/bookworm/boot/current-amd64/pxelinux.0"
> > }
> > ]
>
>
> That does it for the last component of boot-file-name, syslinux.efi or
> pxelinux.0, but how about the second component, bullseye or bookworm in
> my example, which does not depend on anything the client sends in its
> dhcp request, but only on which OS version I want to run on the DHCP
> Client?
>
> Regards
> Christoph
> --
> 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
More information about the Kea-users
mailing list