<html><head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"></head><body
 text="#000000" bgcolor="#FFFFFF">
Hi. I'm using the KEA DHCPv6 server for experiments in extending DHCPv6.<br>
  <br>
Up until now my experience with 0.92 has been really good. Thanks.<br>
  <br>
I note that you requested updates to the documentation, based on 
deployment experience.<br>
  <br>
I'm following <a class="moz-txt-link-freetext" href="http://kea.isc.org/docs/kea-guide.html#keactrl-config-file">http://kea.isc.org/docs/kea-guide.html#keactrl-config-file</a><br>
  <br>
Section 8.2.1 subnet declaration does not include an explicit 
"interface" definition.<br>
  <br>
When I build a test config based on the example, the server refused to 
grant leases with a message "failed to select subnet for the client" 
Debug is contained below.<br>
  <br>
It took me a while to work out what was going wrong.<br>
  <br>
Adding <br>
  <br>
"interface": "eth1"<br>
  <br>
as suggested in the "subnet6" example later in the same section fixed 
the problem.<br>
  <br>
Humbly suggest you add <br>
"interface": "eth0"<br>

to the first example config<br>

  <br>
Either that or there's a bug, because the server is only listening on 
one interface [eth1] and the pool is not being auto-added to that 
interface.<br>
  <br>
  <div class="moz-signature">-- <br>
<div>regards,<br>
RayH<span style="text-decoration: underline;"><br>
</span><br>
debug below<br>
    <br>
2015-11-30 01:28:50.845 DEBUG [kea-dhcp6.packets/4242] 
DHCP6_BUFFER_RECEIVED received buffer from fe80::250:56ff:fe20:207d:546 
to ff02::1:2:0 over interface eth1<br>
2015-11-30 01:28:50.884 DEBUG [kea-dhcp6.options/4242] 
DHCP6_BUFFER_UNPACK parsing buffer received from 
fe80::250:56ff:fe20:207d to ff02::1:2 over interface eth1<br>
2015-11-30 01:28:51.058 DEBUG [kea-dhcp6.packets/4242] 
DHCP6_PACKET_RECEIVED duid=[00:03:00:01:00:50:56:20:20:7d], 
tid=0x1e5d72: SOLICIT (type ^A) received from fe80::250:56ff:fe20:207d 
to ff02::1:2 on interface eth1<br>
2015-11-30 01:28:51.071 DEBUG [kea-dhcp6.packets/4242] DHCP6_QUERY_DATA 
duid=[00:03:00:01:00:50:56:20:20:7d], tid=0x1e5d72, packet details: 
localAddr=[ff02::1:2]:0 remoteAddr=[fe80::250:56ff:fe20:207d]:546<br>
msgtype=1, transid=0x1e5d72<br>
type=00001, len=00010: 00:03:00:01:00:50:56:20:20:7d<br>
type=00003(IA_NA), len=00012: iaid=1, t1=0, t2=0<br>
type=00006, len=00026: 21(uint16) 22(uint16) 23(uint16) 24(uint16) 
31(uint16) 56(uint16) 64(uint16) 67(uint16) 82(uint16) 83(uint16) 
94(uint16) 95(uint16) 96(uint16)<br>
type=00008, len=00002: 108 (uint16)<br>
type=00020, len=00000:<br>
type=00025(IA_PD), len=00012: iaid=1, t1=0, t2=0<span 
style="text-decoration: underline;"><br>
    </span>type=39(CLIENT_FQDN), flags: (N=0, O=0, S=0), 
domain-name='openwrt.' (full)<br>
    <br>
2015-11-30 01:28:51.102 DEBUG [kea-dhcp6.packets/4242] 
DHCP6_SUBNET_SELECTION_FAILED duid=[00:03:00:01:00:50:56:20:20:7d], 
tid=0x1e5d72: failed to select subnet for the client<br>
2015-11-30 01:28:51.112 DEBUG [kea-dhcp6.ddns/4242] 
DHCP6_DDNS_RECEIVE_FQDN duid=[00:03:00:01:00:50:56:20:20:7d], 
tid=0x1e5d72: received DHCPv6 Client FQDN option: type=39(CLIENT_FQDN), 
flags: (N=0, O=0, S=0), domain-name='openwrt.' (full)<br>
2015-11-30 01:28:51.115 DEBUG [kea-dhcp6.ddns/4242] 
DHCP6_DDNS_RESPONSE_FQDN_DATA duid=[00:03:00:01:00:50:56:20:20:7d], 
tid=0x1e5d72: including FQDN option in the server's response: 
type=39(CLIENT_FQDN), flags: (N=1, O=0, S=0), domain-name='openwrt.' 
(full)<br>
2015-11-30 01:28:51.115 DEBUG [kea-dhcp6.leases/4242] 
DHCP6_PROCESS_IA_NA_REQUEST duid=[00:03:00:01:00:50:56:20:20:7d], 
tid=0x1e5d72: server is processing IA_NA option with iaid=1 and hint=(no
 hint)<br>
2015-11-30 01:28:51.115 DEBUG [kea-dhcp6.options/4242] 
DHCP6_ADD_STATUS_CODE_FOR_IA duid=[00:03:00:01:00:50:56:20:20:7d], 
tid=0x1e5d72: adding Status Code to IA with iaid=1: NoAddrsAvail(2) 
"Server could not select subnet for this client"<br>
    <span style="text-decoration: underline;"><br>
      <br>
failing config snippet<br>
      <br>
      <br>
    </span>"Dhcp6": {<br>
    <br>
# First we set up global values<br>
    "renew-timer": 1000,<br>
    "rebind-timer": 2000,<br>
    "preferred-lifetime": 3000,<br>
    "valid-lifetime": 4000,<br>
    <br>
# Next we setup the interfaces to be used by the server.<br>
    "interfaces-config": {<br>
        "interfaces": [ "eth1" ]<br>
    },<br>
    <br>
    <br>
# Finally, we list the subnets from which we will be leasing addresses.<br>
    "subnet6": [<br>
        {<br>
            "pools": [<br>
                 {<br>
                     "pool": "2001:47f:1::1-2001:47f:1::ffff"<br>
                 }<br>
             ],<br>
            "subnet": "2001:47f:1::/64"<br>
# uncommenting the following two lines fixes the problem<br>
# "subnet": "2001:47f:1::/64",<br>
#"interface": "eth1"<br>
        }<br>
    ]<br>
# DHCPv6 configuration ends with the next line<br>
}<span style="text-decoration: underline;"><br>
  </span><a 
href="https://www.postbox-inc.com/?utm_source=email&utm_medium=siglink&utm_campaign=reach"><span
 style="color: rgb(51, 102, 153);"></span></a></div>
  </div>
</body>
</html>