[Kea-users] DHCPv6, anybody got it working?

Ricardo J. Barberis ricardo at palmtx.com.ar
Mon Jun 19 17:11:01 UTC 2017


Aah, thank you Marcin!

That did the trick:

# 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 1040ms.
RCV: Advertise message on eth0 from fe80::32b5:c2ff:fe04:c954.
RCV:  X-- IA_NA c2:04:aa:95
RCV:  | X-- starts 1497891995
RCV:  | X-- t1 - renew  +1000
RCV:  | X-- t2 - rebind +2000
RCV:  | X-- [Options]
RCV:  | | X-- IAADDR 2800:NNNN::100
RCV:  | | | X-- Preferred lifetime 3000.
RCV:  | | | X-- Max lifetime 4000.
RCV:  X-- Server ID: 00:01:00:01:20:b2:20:32:30:b5:c2:04:c9:54
RCV:  Advertisement recorded.
PRC: Selecting best advertised lease.
PRC: Considering best lease.
PRC:  X-- Initial candidate 00:01:00:01:20:b2:20:32:30:b5:c2:04:c9:54 (s: 153, p: 0).
XMT: Forming Request, 0 ms elapsed.
XMT:  X-- IA_NA c2:04:aa:95
XMT:  | X-- Requested renew  +3600
XMT:  | X-- Requested rebind +5400
XMT:  | | X-- IAADDR 2800:NNNN::100
XMT:  | | | X-- Preferred lifetime +7200
XMT:  | | | X-- Max lifetime +7500
XMT:  V IA_NA appended.
XMT: Request on eth0, interval 920ms.
RCV: Reply message on eth0 from fe80::32b5:c2ff:fe04:c954.
RCV:  X-- IA_NA c2:04:aa:95
RCV:  | X-- starts 1497891996
RCV:  | X-- t1 - renew  +1000
RCV:  | X-- t2 - rebind +2000
RCV:  | X-- [Options]
RCV:  | | X-- IAADDR 2800:NNNN::100
RCV:  | | | X-- Preferred lifetime 3000.
RCV:  | | | X-- Max lifetime 4000.
RCV:  X-- Server ID: 00:01:00:01:20:b2:20:32:30:b5:c2:04:c9:54
PRC: Bound to lease 00:01:00:01:20:b2:20:32:30:b5:c2:04:c9:54.



No, let's try host reservations, mysql and all the good stuff :)


El Lunes 19/06/2017 a las 13:42, Marcin Siodelski escribió:
> Ricardo,
>
> Your "subnet6" declaration should be updated to include an "interface"
> or "relay" parameter to indicate when this particular subnet should be
> selected.
>
> For example:
>
> "relay": {
>    "ip-address": "3000::1"
> }
>
> or
>
> "interface": "eth0"
>
> In the former case, for DHCP messages received from the particular relay
> agent the server will use the given subnet. In the latter case this
> subnet will be picked for the messages received on "eth0" interface.
>
> Marcin Siodelski
> ISC Engineering
>
> On 19.06.2017 17:51, Ricardo J. Barberis wrote:
> > 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
> >     }
> >   ]
> > }
> > }
>
> _______________________________________________
> Kea-users mailing list
> Kea-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/kea-users



-- 
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