[Kea-users] Grouping host entries
Christoph Pleger
Christoph.Pleger at cs.tu-dortmund.de
Fri May 30 12:17:43 UTC 2025
Hello,
in ISC DHCP Server, I used the group{} to group host entries, like this:
group {
if option pxe-system-type = 00:00 {
filename "/linf/bullseye/boot/current-amd64/pxelinux.0";
} elsif option pxe-system-type = 00:09 {
filename "/linf/bullseye/boot/current-amd64/syslinux.efi";
} elsif option pxe-system-type = 00:07 {
filename "/linf/bullseye/boot/current-amd64/syslinux.efi";
} elsif option pxe-system-type = 00:06 {
filename "/linf/bullseye/boot/current-amd64/pxelinux.0";
}
option root-path "/linf/bullseye/nfsroot/current-amd64";
host mud1 {
hardware ethernet 00:1b:21:41:6a:69;
fixed-address 129.217.28.120;
option host-name "mud1";
}
host mud2 {
hardware ethernet 00:1b:21:41:6a:6d;
fixed-address 129.217.28.121;
option host-name "mud2";
}
}
group {
if option pxe-system-type = 00:00 {
filename "/linf/bookworm/boot/current-amd64/pxelinux.0";
} elsif option pxe-system-type = 00:09 {
filename "/linf/bookworm/boot/current-amd64/syslinux.efi";
} elsif option pxe-system-type = 00:07 {
filename "/linf/bookworm/boot/current-amd64/syslinux.efi";
} elsif option pxe-system-type = 00:06 {
filename "/linf/bookworm/boot/current-amd64/pxelinux.0";
}
option root-path "/linf/bookworm/nfsroot/current-amd64";
host mud3 {
hardware ethernet 00:1b:21:41:6a:46;
fixed-address 129.217.28.122;
option host-name "mud3";
}
host mud4 {
hardware ethernet 00:1b:21:41:6a:47;
fixed-address 129.217.28.123;
option host-name "mud4";
}
}
As you can see, the reason why I used different groups is that every
group needs its own boot file names and root path. The boot file name
does not only depend on the group, but also on the dhcp client-system
option.
How can I create host groups like this in KEA?
Regards
Christoph
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20250530/d2f67ec4/attachment.sig>
More information about the Kea-users
mailing list