[Kea-users] DHCPv6, anybody got it working?
Ricardo J. Barberis
ricardo at palmtx.com.ar
Mon Jun 19 17:03:28 UTC 2017
Hi Joelson,
Yes, server has an address in 2800:NNNN::/64 and the client is connected to
the same switch.
I just replaced this:
"pools": [ { "pool": "2800:NNNN::/64" } ],
With this (which is an unused range in our network that I had tried before, but
I tried it again to be sure):
"pools": [ { "pool": "2800:NNNN::100-2800:NNNN::200" } ],
Still no luck, this is the debug log from the server:
2017-06-19 13:29:04.570 DEBUG [kea-dhcp6.packets/18452] DHCP6_BUFFER_RECEIVED received buffer from fe80::32b5:c2ff:fe04:aa95:546 to ff02::1:2:0 over interface eth0
2017-06-19 13:29:04.570 DEBUG [kea-dhcp6.options/18452] DHCP6_BUFFER_UNPACK parsing buffer received from fe80::32b5:c2ff:fe04:aa95 to ff02::1:2 over interface eth0
2017-06-19 13:29:04.571 DEBUG [kea-dhcp6.packets/18452] DHCP6_PACKET_RECEIVED duid=[00:01:00:01:20:da:b5:47:30:b5:c2:04:aa:95], tid=0x98cc8e: SOLICIT (type 1)
received from fe80::32b5:c2ff:fe04:aa95 to ff02::1:2 on interface eth0
2017-06-19 13:29:04.571 DEBUG [kea-dhcp6.packets/18452] DHCP6_QUERY_DATA duid=[00:01:00:01:20:da:b5:47:30:b5:c2:04:aa:95], tid=0x98cc8e, packet details:
localAddr=[ff02::1:2]:0 remoteAddr=[fe80::32b5:c2ff:fe04:aa95]:546
msgtype=1, transid=0x98cc8e
type=00001, len=00014: 00:01:00:01:20:da:b5:47:30:b5:c2:04:aa:95
type=00003(IA_NA), len=00012: iaid=3255085717, t1=3600, t2=5400
type=00006, len=00004: 23(uint16) 24(uint16)
type=00008, len=00002: 0 (uint16)
2017-06-19 13:29:04.571 DEBUG [kea-dhcp6.packets/18452] DHCP6_SUBNET_SELECTION_FAILED duid=[00:01:00:01:20:da:b5:47:30:b5:c2:04:aa:95], tid=0x98cc8e: failed to
select subnet for the client
2017-06-19 13:29:04.571 DEBUG [kea-dhcp6.leases/18452] DHCP6_PROCESS_IA_NA_REQUEST duid=[00:01:00:01:20:da:b5:47:30:b5:c2:04:aa:95], tid=0x98cc8e: server is
processing IA_NA option with iaid=3255085717 and hint=(no hint)
2017-06-19 13:29:04.572 DEBUG [kea-dhcp6.options/18452] DHCP6_ADD_STATUS_CODE_FOR_IA duid=[00:01:00:01:20:da:b5:47:30:b5:c2:04:aa:95], tid=0x98cc8e: adding Status
Code to IA with iaid=3255085717: NoAddrsAvail(2) "Server could not select subnet for this client"
2017-06-19 13:29:04.572 DEBUG [kea-dhcp6.packets/18452] DHCP6_RESPONSE_DATA responding with packet type 2 data is localAddr=[ff02::1:2]:547
remoteAddr=[fe80::32b5:c2ff:fe04:aa95]:546
msgtype=2, transid=0x98cc8e
type=00001, len=00014: 00:01:00:01:20:da:b5:47:30:b5:c2:04:aa:95
type=00002, len=00014: 00:01:00:01:20:b2:20:32:30:b5:c2:04:c9:54
type=00003(IA_NA), len=00064: iaid=3255085717, t1=0, t2=0,
options:
type=00013, len=00048: NoAddrsAvail(2) "Server could not select subnet for this client"
And the client:
# dhclient -v -6 -1 -lf /var/lib/dhclient/dhclient6--eth0.lease -pf /var/run/dhclient6-eth0.pid -H host02 eth0
Internet Systems Consortium DHCP Client 4.2.5
Copyright 2004-2013 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on Socket/eth0
Sending on Socket/eth0
PRC: Soliciting for leases (INIT).
XMT: Forming Solicit, 0 ms elapsed.
XMT: X-- IA_NA c2:04:aa:95
XMT: | X-- Request renew in +3600
XMT: | X-- Request rebind in +5400
XMT: Solicit on eth0, interval 1020ms.
RCV: Advertise message on eth0 from fe80::32b5:c2ff:fe04:c954.
RCV: X-- IA_NA c2:04:aa:95
RCV: | X-- starts 1497889744
RCV: | X-- t1 - renew +0
RCV: | X-- t2 - rebind +0
RCV: | X-- [Options]
RCV: X-- Server ID: 00:01:00:01:20:b2:20:32:30:b5:c2:04:c9:54
IA_NA status code NoAddrsAvail: "Server could not select subnet for this client"
PRC: Lease failed to satisfy.
El Lunes 19/06/2017 a las 13:15, Joelson Vendramin escribió:
> Ricardo,
> Your DHCPv6 clients are in the same network as your DHCPv6 server?I mean:
> the eth0 interface is within 2800:NNNN::/64 network or you're doing some
> kind of relay? If eth0 is one of 2800:NNNN::/64, remember that its IPv6
> address must be excluded from the pool. Regards,
> --Joelson Vendramin
>
> De: Ricardo J. Barberis <ricardo at palmtx.com.ar>
> Para: kea-users at lists.isc.org
> Enviadas: Segunda-feira, 19 de Junho de 2017 12:51
> Assunto: [Kea-users] DHCPv6, anybody got it working?
>
> Hi all,
>
> I've been trying to make kea-dhcp6 work with no luck so far.
>
> I'm on CentOS 7.3 (client and server), I tried 1.1.0 from EPEL and 1.2.0
> self-compiled. Client has dhclient-4.2.5-47.el7.
>
> I started configuring a lot of things (host reservations, hosts and leases
> in mysql, etc) in a non-default way, so I figured I did something wrong,
> but last Friday I tried a very basic, mostly default config and stil I
> can't get an IPv6.
>
> Clients always get 'IA_NA status code NoAddrsAvail: "Server could not
> select subnet for this client"'.
>
>
> Has anybody made kea-dhcp6 work? Can you share a working config to see what
> I'm doing wrong?
>
>
> Here's my last kea.conf as a reference (dhcp4 always worked fine for me,
> BTW):
>
> {
> "Dhcp4": {
> "interfaces-config": {
> "interfaces": [ "eth0" ]
> },
> "lease-database": {
> "type": "memfile"
> },
> "expired-leases-processing": {
> "reclaim-timer-wait-time": 10,
> "flush-reclaimed-timer-wait-time": 25,
> "hold-reclaimed-time": 3600,
> "max-reclaim-leases": 100,
> "max-reclaim-time": 250,
> "unwarned-reclaim-cycles": 5
> },
> "valid-lifetime": 4000,
> "subnet4": [
> {
> "subnet": "NN.NN.NN.0/24",
> "pools": [ { "pool": "NN.NN.NN.2-NN.NN.NN.10" } ],
> "id": 2,
> }
> ]
> },
>
> "Dhcp6": {
> "interfaces-config": {
> "interfaces": [ "eth0" ]
> },
> "lease-database": {
> "type": "memfile"
> },
> "expired-leases-processing": {
> "reclaim-timer-wait-time": 10,
> "flush-reclaimed-timer-wait-time": 25,
> "hold-reclaimed-time": 3600,
> "max-reclaim-leases": 100,
> "max-reclaim-time": 250,
> "unwarned-reclaim-cycles": 5
> },
> "preferred-lifetime": 3000,
> "valid-lifetime": 4000,
> "renew-timer": 1000,
> "rebind-timer": 2000,
> "subnet6": [
> {
> "subnet": "2800:NNNN::/64",
> "pools": [ { "pool": "2800:NNNN::/64" } ],
> "id": 1
> }
> ]
> },
>
> "DhcpDdns":
> {
> "ip-address": "127.0.0.1",
> "port": 53001,
> "tsig-keys": [],
> "forward-ddns" : {},
> "reverse-ddns" : {}
> },
>
> "Logging":
> {
> "loggers": [
> {
> "name": "kea-dhcp4",
> "output_options": [
> {
> "output": "/var/log/kea-dhcp4.log"
> }
> ],
> "severity": "INFO",
> "debuglevel": 0
> },
> {
> "name": "kea-dhcp6",
> "output_options": [
> {
> "output": "/var/log/kea-dhcp6.log"
> }
> ],
> "severity": "DEBUG",
> "debuglevel": 99
> },
> {
> "name": "kea-dhcp-ddns",
> "output_options": [
> {
> "output": "/var/log/kea-ddns.log"
> }
> ],
> "severity": "INFO",
> "debuglevel": 0
> }
> ]
> }
> }
--
Ricardo J. Barberis
Usuario Linux Nº 250625: http://counter.li.org/
Usuario LFS Nº 5121: http://www.linuxfromscratch.org/
Senior SysAdmin / IT Architect - www.DonWeb.com
More information about the Kea-users
mailing list