[kea-dev] Hello & Suggested Documentation Update
Ray Hunter (v6ops)
v6ops at globis.net
Mon Nov 30 12:36:24 UTC 2015
Hi. I'm using the KEA DHCPv6 server for experiments in extending DHCPv6.
Up until now my experience with 0.92 has been really good. Thanks.
I note that you requested updates to the documentation, based on
deployment experience.
I'm following http://kea.isc.org/docs/kea-guide.html#keactrl-config-file
Section 8.2.1 subnet declaration does not include an explicit
"interface" definition.
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.
It took me a while to work out what was going wrong.
Adding
"interface": "eth1"
as suggested in the "subnet6" example later in the same section fixed
the problem.
Humbly suggest you add
"interface": "eth0"
to the first example config
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.
--
regards,
RayH
debug below
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
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
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
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
msgtype=1, transid=0x1e5d72
type=00001, len=00010: 00:03:00:01:00:50:56:20:20:7d
type=00003(IA_NA), len=00012: iaid=1, t1=0, t2=0
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)
type=00008, len=00002: 108 (uint16)
type=00020, len=00000:
type=00025(IA_PD), len=00012: iaid=1, t1=0, t2=0
type=39(CLIENT_FQDN), flags: (N=0, O=0, S=0), domain-name='openwrt.' (full)
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
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)
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)
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)
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"
failing config snippet
"Dhcp6": {
# First we set up global values
"renew-timer": 1000,
"rebind-timer": 2000,
"preferred-lifetime": 3000,
"valid-lifetime": 4000,
# Next we setup the interfaces to be used by the server.
"interfaces-config": {
"interfaces": [ "eth1" ]
},
# Finally, we list the subnets from which we will be leasing addresses.
"subnet6": [
{
"pools": [
{
"pool": "2001:47f:1::1-2001:47f:1::ffff"
}
],
"subnet": "2001:47f:1::/64"
# uncommenting the following two lines fixes the problem
# "subnet": "2001:47f:1::/64",
#"interface": "eth1"
}
]
# DHCPv6 configuration ends with the next line
}
<https://www.postbox-inc.com/?utm_source=email&utm_medium=siglink&utm_campaign=reach>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-dev/attachments/20151130/a6043ce9/attachment.html>
More information about the kea-dev
mailing list