Subnet selection via client class failing when using shared network
Hi, I have been working on a hook for KEA which purpose is to dictate from which subnet a client should get an IP lease from. My early assumptions about KEA led me to build my code around making a selection using the subnet4_select callout but I quickly got stuck with my work as there is a mechanism in KEA that overwrites your choice if the device has already had a lease from another subnet in the same shared network. I have been told that I shouldn't be using shared network if I like to use subnet4_select callout but I do need to use this feature as the services we provide on our network can have multiple logical IP subnets on the same physical link. So I edited my code so it is using client class instead. In pkt4_receive I'm using a policy, from an external source, which tells my code if the query should be marked with the "restricted" or the "unrestricted" class. The problem now is that KEA only allows devices marked with the "restricted" class to get a lease but logs out a "DHCP4_SUBNET_SELECTION_FAILED" log message for the other class. I can't understand why this is happening because there is no real difference between these two subnet configurations in KEA. The only thing that is different is how the physical link on the Cisco switch is configured.
I'm currently using KEA 1.4.0-P1
Physical link config:
interface BVI101
description GR-TEST
mtu 9216
vrf GR-TEST
ipv4 address 10.206.0.3 255.255.252.0
ipv4 address 192.168.30.3 255.255.255.0 secondary
arp timeout 300
ipv4 unreachables disable
Partial KEA config:
{
"Dhcp4": {
"client-classes": [
{
"name": "restricted"
},
{
"name": "unrestricted"
}
],
"shared-networks": [
{
"match-client-id": true,
"name": "GR-Internet-AG06",
"option-data": [ ],
"reservation-mode": "all",
"subnet4": [
{
"id": 1,
"match-client-id": true,
"next-server": "0.0.0.0",
"option-data": [
{
"always-send": false,
"code": 3,
"csv-format": true,
"data": "10.206.0.1",
"name": "routers",
"space": "dhcp4"
}
],
"pools": [
{
"option-data": [ ],
"pool": "10.206.0.4-10.206.3.254"
}
],
"rebind-timer": 300,
"renew-timer": 150,
"subnet": "10.206.0.0/22",
"valid-lifetime": 600,
"client-class": "restricted"
},
{
"id": 2,
"match-client-id": true,
"next-server": "0.0.0.0",
"option-data": [
{
"always-send": false,
"code": 3,
"csv-format": true,
"data": "192.168.30.1",
"name": "routers",
"space": "dhcp4"
}
],
"pools": [
{
"option-data": [ ],
"pool": "192.168.30.4-192.168.30.248"
}
],
"rebind-timer": 300,
"renew-timer": 150,
"subnet": "192.168.30.0/24",
"valid-lifetime": 600,
"client-class": "unrestricted"
}
]
}
]
...
}
}
I'm adding the class in the pkt4_receive callout like so:
query->addClass(ClientClass("restricted"));
// or
query->addClass(ClientClass("unrestricted"));
kea-dhcp4.log when query is markt with "restricted" class:
2018-12-04 14:05:11.220 DEBUG [kea-dhcp4.packets/1] DHCP4_PACKET_RECEIVED [hwtype=1 50:a7:2b:ea:cc:e3], cid=[01:50:a7:2b:ea:cc:e3], tid=0x848b28b: DHCPDISCOVER (type 1) received from 10.206.0.2 to 192.168.15.80 on interface ens33
2018-12-04 14:05:11.220 DEBUG [kea-dhcp4.packets/1] DHCP4_QUERY_DATA [hwtype=1 50:a7:2b:ea:cc:e3], cid=[01:50:a7:2b:ea:cc:e3], tid=0x848b28b, packet details: local_address=192.168.15.80:67, remote_address=10.206.0.2:67, msg_type=DHCPDISCOVER (1), transid=0x848b28b,
options:
type=050, len=004: 192.168.30.4 (ipv4-address)
type=053, len=001: 1 (uint8)
type=055, len=024: 1(uint8) 2(uint8) 3(uint8) 4(uint8) 5(uint8) 6(uint8) 7(uint8) 8(uint8) 9(uint8) 15(uint8) 17(uint8) 28(uint8) 42(uint8) 43(uint8) 44(uint8) 66(uint8) 67(uint8) 120(uint8) 121(uint8) 77(uint8) 250(uint8) 58(uint8) 59(uint8) 212(uint8)
type=060, len=027: "uDHCP HG659V100R001C279B010" (string)
type=061, len=007: 01:50:a7:2b:ea:cc:e3
type=077, len=002: 01:68
type=082, len=018:,
options:
type=001, len=006: 00:04:00:65:06:0b
type=002, len=008: 00:06:cc:ef:48:1e:a0:40
type=116, len=001: 1 (uint8)
2018-12-04 14:05:11.220 DEBUG [kea-dhcp4.callouts/1] HOOKS_CALLOUTS_BEGIN begin all callouts for hook pkt4_receive
2018-12-04 14:05:11.226 DEBUG [kea-dhcp4.callouts/1] HOOKS_CALLOUT_CALLED hooks library with index 1 has called a callout on hook pkt4_receive that has address 0x7f8a31587723 (callout duration: 5.385 ms)
2018-12-04 14:05:11.226 DEBUG [kea-dhcp4.callouts/1] HOOKS_CALLOUTS_COMPLETE completed callouts for hook pkt4_receive (total callouts duration: 5.385 ms)
2018-12-04 14:05:11.226 DEBUG [kea-dhcp4.dhcpsrv/1] DHCPSRV_CFGMGR_SUBNET4_ADDR selected subnet 10.206.0.0/22 for packet received by matching address 10.206.0.2
2018-12-04 14:05:11.226 DEBUG [kea-dhcp4.callouts/1] HOOKS_CALLOUTS_BEGIN begin all callouts for hook subnet4_select
2018-12-04 14:05:11.226 DEBUG [kea-dhcp4.callouts/1] HOOKS_CALLOUT_CALLED hooks library with index 1 has called a callout on hook subnet4_select that has address 0x7f8a31588fbd (callout duration: 0.335 ms)
2018-12-04 14:05:11.227 DEBUG [kea-dhcp4.callouts/1] HOOKS_CALLOUTS_COMPLETE completed callouts for hook subnet4_select (total callouts duration: 0.335 ms)
2018-12-04 14:05:11.227 DEBUG [kea-dhcp4.packets/1] DHCP4_SUBNET_SELECTED [hwtype=1 50:a7:2b:ea:cc:e3], cid=[01:50:a7:2b:ea:cc:e3], tid=0x848b28b: the subnet with ID 9060101 was selected for client assignments
2018-12-04 14:05:11.227 DEBUG [kea-dhcp4.packets/1] DHCP4_SUBNET_DATA [hwtype=1 50:a7:2b:ea:cc:e3], cid=[01:50:a7:2b:ea:cc:e3], tid=0x848b28b: the selected subnet details: 10.206.0.0/22
2018-12-04 14:05:11.227 DEBUG [kea-dhcp4.dhcp4/1] DHCP4_CLASS_ASSIGNED [hwtype=1 50:a7:2b:ea:cc:e3], cid=[01:50:a7:2b:ea:cc:e3], tid=0x848b28b: client packet has been assigned to the following class(es): UNKNOWN
2018-12-04 14:05:11.227 DEBUG [kea-dhcp4.dhcp4/1] DHCP4_CLASS_ASSIGNED [hwtype=1 50:a7:2b:ea:cc:e3], cid=[01:50:a7:2b:ea:cc:e3], tid=0x848b28b: client packet has been assigned to the following class(es): ALL, VENDOR_CLASS_uDHCP HG659V100R001C279B010, restricted, UNKNOWN
2018-12-04 14:05:11.227 DEBUG [kea-dhcp4.ddns/1] DHCP4_CLIENT_HOSTNAME_PROCESS [hwtype=1 50:a7:2b:ea:cc:e3], cid=[01:50:a7:2b:ea:cc:e3], tid=0x848b28b: processing client's Hostname option
2018-12-04 14:05:11.227 DEBUG [kea-dhcp4.dhcpsrv/1] DHCPSRV_MEMFILE_GET_CLIENTID obtaining IPv4 leases for client ID 01:50:a7:2b:ea:cc:e3
2018-12-04 14:05:11.228 DEBUG [kea-dhcp4.dhcpsrv/1] DHCPSRV_MEMFILE_GET_HWADDR obtaining IPv4 leases for hardware address hwtype=1 50:a7:2b:ea:cc:e3
2018-12-04 14:05:11.228 DEBUG [kea-dhcp4.alloc-engine/1] ALLOC_ENGINE_V4_OFFER_NEW_LEASE allocation engine will try to offer new lease to the client [hwtype=1 50:a7:2b:ea:cc:e3], cid=[01:50:a7:2b:ea:cc:e3], tid=0x848b28b
2018-12-04 14:05:11.228 DEBUG [kea-dhcp4.dhcpsrv/1] DHCPSRV_MEMFILE_GET_ADDR4 obtaining IPv4 lease for address 10.206.0.5
2018-12-04 14:05:11.228 DEBUG [kea-dhcp4.callouts/1] HOOKS_CALLOUTS_BEGIN begin all callouts for hook lease4_select
2018-12-04 14:05:11.228 DEBUG [kea-dhcp4.callouts/1] HOOKS_CALLOUT_CALLED hooks library with index 1 has called a callout on hook lease4_select that has address 0x7f8a3158939d (callout duration: 0.387 ms)
2018-12-04 14:05:11.229 DEBUG [kea-dhcp4.callouts/1] HOOKS_CALLOUTS_COMPLETE completed callouts for hook lease4_select (total callouts duration: 0.387 ms)
2018-12-04 14:05:11.229 DEBUG [kea-dhcp4.dhcpsrv/1] DHCPSRV_MEMFILE_GET_ADDR4 obtaining IPv4 lease for address 10.206.0.5
2018-12-04 14:05:11.229 INFO [kea-dhcp4.leases/1] DHCP4_LEASE_ADVERT [hwtype=1 50:a7:2b:ea:cc:e3], cid=[01:50:a7:2b:ea:cc:e3], tid=0x848b28b: lease 10.206.0.5 will be advertised
2018-12-04 14:05:11.229 DEBUG [kea-dhcp4.callouts/1] HOOKS_CALLOUTS_BEGIN begin all callouts for hook pkt4_send
2018-12-04 14:05:11.229 DEBUG [kea-dhcp4.callouts/1] HOOKS_CALLOUT_CALLED hooks library with index 1 has called a callout on hook pkt4_send that has address 0x7f8a31588987 (callout duration: 0.346 ms)
2018-12-04 14:05:11.230 DEBUG [kea-dhcp4.callouts/1] HOOKS_CALLOUTS_COMPLETE completed callouts for hook pkt4_send (total callouts duration: 0.346 ms)
2018-12-04 14:05:11.230 DEBUG [kea-dhcp4.options/1] DHCP4_PACKET_PACK [hwtype=1 50:a7:2b:ea:cc:e3], cid=[01:50:a7:2b:ea:cc:e3], tid=0x848b28b: preparing on-wire format of the packet to be sent
2018-12-04 14:05:11.230 DEBUG [kea-dhcp4.packets/1] DHCP4_PACKET_SEND [hwtype=1 50:a7:2b:ea:cc:e3], cid=[01:50:a7:2b:ea:cc:e3], tid=0x848b28b: trying to send packet DHCPOFFER (type 2) from 192.168.15.80:67 to 10.206.0.2:67 on interface ens33
2018-12-04 14:05:11.230 DEBUG [kea-dhcp4.packets/1] DHCP4_RESPONSE_DATA [hwtype=1 50:a7:2b:ea:cc:e3], cid=[01:50:a7:2b:ea:cc:e3], tid=0x848b28b: responding with packet DHCPOFFER (type 2), packet details: local_address=192.168.15.80:67, remote_address=10.206.0.2:67, msg_type=DHCPOFFER (2), transid=0x848b28b,
options:
type=001, len=004: 4294966272 (uint32)
type=003, len=004: 10.206.0.1
type=006, len=008: 192.168.0.1 192.168.0.33
type=015, len=013: "gagnaveita.is" (string)
type=051, len=004: 60 (uint32)
type=053, len=001: 2 (uint8)
type=054, len=004: 192.168.15.80
type=061, len=007: 01:50:a7:2b:ea:cc:e3
type=082, len=018:,
options:
type=001, len=006: 00:04:00:65:06:0b
type=002, len=008: 00:06:cc:ef:48:1e:a0:40
2018-12-04 14:05:11.231 DEBUG [kea-dhcp4.packets/1] DHCP4_BUFFER_RECEIVED received buffer from 10.206.0.2:67 to 192.168.15.80:67 over interface ens33
2018-12-04 14:05:11.231 DEBUG [kea-dhcp4.options/1] DHCP4_BUFFER_UNPACK parsing buffer received from 10.206.0.2 to 192.168.15.80 over interface ens33
2018-12-04 14:05:11.231 DEBUG [kea-dhcp4.packets/1] DHCP4_PACKET_RECEIVED [hwtype=1 50:a7:2b:ea:cc:e3], cid=[01:50:a7:2b:ea:cc:e3], tid=0x848b28b: DHCPREQUEST (type 3) received from 10.206.0.2 to 192.168.15.80 on interface ens33
2018-12-04 14:05:11.231 DEBUG [kea-dhcp4.packets/1] DHCP4_QUERY_DATA [hwtype=1 50:a7:2b:ea:cc:e3], cid=[01:50:a7:2b:ea:cc:e3], tid=0x848b28b, packet details: local_address=192.168.15.80:67, remote_address=10.206.0.2:67, msg_type=DHCPREQUEST (3), transid=0x848b28b,
options:
type=050, len=004: 10.206.0.4 (ipv4-address)
type=053, len=001: 3 (uint8)
type=054, len=004: 192.168.15.80 (ipv4-address)
type=055, len=024: 1(uint8) 2(uint8) 3(uint8) 4(uint8) 5(uint8) 6(uint8) 7(uint8) 8(uint8) 9(uint8) 15(uint8) 17(uint8) 28(uint8) 42(uint8) 43(uint8) 44(uint8) 66(uint8) 67(uint8) 120(uint8) 121(uint8) 77(uint8) 250(uint8) 58(uint8) 59(uint8) 212(uint8)
type=060, len=027: "uDHCP HG659V100R001C279B010" (string)
type=061, len=007: 01:50:a7:2b:ea:cc:e3
type=082, len=018:,
options:
type=001, len=006: 00:04:00:65:06:0b
type=002, len=008: 00:06:cc:ef:48:1e:a0:40
2018-12-04 14:05:11.231 DEBUG [kea-dhcp4.callouts/1] HOOKS_CALLOUTS_BEGIN begin all callouts for hook pkt4_receive
2018-12-04 14:05:11.236 DEBUG [kea-dhcp4.callouts/1] HOOKS_CALLOUT_CALLED hooks library with index 1 has called a callout on hook pkt4_receive that has address 0x7f8a31587723 (callout duration: 4.628 ms)
2018-12-04 14:05:11.236 DEBUG [kea-dhcp4.callouts/1] HOOKS_CALLOUTS_COMPLETE completed callouts for hook pkt4_receive (total callouts duration: 4.628 ms)
2018-12-04 14:05:11.236 DEBUG [kea-dhcp4.dhcpsrv/1] DHCPSRV_CFGMGR_SUBNET4_ADDR selected subnet 10.206.0.0/22 for packet received by matching address 10.206.0.2
2018-12-04 14:05:11.236 DEBUG [kea-dhcp4.callouts/1] HOOKS_CALLOUTS_BEGIN begin all callouts for hook subnet4_select
2018-12-04 14:05:11.237 DEBUG [kea-dhcp4.callouts/1] HOOKS_CALLOUT_CALLED hooks library with index 1 has called a callout on hook subnet4_select that has address 0x7f8a31588fbd (callout duration: 0.307 ms)
2018-12-04 14:05:11.237 DEBUG [kea-dhcp4.callouts/1] HOOKS_CALLOUTS_COMPLETE completed callouts for hook subnet4_select (total callouts duration: 0.307 ms)
2018-12-04 14:05:11.237 DEBUG [kea-dhcp4.packets/1] DHCP4_SUBNET_SELECTED [hwtype=1 50:a7:2b:ea:cc:e3], cid=[01:50:a7:2b:ea:cc:e3], tid=0x848b28b: the subnet with ID 9060101 was selected for client assignments
2018-12-04 14:05:11.237 DEBUG [kea-dhcp4.packets/1] DHCP4_SUBNET_DATA [hwtype=1 50:a7:2b:ea:cc:e3], cid=[01:50:a7:2b:ea:cc:e3], tid=0x848b28b: the selected subnet details: 10.206.0.0/22
2018-12-04 14:05:11.237 DEBUG [kea-dhcp4.dhcp4/1] DHCP4_CLASS_ASSIGNED [hwtype=1 50:a7:2b:ea:cc:e3], cid=[01:50:a7:2b:ea:cc:e3], tid=0x848b28b: client packet has been assigned to the following class(es): UNKNOWN
2018-12-04 14:05:11.237 DEBUG [kea-dhcp4.dhcp4/1] DHCP4_CLASS_ASSIGNED [hwtype=1 50:a7:2b:ea:cc:e3], cid=[01:50:a7:2b:ea:cc:e3], tid=0x848b28b: client packet has been assigned to the following class(es): ALL, VENDOR_CLASS_uDHCP HG659V100R001C279B010, restricted, UNKNOWN
2018-12-04 14:05:11.237 DEBUG [kea-dhcp4.ddns/1] DHCP4_CLIENT_HOSTNAME_PROCESS [hwtype=1 50:a7:2b:ea:cc:e3], cid=[01:50:a7:2b:ea:cc:e3], tid=0x848b28b: processing client's Hostname option
2018-12-04 14:05:11.238 DEBUG [kea-dhcp4.dhcpsrv/1] DHCPSRV_MEMFILE_GET_CLIENTID obtaining IPv4 leases for client ID 01:50:a7:2b:ea:cc:e3
2018-12-04 14:05:11.238 DEBUG [kea-dhcp4.dhcpsrv/1] DHCPSRV_MEMFILE_GET_HWADDR obtaining IPv4 leases for hardware address hwtype=1 50:a7:2b:ea:cc:e3
2018-12-04 14:05:11.238 DEBUG [kea-dhcp4.dhcpsrv/1] DHCPSRV_MEMFILE_GET_ADDR4 obtaining IPv4 lease for address 10.206.0.4
2018-12-04 14:05:11.238 DEBUG [kea-dhcp4.alloc-engine/1] ALLOC_ENGINE_V4_REQUEST_ALLOC_REQUESTED [hwtype=1 50:a7:2b:ea:cc:e3], cid=[01:50:a7:2b:ea:cc:e3], tid=0x848b28b: trying to allocate requested address 10.206.0.4
2018-12-04 14:05:11.238 DEBUG [kea-dhcp4.dhcpsrv/1] DHCPSRV_MEMFILE_GET_ADDR4 obtaining IPv4 lease for address 10.206.0.4
2018-12-04 14:05:11.238 DEBUG [kea-dhcp4.callouts/1] HOOKS_CALLOUTS_BEGIN begin all callouts for hook lease4_select
2018-12-04 14:05:11.239 DEBUG [kea-dhcp4.callouts/1] HOOKS_CALLOUT_CALLED hooks library with index 1 has called a callout on hook lease4_select that has address 0x7f8a3158939d (callout duration: 0.441 ms)
2018-12-04 14:05:11.239 DEBUG [kea-dhcp4.callouts/1] HOOKS_CALLOUTS_COMPLETE completed callouts for hook lease4_select (total callouts duration: 0.441 ms)
2018-12-04 14:05:11.239 DEBUG [kea-dhcp4.dhcpsrv/1] DHCPSRV_MEMFILE_ADD_ADDR4 adding IPv4 lease with address 10.206.0.4
2018-12-04 14:05:11.239 DEBUG [kea-dhcp4.dhcpsrv/1] DHCPSRV_MEMFILE_GET_ADDR4 obtaining IPv4 lease for address 10.206.0.4
2018-12-04 14:05:11.239 INFO [kea-dhcp4.leases/1] DHCP4_LEASE_ALLOC [hwtype=1 50:a7:2b:ea:cc:e3], cid=[01:50:a7:2b:ea:cc:e3], tid=0x848b28b: lease 10.206.0.4 has been allocated
2018-12-04 14:05:11.239 DEBUG [kea-dhcp4.callouts/1] HOOKS_CALLOUTS_BEGIN begin all callouts for hook leases4_committed
2018-12-04 14:05:11.255 DEBUG [kea-dhcp4.callouts/1] HOOKS_CALLOUT_CALLED hooks library with index 1 has called a callout on hook leases4_committed that has address 0x7f8a3158a0a3 (callout duration: 15.466 ms)
2018-12-04 14:05:11.255 DEBUG [kea-dhcp4.callouts/1] HOOKS_CALLOUTS_COMPLETE completed callouts for hook leases4_committed (total callouts duration: 15.466 ms)
2018-12-04 14:05:11.255 DEBUG [kea-dhcp4.callouts/1] HOOKS_CALLOUTS_BEGIN begin all callouts for hook pkt4_send
2018-12-04 14:05:11.255 DEBUG [kea-dhcp4.callouts/1] HOOKS_CALLOUT_CALLED hooks library with index 1 has called a callout on hook pkt4_send that has address 0x7f8a31588987 (callout duration: 0.298 ms)
2018-12-04 14:05:11.256 DEBUG [kea-dhcp4.callouts/1] HOOKS_CALLOUTS_COMPLETE completed callouts for hook pkt4_send (total callouts duration: 0.298 ms)
2018-12-04 14:05:11.257 DEBUG [kea-dhcp4.options/1] DHCP4_PACKET_PACK [hwtype=1 50:a7:2b:ea:cc:e3], cid=[01:50:a7:2b:ea:cc:e3], tid=0x848b28b: preparing on-wire format of the packet to be sent
2018-12-04 14:05:11.257 DEBUG [kea-dhcp4.packets/1] DHCP4_PACKET_SEND [hwtype=1 50:a7:2b:ea:cc:e3], cid=[01:50:a7:2b:ea:cc:e3], tid=0x848b28b: trying to send packet DHCPACK (type 5) from 192.168.15.80:67 to 10.206.0.2:67 on interface ens33
2018-12-04 14:05:11.257 DEBUG [kea-dhcp4.packets/1] DHCP4_RESPONSE_DATA [hwtype=1 50:a7:2b:ea:cc:e3], cid=[01:50:a7:2b:ea:cc:e3], tid=0x848b28b: responding with packet DHCPACK (type 5), packet details: local_address=192.168.15.80:67, remote_address=10.206.0.2:67, msg_type=DHCPACK (5), transid=0x848b28b,
options:
type=001, len=004: 4294966272 (uint32)
type=003, len=004: 10.206.0.1
type=006, len=008: 192.168.0.1 192.168.0.33
type=015, len=013: "gagnaveita.is" (string)
type=051, len=004: 60 (uint32)
type=053, len=001: 5 (uint8)
type=054, len=004: 192.168.15.80
type=061, len=007: 01:50:a7:2b:ea:cc:e3
type=082, len=018:,
options:
type=001, len=006: 00:04:00:65:06:0b
type=002, len=008: 00:06:cc:ef:48:1e:a0:40
kea-dhcp4.log when query is markt with "unrestricted" class:
2018-12-04 14:11:27.327 DEBUG [kea-dhcp4.packets/1] DHCP4_BUFFER_RECEIVED received buffer from 10.206.0.3:67 to 192.168.15.80:67 over interface ens33
2018-12-04 14:11:27.327 DEBUG [kea-dhcp4.options/1] DHCP4_BUFFER_UNPACK parsing buffer received from 10.206.0.3 to 192.168.15.80 over interface ens33
2018-12-04 14:11:27.328 DEBUG [kea-dhcp4.packets/1] DHCP4_PACKET_RECEIVED [hwtype=1 50:a7:2b:ea:cc:e3], cid=[01:50:a7:2b:ea:cc:e3], tid=0x5b0501ef: DHCPDISCOVER (type 1) received from 10.206.0.3 to 192.168.15.80 on interface ens33
2018-12-04 14:11:27.329 DEBUG [kea-dhcp4.packets/1] DHCP4_QUERY_DATA [hwtype=1 50:a7:2b:ea:cc:e3], cid=[01:50:a7:2b:ea:cc:e3], tid=0x5b0501ef, packet details: local_address=192.168.15.80:67, remote_address=10.206.0.3:67, msg_type=DHCPDISCOVER (1), transid=0x5b0501ef,
options:
type=050, len=004: 192.168.30.4 (ipv4-address)
type=053, len=001: 1 (uint8)
type=055, len=024: 1(uint8) 2(uint8) 3(uint8) 4(uint8) 5(uint8) 6(uint8) 7(uint8) 8(uint8) 9(uint8) 15(uint8) 17(uint8) 28(uint8) 42(uint8) 43(uint8) 44(uint8) 66(uint8) 67(uint8) 120(uint8) 121(uint8) 77(uint8) 250(uint8) 58(uint8) 59(uint8) 212(uint8)
type=060, len=027: "uDHCP HG659V100R001C279B010" (string)
type=061, len=007: 01:50:a7:2b:ea:cc:e3
type=077, len=002: 01:68
type=082, len=018:,
options:
type=001, len=006: 00:04:00:65:06:0b
type=002, len=008: 00:06:cc:ef:48:1e:a0:40
type=116, len=001: 1 (uint8)
2018-12-04 14:11:27.329 DEBUG [kea-dhcp4.callouts/1] HOOKS_CALLOUTS_BEGIN begin all callouts for hook pkt4_receive
2018-12-04 14:11:27.349 DEBUG [kea-dhcp4.callouts/1] HOOKS_CALLOUT_CALLED hooks library with index 1 has called a callout on hook pkt4_receive that has address 0x7ff7b76a8723 (callout duration: 20.561 ms)
2018-12-04 14:11:27.350 DEBUG [kea-dhcp4.callouts/1] HOOKS_CALLOUTS_COMPLETE completed callouts for hook pkt4_receive (total callouts duration: 20.561 ms)
2018-12-04 14:11:27.350 DEBUG [kea-dhcp4.callouts/1] HOOKS_CALLOUTS_BEGIN begin all callouts for hook subnet4_select
2018-12-04 14:11:27.351 DEBUG [kea-dhcp4.callouts/1] HOOKS_CALLOUT_CALLED hooks library with index 1 has called a callout on hook subnet4_select that has address 0x7ff7b76a9fbd (callout duration: 1.099 ms)
2018-12-04 14:11:27.351 DEBUG [kea-dhcp4.callouts/1] HOOKS_CALLOUTS_COMPLETE completed callouts for hook subnet4_select (total callouts duration: 1.099 ms)
2018-12-04 14:11:27.352 DEBUG [kea-dhcp4.packets/1] DHCP4_SUBNET_SELECTION_FAILED [hwtype=1 50:a7:2b:ea:cc:e3], cid=[01:50:a7:2b:ea:cc:e3], tid=0x5b0501ef: failed to select subnet for the client
2018-12-04 14:11:27.352 DEBUG [kea-dhcp4.dhcp4/1] DHCP4_CLASS_ASSIGNED [hwtype=1 50:a7:2b:ea:cc:e3], cid=[01:50:a7:2b:ea:cc:e3], tid=0x5b0501ef: client packet has been assigned to the following class(es): UNKNOWN
2018-12-04 14:11:27.353 DEBUG [kea-dhcp4.dhcp4/1] DHCP4_CLASS_ASSIGNED [hwtype=1 50:a7:2b:ea:cc:e3], cid=[01:50:a7:2b:ea:cc:e3], tid=0x5b0501ef: client packet has been assigned to the following class(es): ALL, VENDOR_CLASS_uDHCP HG659V100R001C279B010, unrestricted, UNKNOWN
2018-12-04 14:11:27.353 DEBUG [kea-dhcp4.ddns/1] DHCP4_CLIENT_HOSTNAME_PROCESS [hwtype=1 50:a7:2b:ea:cc:e3], cid=[01:50:a7:2b:ea:cc:e3], tid=0x5b0501ef: processing client's Hostname option
2018-12-04 14:11:27.353 ERROR [kea-dhcp4.bad-packets/1] DHCP4_PACKET_NAK_0001 [hwtype=1 50:a7:2b:ea:cc:e3], cid=[01:50:a7:2b:ea:cc:e3], tid=0x5b0501ef: failed to select a subnet for incoming packet, src 10.206.0.3, type DHCPDISCOVER
I hope someone can shed light on this issue as it seems that I'm getting out of options using KEA as a soulution for my problem.
best regards, Hreidar.