<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
<span style="font-size:12pt;margin:0px;background-color:rgb(255, 255, 255)" class="ContentPasted0">Hi,</span>
<div style="font-size:12pt;margin:0px;background-color:rgb(255, 255, 255)"><br class="ContentPasted0">
</div>
<div style="font-size:12pt;margin:0px;background-color:rgb(255, 255, 255)" class="ContentPasted0">
We have something that looks like the following. Hope it helps.</div>
<div style="font-size:12pt;margin:0px;background-color:rgb(255, 255, 255)" class="ContentPasted0">
Cheers,
<div style="margin:0px" class="ContentPasted0">Veronique</div>
</div>
<div class="ContentPasted0 ContentPasted1" style="font-size:12pt;margin:0px;background-color:rgb(255, 255, 255)">
<br class="ContentPasted0">
</div>
<div class="ContentPasted0 ContentPasted1" style="font-size:12pt;margin:0px;background-color:rgb(255, 255, 255)">
{
<div class="ContentPasted0" style="margin:0px"> "Dhcp4": {</div>
<div class="ContentPasted0" style="margin:0px"> ...</div>
<div class="ContentPasted0" style="margin:0px"> "client-classes": [<br class="ContentPasted0">
</div>
<div class="ContentPasted0" style="margin:0px"> {</div>
<div class="ContentPasted0" style="margin:0px"> "name": "blocked-list",</div>
"test": "(pkt4.mac == 0x0XXXXXXXXXXXX or pkt4.mac == 0xXXXXXXXXXXX or ....)",<br class="ContentPasted0">
</div>
<div style="font-size:14px;font-family:"Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;margin:0px">
</div>
<div style="font-size:12pt;margin:0px" class="ContentPasted0"> },</div>
<div class="ContentPasted2 ContentPasted0" style="font-size:12pt;margin:0px"> {
<div class="ContentPasted2 ContentPasted0" style="margin:0px"> "name": "OkClients",</div>
<div class="ContentPasted2 ContentPasted0" style="margin:0px"> "test": "not member('blocked-list')"</div>
<div class="ContentPasted2 ContentPasted0" style="margin:0px"> },</div>
<div class="ContentPasted2" style="margin:0px"><br class="ContentPasted0">
</div>
<div class="ContentPasted2 ContentPasted0" style="margin:0px">...</div>
<div class="ContentPasted2" style="margin:0px"><br class="ContentPasted0">
</div>
<div class="ContentPasted2 ContentPasted3 ContentPasted0" style="margin:0px"> "pools": [
<div class="ContentPasted3 ContentPasted0" style="margin:0px"> {</div>
<div class="ContentPasted3 ContentPasted0" style="margin:0px"> "client-class": "Okclients",</div>
<div class="ContentPasted3 ContentPasted0" style="margin:0px"> "pool": "xxx.xxx.xxx.1-xxx.xxx.xxx.2"<br class="ContentPasted0">
</div>
<div class="ContentPasted3 ContentPasted0" style="margin:0px"> }</div>
<span class="ContentPasted3 ContentPasted0" style="margin:0px"> ],</span></div>
</div>
<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Kea-users <kea-users-bounces@lists.isc.org> on behalf of Kraishak Mahtha <kraishak.edu@gmail.com><br>
<b>Sent:</b> Wednesday, December 14, 2022 3:30 PM<br>
<b>To:</b> kea-users@lists.isc.org <kea-users@lists.isc.org><br>
<b>Subject:</b> [Kea-users] subclass handling in kea-dhcp</font>
<div> </div>
</div>
<div>
<div dir="ltr">Hi All,
<div><br>
</div>
<div>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<br>
<br>
MY ISC DHCP config<br>
class "denyClients" {<br>
match substring (hardware, 1, 6);<br>
deny booting;<br>
}<br>
subclass "denyClients" 11:22:33:44:ab:66;<br>
subclass "denyClients" 11:22:33:43:ab:66;<br>
subclass "denyClients" 11:22:33:42:ab:66;<br>
subnet 12.0.0.0 netmask 255.255.255.0 {<br>
pool {<br>
failover peer "Test";<br>
range 12.0.0.2 12.0.0.2;<br>
deny members of "denyClients";<br>
}<br>
default-lease-time 3600;<br>
option routers 12.0.0.1;<br>
option subnet-mask 255.255.255.0;<br>
}<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Can anyone please advise or suggest how to add members to the DHCP class or the data for which the class should be applied</div>
<div><br>
</div>
<div>Thanks in Advance</div>
<div>Kraishak</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
</body>
</html>