<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div>Sorry, forgot attachments<br></div><div><br></div><hr id="zwchr" data-marker="__DIVIDER__"><div data-marker="__HEADERS__"><b>From: </b>admin@mailsrv.globnet.md<br><b>To: </b>"kea-users" <kea-users@lists.isc.org><br><b>Sent: </b>Thursday, August 26, 2021 11:18:33 AM<br><b>Subject: </b>Shared network match<br></div><div><br></div><div data-marker="__QUOTED_TEXT__"><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div>Hello.<br></div><div>I am trying to implement the following scenario:<br></div><div>DHCP will allocate ip addresses from different subnets acording to matching client class.</div><div>Each PoP(router) will have own client class, based on suboption 150 of option 82.<br></div><div>I made a client class "GponTestMGM"(kea-dhcp4.conf in attachment)<br></div><div>{<br>"name":"GponTestMGM",<br>"test":"option[82].option[150].hex == 0x6441a000"<br>}<br></div><br><div>In the logs i see that kea matches dhcpdiscover to this client class(dhcp4 log in attachment):<br></div><div>...EVAL_RESULT Expression GponTestMGM evaluated to 1<br></div><div>And also <br></div><div>...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<br></div><br><div>But the problem is that kea doesnt match shared network and subnet.<br></div><div>Configuration of shared network:<br></div><div>sharedred-networks": [<br> {<br> "subnet4": [<br> {<br> "id": 1,<br> "option-data": [{"name": "routers","data": "100.65.160.1"} ],<br> "pools": [{ "pool": "100.65.160.2 - 100.65.160.100"}],<br> "rebind-timer": 20,<br> "renew-timer": 10,<br> "subnet": "100.65.160.0/19",<br> "valid-lifetime": 30,<br> "client-class": "GponTestMGM"<br> }<br> ],<br> "valid-lifetime": 200,<br> "interface":"eno3"<br> }<br> ]<br></div><br><div>But in the logs i see:<br></div><div>...failed to select subnet for the client<br></div><br><div>What am i doing wrong?<br></div><div>THanks!</div></div><br></div></div></body></html>