[Kea-users] Shared network match
admin at mailsrv.globnet.md
admin at mailsrv.globnet.md
Thu Aug 26 08:47:24 UTC 2021
Sorry, forgot attachments
From: admin at mailsrv.globnet.md
To: "kea-users" <kea-users at lists.isc.org>
Sent: Thursday, August 26, 2021 11:18:33 AM
Subject: Shared network match
Hello.
I am trying to implement the following scenario:
DHCP will allocate ip addresses from different subnets acording to matching client class.
Each PoP(router) will have own client class, based on suboption 150 of option 82.
I made a client class "GponTestMGM"(kea-dhcp4.conf in attachment)
{
"name":"GponTestMGM",
"test":"option[82].option[150].hex == 0x6441a000"
}
In the logs i see that kea matches dhcpdiscover to this client class(dhcp4 log in attachment):
...EVAL_RESULT Expression GponTestMGM evaluated to 1
And also
...DHCP4_CLASS_ASSIGNED [hwtype=1 60:f1:8a:be:5c:18], cid=[01:60:f1:8a:be:5c:18], tid=0x55155455: client packet has been assigned to the following class(es): ALL, GponTestMGM, UNKNOWN
But the problem is that kea doesnt match shared network and subnet.
Configuration of shared network:
sharedred-networks": [
{
"subnet4": [
{
"id": 1,
"option-data": [{"name": "routers","data": "100.65.160.1"} ],
"pools": [{ "pool": "100.65.160.2 - 100.65.160.100"}],
"rebind-timer": 20,
"renew-timer": 10,
"subnet": "100.65.160.0/19",
"valid-lifetime": 30,
"client-class": "GponTestMGM"
}
],
"valid-lifetime": 200,
"interface":"eno3"
}
]
But in the logs i see:
...failed to select subnet for the client
What am i doing wrong?
THanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20210826/4901ac56/attachment.htm>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: KeaConfig_v4.txt
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20210826/4901ac56/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: KEaLogV4.txt
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20210826/4901ac56/attachment-0001.txt>
More information about the Kea-users
mailing list