Send kea-dev mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.isc.org/mailman/listinfo/kea-dev
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of kea-dev digest..."
Today's Topics:
1. Re: Vendor Client Class options (s k)
----------------------------------------------------------------------
Message: 1
Date: Fri, 17 Jun 2022 03:37:18 +0000
From: s k <[email protected]>
To: "[email protected]" <[email protected]>, Francis Dupont
<[email protected]>
Subject: Re: [kea-dev] Vendor Client Class options
Message-ID:
<yt2pr01mb627204f1a296bdc963d80d47a8...@yt2pr01mb6272.canprd01.prod.outlook.com>
Content-Type: text/plain; charset="iso-8859-1"
Hi Francis
I posted this question some time back , but it seems to be not making it
to the forum . can you help with this urgent issue ?
Thanks
________________________________
From: kea-dev <[email protected]> on behalf of s k
<[email protected]>
Sent: Monday, June 13, 2022 10:54 AM
To: [email protected] <[email protected]>
Subject: [kea-dev] Vendor Client Class options
My expectation is when dhcp6 packet received from fd01 subnet , reply should
include Option value 5 to be 10.5.152.181, and for fd02 it should be
10.5.152.18 . But the behavior is not same with Kea2.1.1 . it sends whichever
the one first received meaning if I receive fd01 then it keeps sending
10.5.152.181 for subsequent packets irrespective of subnet. I tried with
Client-class option and also require-client-classes (deferred eval). I cannot
use option in subnet level as it is dynamically added
Is this approach wrong from my side ? if so can you help what should I be using
? I am following the document
https://kb.isc.org/docs/understanding-client-classification.
"Dhcp6": {
"client-classes": [
{
"name": "Client_fd01",
"option-data": [
{
"always-send": true,
"code": 5,
"csv-format": true,
"data": "10.5.152.181",
"name": "est-addr",
"space": "vendor-26484"
}
],
"test": "substring(addrtotext(relay6[-1].linkaddr), 0, 4) == 'fd01'"
// Indicates one HES instance that requires option 5 value to be 10.5.152.181
},
{
"name": "Client_fd02",
"option-data": [
{
"always-send": true,
"code": 5,
"csv-format": true,
"data": "10.5.152.18",
"name": "est-addr",
"space": "vendor-26484"
}
],
"test": "substring(addrtotext(relay6[-1].linkaddr), 0, 4) == 'fd02'"
// Indicates one HES instance that requires option 5 value to be 10.5.152.18
}
],
"subnet6": [
{
"calculate-tee-times": false,
"id": 1,
"option-data": [ ],
"pd-pools": [ ],
"pools": [
{
"option-data": [ ],
"pool": "fd01::/112"
}
],
"require-client-classes": ["Client_fd01"],
"preferred-lifetime": 4294967295,
"rapid-commit": true,
"rebind-timer": 2000,
"relay": {
"ip-addresses": [ ]
},
"renew-timer": 1000,
"reservations": [ ],
"store-extended-info": false,
"subnet": "fd01::/64",
"t1-percent": 0.8,
"t2-percent": 0.9,
"valid-lifetime": 4294967295
},
{
"calculate-tee-times": true,
"id": 3,
"option-data": [ ],
"pd-pools": [ ],
"pools": [
{
"option-data": [ ],
"pool": "fd02::/112"
}
],
"preferred-lifetime": 4294967295,
"rapid-commit": true,
"rebind-timer": 4294967295,
"relay": {
"ip-addresses": [ ]
},
"require-client-classes": ["Client_fd02"],
"renew-timer": 4294967295,
"reservations": [ ],
"store-extended-info": false,
"subnet": "fd02::/64",
"t1-percent": 0.8,
"t2-percent": 0.9,
"valid-lifetime": 0
}
pls find the attached pcap files that should show issue between 2 subnets
(packets sent from perfdhcp)
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<https://lists.isc.org/pipermail/kea-dev/attachments/20220617/258576ac/attachment.htm>
------------------------------
Subject: Digest Footer
_______________________________________________
kea-dev mailing list
[email protected]
https://lists.isc.org/mailman/listinfo/kea-dev
------------------------------
End of kea-dev Digest, Vol 79, Issue 2
**************************************