<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div>Hello.<br data-mce-bogus="1"></div><div>I am trying to implement the following scenario:<br data-mce-bogus="1"></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 data-mce-bogus="1"></div><div>I made a client class "GponTestMGM"(kea-dhcp4.conf in attachment)<br data-mce-bogus="1"></div><div>{<br>"name":"GponTestMGM",<br>"test":"option[82].option[150].hex == 0x6441a000"<br>}<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>In the logs i see that kea matches dhcpdiscover to this client class(dhcp4 log in attachment):<br data-mce-bogus="1"></div><div>...EVAL_RESULT Expression GponTestMGM evaluated to 1<br data-mce-bogus="1"></div><div>And also <br data-mce-bogus="1"></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 data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>But the problem is that kea doesnt match shared network and subnet.<br data-mce-bogus="1"></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 data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>But in the logs i see:<br data-mce-bogus="1"></div><div>...failed to select subnet for the client<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>What am i doing wrong?<br data-mce-bogus="1"></div><div>THanks!<br data-mce-bogus="1"></div></div></body></html>