<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class="">Hi guys,</div><div class=""><br class=""></div><div class="">We are currently in a migration scenario from the old ISC DHCP to KEA DHCP and having some troubles with NAKs. Hopefully you can help me to clarify the situation.</div><div class=""><br class=""></div><div class="">To have a smooth transition we want to have both DHCPs serving requests for the known clients.</div><div class="">Our idea was to disable “authoritative” and the new KEA should stay silent on non migrated devices.</div><div class=""><br class=""></div><div class="">It seems to work partly as it stays silent on DISCOVERS, but for RENEWs it does not work. Our KEA is sending NAKs which causes that some client do not retry to get an ip address and the customers need to reboot their devices. </div><div class=""><br class=""></div><div class="">What’s the intended behaviour and are the any ideas to solve the task? Is there a way to disable NAKs completely?</div><div class=""><br class=""></div><div class="">Thank you,</div><div class=""><br class=""></div><div class="">Mathias</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><b class="">Kea 1.5</b></div><div class=""><b class="">All the subnets are added to the shared network but without dynamic pool</b></div><div class=""><br class=""></div><div class="">        "shared-networks": [</div><div class="">          {</div><div class="">            "authoritative": false,</div><div class="">            "match-client-id": true,</div><div class="">            "name": "DOCSIS",</div><div class="">            "option-data": [],</div><div class="">            "relay": {</div><div class="">              "ip-addresses": []</div><div class="">            },</div><div class="">            "reservation-mode": "all",</div><div class="">            "subnet4": [</div><div class="">              {</div><div class="">                "4o6-interface": "",</div><div class="">                "4o6-interface-id": "",</div><div class="">                "4o6-subnet": "",</div><div class="">                "authoritative": false,</div><div class="">                "boot-file-name": "",</div><div class="">                "client-class": "docsis-devices",</div><div class="">                "id": 1,</div><div class="">                "match-client-id": true,</div><div class="">                "next-server": “xxxxxxxxx",</div><div class="">                "option-data": [</div><div class="">                  {</div><div class="">                    "always-send": false,</div><div class="">                    "code": 3,</div><div class="">                    "csv-format": true,</div><div class="">                    "data": "xxxxxxxxx",</div><div class="">                    "name": "routers",</div><div class="">                    "space": "dhcp4"</div><div class="">                  },</div><div class="">                  {</div><div class="">                    "always-send": false,</div><div class="">                    "code": 4,</div><div class="">                    "csv-format": true,</div><div class="">                    "data": "xxxxxxxxx",</div><div class="">                    "name": "time-servers",</div><div class="">                    "space": "dhcp4"</div><div class="">                  },</div><div class="">                  {</div><div class="">                    "always-send": false,</div><div class="">                    "code": 42,</div><div class="">                    "csv-format": true,</div><div class="">                    "data": "xxxxxxxxx",</div><div class="">                    "name": "ntp-servers",</div><div class="">                    "space": "dhcp4"</div><div class="">                  },</div><div class="">                  {</div><div class="">                    "always-send": false,</div><div class="">                    "code": 2,</div><div class="">                    "csv-format": true,</div><div class="">                    "data": "7200",</div><div class="">                    "name": "time-offset",</div><div class="">                    "space": "dhcp4"</div><div class="">                  }</div><div class="">                ],</div><div class="">                "pools": [</div><div class="">                  {</div><div class="">                    "client-class": "KNOWN",</div><div class="">                    "option-data": [],</div><div class="">                    "pool": "xxxxxxxxx-xxxxxxxxx"</div><div class="">                  }</div><div class="">                ],</div><div class="">                "rebind-timer": 6300,</div><div class="">                "relay": {</div><div class="">                  "ip-addresses": [</div><div class="">                    "xxxxxxxxx"</div><div class="">                  ]</div><div class="">                },</div><div class="">                "renew-timer": 3600,</div><div class="">                "reservation-mode": "all",</div><div class="">                "reservations": [],</div><div class="">                "server-hostname": "",</div><div class="">                "subnet": "xxxxxxxxx/16",</div><div class="">                "valid-lifetime": 7200</div><div class="">              },</div><div class="">              {</div><div class="">                "4o6-interface": "",</div><div class="">                "4o6-interface-id": "",</div><div class="">                "4o6-subnet": "",</div><div class="">                "authoritative": false,</div><div class="">                "boot-file-name": "",</div><div class="">                "id": 2,</div><div class="">                "match-client-id": true,</div><div class="">                "next-server": "0.0.0.0",</div><div class="">                "option-data": [</div><div class="">                  {</div><div class="">                    "always-send": false,</div><div class="">                    "code": 3,</div><div class="">                    "csv-format": true,</div><div class="">                    "data": "xxxxxxxxx",</div><div class="">                    "name": "routers",</div><div class="">                    "space": "dhcp4"</div><div class="">                  },</div><div class="">                  {</div><div class="">                    "always-send": false,</div><div class="">                    "code": 2,</div><div class="">                    "csv-format": true,</div><div class="">                    "data": "7200",</div><div class="">                    "name": "time-offset",</div><div class="">                    "space": "dhcp4"</div><div class="">                  }</div><div class="">                ],</div><div class="">                "pools": [],</div><div class="">                "rebind-timer": 6300,</div><div class="">                "relay": {</div><div class="">                  "ip-addresses": [</div><div class="">                    "xxxxxxxxx"</div><div class="">                  ]</div><div class="">                }</div><div class="">….</div><div class=""><br class=""></div><div class="">Output:</div><div class="">2019-03-25 15:03:47.720 DEBUG [kea-dhcp4.packets/16201] DHCP4_PACKET_RECEIVED [hwtype=1 aa:aa:aa:aa:aa:aa], cid=[bb:bb:bb:bb:bb:bb:bb:bb:bb:aa:aa:aa:aa:aa:aa], tid=0x103ed2fd: DHCPREQUEST (type 3) received from 111.111.111.111 to 222.222.222.222 on interface ens160</div><div class="">2019-03-25 15:03:47.721 DEBUG [kea-dhcp4.packets/16201] DHCP4_QUERY_DATA [hwtype=1 aa:aa:aa:aa:aa:aa], cid=[bb:bb:bb:bb:bb:bb:bb:bb:bb:aa:aa:aa:aa:aa:aa], tid=0x103ed2fd, packet details: local_address=222.222.222.222:67, remote_address=111.111.111.111:67, msg_type=DHCPREQUEST (3), transid=0x103ed2fd,</div><div class="">options:</div><div class="">  type=053, len=001: 3 (uint8)</div><div class="">  type=055, len=014: 72(uint8) 1(uint8) 2(uint8) 3(uint8) 4(uint8) 6(uint8) 7(uint8) 12(uint8) 15(uint8) 23(uint8) 26(uint8) 54(uint8) 51(uint8) 125(uint8)</div><div class="">  type=057, len=002: 1500 (uint16)</div><div class="">  type=061, len=015: bb:bb:bb:bb:bb:bb:bb:bb:bb:aa:aa:aa:aa:aa:aa</div><div class="">  type=082, len=033:,</div><div class="">options:</div><div class="">....</div><div class="">2019-03-25 15:03:47.721 DEBUG [kea-dhcp4.callouts/16201] HOOKS_CALLOUTS_BEGIN begin all callouts for hook pkt4_receive</div><div class="">2019-03-25 15:03:47.721 DEBUG [kea-dhcp4.callouts/16201] HOOKS_CALLOUT_CALLED hooks library with index 3 has called a callout on hook pkt4_receive that has address 0xBBBBBBBBB (callout duration: 0.134 ms)</div><div class="">2019-03-25 15:03:47.721 DEBUG [kea-dhcp4.callouts/16201] HOOKS_CALLOUTS_COMPLETE completed callouts for hook pkt4_receive (total callouts duration: 0.134 ms)</div><div class="">2019-03-25 15:03:47.721 DEBUG [kea-dhcp4.packets/16201] DHCP4_SUBNET_SELECTED [hwtype=1 aa:aa:aa:aa:aa:aa], cid=[bb:bb:bb:bb:bb:bb:bb:bb:bb:aa:aa:aa:aa:aa:aa], tid=0xBBBBBBBBB: the subnet with ID 2 was selected for client assignments</div><div class="">2019-03-25 15:03:47.721 DEBUG [kea-dhcp4.packets/16201] DHCP4_SUBNET_DATA [hwtype=1 aa:aa:aa:aa:aa:aa], cid=[bb:bb:bb:bb:bb:bb:bb:bb:bb:aa:aa:aa:aa:aa:aa], tid=0xBBBBBBBBB: the selected subnet details: 111.111.111.111/24</div><div class="">2019-03-25 15:03:47.721 DEBUG [kea-dhcp4.callouts/16201] HOOKS_CALLOUTS_BEGIN begin all callouts for hook host4_identifier</div><div class="">2019-03-25 15:03:47.722 DEBUG [kea-dhcp4.eval/16201] EVAL_DEBUG_OPTION Pushing option 2 with value 0xAAAAAAAAAAA</div><div class="">2019-03-25 15:03:47.722 DEBUG [kea-dhcp4.eval/16201] EVAL_DEBUG_STRING Pushing text string '0'</div><div class="">2019-03-25 15:03:47.722 DEBUG [kea-dhcp4.eval/16201] EVAL_DEBUG_STRING Pushing text string '12'</div><div class="">2019-03-25 15:03:47.722 DEBUG [kea-dhcp4.eval/16201] EVAL_DEBUG_SUBSTRING Popping length 12, start 0, string 0xAAAAAAAAAAA pushing result 0xAAAAAAAAAAA</div><div class="">2019-03-25 15:03:47.722 DEBUG [kea-dhcp4.callouts/16201] HOOKS_CALLOUT_CALLED hooks library with index 3 has called a callout on hook host4_identifier that has address 0xAAAAAAAAAAA (callout duration: 0.677 ms)</div><div class="">2019-03-25 15:03:47.722 DEBUG [kea-dhcp4.callouts/16201] HOOKS_CALLOUTS_COMPLETE completed callouts for hook host4_identifier (total callouts duration: 0.677 ms)</div><div class="">2019-03-25 15:03:47.722 DEBUG [kea-dhcp4.hosts/16201] HOSTS_CFG_GET_ALL_IDENTIFIER get all hosts with reservations using identifier: hwaddr=0xAAAAAAAAAAA</div><div class="">2019-03-25 15:03:47.722 DEBUG [kea-dhcp4.hosts/16201] HOSTS_CFG_GET_ALL_IDENTIFIER_COUNT using identifier hwaddr=AAAAAAAAAAA, found 0 host(s)</div><div class="">2019-03-25 15:03:47.723 DEBUG [kea-dhcp4.hosts/16201] HOSTS_CFG_GET_ALL_IDENTIFIER get all hosts with reservations using identifier: duid=AAAAAAAAAAAAAAAAAAAAAA</div><div class="">2019-03-25 15:03:47.723 DEBUG [kea-dhcp4.hosts/16201] HOSTS_CFG_GET_ALL_IDENTIFIER_COUNT using identifier duid=00030001AAAAAAAAAAA, found 0 host(s)</div><div class="">2019-03-25 15:03:47.723 DEBUG [kea-dhcp4.hosts/16201] HOSTS_CFG_GET_ALL_IDENTIFIER get all hosts with reservations using identifier: circuit-id=0xAAAAAAAA</div><div class="">2019-03-25 15:03:47.723 DEBUG [kea-dhcp4.hosts/16201] HOSTS_CFG_GET_ALL_IDENTIFIER_COUNT using identifier circuit-id=BBBBBBBBB, found 0 host(s)</div><div class="">2019-03-25 15:03:47.724 DEBUG [kea-dhcp4.hosts/16201] HOSTS_CFG_GET_ALL_IDENTIFIER get all hosts with reservations using identifier: client-id=AAAAAAAAAAAAAAAAAAAAAA</div><div class="">2019-03-25 15:03:47.724 DEBUG [kea-dhcp4.hosts/16201] HOSTS_CFG_GET_ALL_IDENTIFIER_COUNT using identifier client-id=BBBBBBBBBBBBBBBBBAAAAAAAAAAA, found 0 host(s)</div><div class="">2019-03-25 15:03:47.724 DEBUG [kea-dhcp4.hosts/16201] HOSTS_CFG_GET_ALL_IDENTIFIER get all hosts with reservations using identifier: flex-id=AAAAAAAAAAAA</div><div class="">2019-03-25 15:03:47.724 DEBUG [kea-dhcp4.hosts/16201] HOSTS_CFG_GET_ALL_IDENTIFIER_COUNT using identifier flex-id=AAAAAAAAAAAA, found 0 host(s)</div><div class="">2019-03-25 15:03:47.725 DEBUG [kea-dhcp4.dhcp4/16201] DHCP4_CLASS_ASSIGNED [hwtype=1 aa:aa:aa:aa:aa:aa], cid=[bb:bb:bb:bb:bb:bb:bb:bb:bb:aa:aa:aa:aa:aa:aa], tid=0xBBBBBBBBB: client packet has been assigned to the following class(es): UNKNOWN</div><div class="">2019-03-25 15:03:47.725 DEBUG [kea-dhcp4.dhcp4/16201] DHCP4_CLASS_ASSIGNED [hwtype=1 aa:aa:aa:aa:aa:aa], cid=[bb:bb:bb:bb:bb:bb:bb:bb:bb:aa:aa:aa:aa:aa:aa], tid=0xBBBBBBBBB: client packet has been assigned to the following class(es): ALL, cpe, UNKNOWN</div><div class="">2019-03-25 15:03:47.725 DEBUG [kea-dhcp4.ddns/16201] DHCP4_CLIENT_HOSTNAME_PROCESS [hwtype=1 aa:aa:aa:aa:aa:aa], cid=[bb:bb:bb:bb:bb:bb:bb:bb:bb:aa:aa:aa:aa:aa:aa], tid=0xBBBBBBBBB: processing client's Hostname option</div><div class="">2019-03-25 15:03:47.725 DEBUG [kea-dhcp4.dhcpsrv/16201] DHCPSRV_PGSQL_GET_CLIENTID obtaining IPv4 leases for client ID bb:bb:bb:bb:bb:bb:bb:bb:bb:aa:aa:aa:aa:aa:aa</div><div class="">2019-03-25 15:03:47.725 DEBUG [kea-dhcp4.dhcpsrv/16201] DHCPSRV_PGSQL_GET_HWADDR obtaining IPv4 leases for hardware address hwtype=1 aa:aa:aa:aa:aa:aa</div><div class="">2019-03-25 15:03:47.726 DEBUG [kea-dhcp4.hosts/16201] HOSTS_CFG_GET_ONE_SUBNET_ID_ADDRESS4 get one host with reservation for subnet id 2 and IPv4 address 333.333.333.333</div><div class="">2019-03-25 15:03:47.726 DEBUG [kea-dhcp4.hosts/16201] HOSTS_CFG_GET_ALL_ADDRESS4 get all hosts with reservations for IPv4 address 333.333.333.333</div><div class="">2019-03-25 15:03:47.726 DEBUG [kea-dhcp4.hosts/16201] HOSTS_CFG_GET_ALL_ADDRESS4_COUNT using address 333.333.333.333, found 0 host(s)</div><div class="">2019-03-25 15:03:47.726 DEBUG [kea-dhcp4.hosts/16201] HOSTS_CFG_GET_ONE_SUBNET_ID_ADDRESS4_NULL host not found using subnet id 2 and address 333.333.333.333</div><div class="">2019-03-25 15:03:47.726 DEBUG [kea-dhcp4.hosts/16201] HOSTS_MGR_ALTERNATE_GET4_SUBNET_ID_ADDRESS4 trying alternate sources for host using subnet id 2 and address 333.333.333.333</div><div class="">2019-03-25 15:03:47.726 DEBUG [kea-dhcp4.dhcpsrv/16201] DHCPSRV_PGSQL_GET_ADDR4 obtaining IPv4 lease for address 333.333.333.333</div><div class="">2019-03-25 15:03:47.727 DEBUG [kea-dhcp4.alloc-engine/16201] <b class="">ALLOC_ENGINE_V4_REQUEST_OUT_OF_POOL</b> client [hwtype=1 aa:aa:aa:aa:aa:aa], cid=[bb:bb:bb:bb:bb:bb:bb:bb:bb:aa:aa:aa:aa:aa:aa], tid=0xBBBBBBBBB, which doesn't have a reservation, requested address 333.333.333.333 out of the dynamic pool</div><div class="">2019-03-25 15:03:47.727 DEBUG [kea-dhcp4.bad-packets/16201] DHCP4_PACKET_NAK_0004 [hwtype=1 aa:aa:aa:aa:aa:aa], cid=[bb:bb:bb:bb:bb:bb:bb:bb:bb:aa:aa:aa:aa:aa:aa], tid=0xBBBBBBBBB failed to grant a lease, client sent ciaddr 333.333.333.333, requested-ip-address (no address)</div><div class="">2019-03-25 15:03:47.727 DEBUG [kea-dhcp4.callouts/16201] HOOKS_CALLOUTS_BEGIN begin all callouts for hook pkt4_send</div><div class="">2019-03-25 15:03:47.727 DEBUG [kea-dhcp4.callouts/16201] HOOKS_CALLOUT_CALLED hooks library with index 3 has called a callout on hook pkt4_send that has address 0xAAAAAAAAAAA (callout duration: 0.127 ms)</div><div class="">2019-03-25 15:03:47.727 DEBUG [kea-dhcp4.callouts/16201] HOOKS_CALLOUTS_COMPLETE completed callouts for hook pkt4_send (total callouts duration: 0.127 ms)</div><div class="">2019-03-25 15:03:47.727 DEBUG [kea-dhcp4.options/16201] DHCP4_PACKET_PACK [hwtype=1 aa:aa:aa:aa:aa:aa], cid=[no info], tid=0xBBBBBBBBB: preparing on-wire format of the packet to be sent</div><div class="">2019-03-25 15:03:47.727 DEBUG [kea-dhcp4.packets/16201] DHCP4_PACKET_SEND [hwtype=1 aa:aa:aa:aa:aa:aa], cid=[no info], tid=0xBBBBBBBBB: trying to send packet DHCPNAK (type 6) from 222.222.222.222:67 to 111.111.111.111:67 on interface ens160</div><div class="">2019-03-25 15:03:47.727 DEBUG [kea-dhcp4.packets/16201] DHCP4_RESPONSE_DATA [hwtype=1 aa:aa:aa:aa:aa:aa], cid=[no info], tid=0xBBBBBBBBB: responding with packet DHCPNAK (type 6), packet details: local_address=222.222.222.222:67, remote_address=111.111.111.111:67, msg_type=DHCPNAK (6), transid=0x103ed2fd,</div><div class=""><br class=""></div><div class=""><br class=""></div></div><br class=""><br class=""></body></html>