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 <[email protected]> on behalf of Kraishak Mahtha 
<[email protected]>
Sent: Wednesday, December 14, 2022 3:30 PM
To: [email protected] <[email protected]>
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



-- 
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
[email protected]
https://lists.isc.org/mailman/listinfo/kea-users

Reply via email to