Thanks, Darren Ankney, and Veronique Lefebure for the information and for
sharing the sample example
and Francis Dupont for the information.
I am able to achieve my requirement now by
"client-classes": [
{
"name": "denyClients",
"test": "hexstring(pkt4.mac, ':') == '11:22:33:44:ab:66' or
hexstring(pkt4.mac, ':') == '3f:ff:ff:00:00:01' "
},
{
"name": "allowClients",
"test": "(not(member('denyClients')))"
}
]3f:ff:ff:00:00:01
pools": [
{
"pool": “12.3.0.0-12.3.0.254",
"client-class": "allowClients"
.......
Thanks
Kraishak
On Wed, Dec 14, 2022 at 8:00 PM Kraishak Mahtha <[email protected]>
wrote:
> 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