[Kea-users] subclass handling in kea-dhcp
Veronique Lefebure
Veronique.Lefebure at cern.ch
Wed Dec 14 14:59:53 UTC 2022
Hi,
We have something that looks like the following. Hope it helps.
Cheers,
Veronique
{
"Dhcp4": {
...
"client-classes": [
{
"name": "blocked-list",
"test": "(pkt4.mac == 0x0XXXXXXXXXXXX or pkt4.mac == 0xXXXXXXXXXXX or ....)",
},
{
"name": "OkClients",
"test": "not member('blocked-list')"
},
...
"pools": [
{
"client-class": "Okclients",
"pool": "xxx.xxx.xxx.1-xxx.xxx.xxx.2"
}
],
________________________________
From: Kea-users <kea-users-bounces at lists.isc.org> on behalf of Kraishak Mahtha <kraishak.edu at gmail.com>
Sent: Wednesday, December 14, 2022 3:30 PM
To: kea-users at lists.isc.org <kea-users at lists.isc.org>
Subject: [Kea-users] subclass handling in kea-dhcp
Hi All,
I am looking for the equivalent option of ISC dhcp subclass in kea-dhcp4 but I couldn't find any, I have a case where I need to decline dhcp-lease grants to given specific mac addresses so trying to match the same in kea-version but I couldn't find any sub-class equivalent, can we add the specific data (here mac address as the members of the specific class) in kea
MY ISC DHCP config
class "denyClients" {
match substring (hardware, 1, 6);
deny booting;
}
subclass "denyClients" 11:22:33:44:ab:66;
subclass "denyClients" 11:22:33:43:ab:66;
subclass "denyClients" 11:22:33:42:ab:66;
subnet 12.0.0.0 netmask 255.255.255.0 {
pool {
failover peer "Test";
range 12.0.0.2 12.0.0.2;
deny members of "denyClients";
}
default-lease-time 3600;
option routers 12.0.0.1;
option subnet-mask 255.255.255.0;
}
Can anyone please advise or suggest how to add members to the DHCP class or the data for which the class should be applied
Thanks in Advance
Kraishak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20221214/3b9ee31d/attachment-0001.htm>
More information about the Kea-users
mailing list