[Kea-users] Problem with kea-dhcp6

Anton Kiryushkin swood at fotofor.biz
Wed May 23 14:51:25 UTC 2018


Joelson,

I seeing only below:

# ip maddr show dev eth0  | grep inet6
inet6 ff02::1:ff00:0
inet6 ff05::2
inet6 ff01::2
inet6 ff02::2
inet6 ff02::1:ff00:a
inet6 ff02::1
inet6 ff01::1

But, when I ran ISC-dhcpv6:

# ip maddr show dev eth0  | grep inet6
inet6 ff05::1:3
inet6 ff02::1:2
inet6 ff02::1:ff00:0
inet6 ff05::2
inet6 ff01::2
inet6 ff02::2
inet6 ff02::1:ff00:a
inet6 ff02::1
inet6 ff01::1

It's a little bit strange.

2018-05-23 12:15 GMT+01:00 Joelson Vendramin <jtvendramin at yahoo.com.br>:

> Anton,
>
> I'm still using Kea 1.2.0:
> # kea-dhcp6 -V
> 1.2.0
> tarball
> linked with:
> log4cplus 1.1.3
> OpenSSL 1.0.2h  3 May 2016
> database:
> Memfile backend 2.0
>
> Also built it from .tar.gz in a Slackware 14.2 64bit Linux distro. I
> didn't change any sysctl options (using defaults).
>
> Does your "ifconfig eth0" list a link-local (fe80::...) address?
> Also take a look at "netstat -g" to see if your eth0 is bounded with all
> IPv6 multicast addresses. Something like this:
> eth0            1      ff02::1:2
> eth0            1      ff02::1:????:?
> eth0            1      ff02::1:????:?
> eth0            1      ff02::1
> eth0            1      ff01::1
>
> Regards,
> --
> Joelson Vendramin
>
>
> Em terça-feira, 22 de maio de 2018 18:08:08 BRT, Anton Kiryushkin <
> swood at fotofor.biz> escreveu:
>
>
> Hello, Joelson!
>
> Thank you for your answer!
> Probably I'm using the wrong version of Kea? My version is:
>
> # kea-dhcp6 -V
> 1.3.0
> tarball
> linked with:
> log4cplus 1.2.1
> OpenSSL 1.0.2j-fips  26 Sep 2016
> database:
> MySQL backend 5.1, library 10.0.34-MariaDB
> PostgreSQL backend 3.1, library 90608
> Memfile backend 2.0
>
> I built it from source archive.
>
> I added section unicast to my configuration file but I've seen in my
> netstat only listening to the address from my network interface, nothing
> else.
> Do need I to turn on some sysctl options?
>
> 2018-05-22 17:41 GMT+01:00 Joelson Vendramin <jtvendramin at yahoo.com.br>:
>
> Anton,
>
> Accordingly to Kea Guide (see http://kea.isc.org/docs/kea-
> guide.html#dhcp6-unicast
> <http://kea.isc.org/docs/kea-guide.html#dhcp6-unicast>)
> this config is to enable Kea to handle unicast traffic sent to the IPv6
> global address. I use this because in my scenario Kea is working with
> relays.
>
> But it should listen as well to the link-local address (FE80:...) and also the
> multicast group (ff02::1:2).
>
> My "netstat -ln6" shows something like this and everything works as
> expected:
> (...)
> # netstat -ln6
> Active Internet connections (only servers)
> Proto Recv-Q Send-Q Local Address           Foreign Address         State
> (...)
> udp6       0      0 ff02::1:2:547           :::*
> udp6       0      0 fe80::e05d:d5ff:fee:547 :::*
> udp6       0      0 2001:db8:ffff::93::547  :::*
>
> Regards,
> --
> Joelson Vendramin
>
>
> Em terça-feira, 22 de maio de 2018 11:29:33 BRT, Anton Kiryushkin <
> swood at fotofor.biz> escreveu:
>
>
> Hello.
>
> There are some strange moments.
> When I tried to run a server like this, Kea listens 2001:db8:1::1 (my
> address on the eth0), but when I ran ISC-dhcpdv6 it listens UDP :::547.
> So, when Kea has run I don't see any packets to address 2001:db8:1::1.
> Could you explain why Kea working differently?
>
> 2018-05-17 18:01 GMT+01:00 Joelson Vendramin <jtvendramin at yahoo.com.br>:
>
> Hello Anton,
>
> Try to put the IPv6 address of your interface after eth0.
> This way:
>
> ...
>   "interfaces-config": {
>     "interfaces": [ "eth0/2001:db8:<...address...> " ]
>   },
> ...
>
>
> Regards,
> --
> Joelson Vendramin
>
>
> Em quinta-feira, 17 de maio de 2018 13:32:12 BRT, Anton Kiryushkin <
> swood at fotofor.biz> escreveu:
>
>
> Hello.
>
> I have a simple configuration file:
>
> {
> "Dhcp6": {
>     "interfaces-config": {
>         "interfaces": [ "eth0" ]
>     },
>     "control-socket": {
>         "socket-type": "unix",
>         "socket-name": "/tmp/kea-dhcp6-ctrl.sock"
>     },
>     "lease-database": {
>         "type": "memfile",
>         "lfc-interval": 3600
>     },
>     "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
>     },
>     "renew-timer": 1000,
>     "rebind-timer": 2000,
>     "preferred-lifetime": 3000,
>     "valid-lifetime": 4000,
>     "option-data": [
>         {
>             "name": "dns-servers",
>             "data": "2001:db8:1::3"
>         }
>     ],
>     "subnet6": [
>         {
>             "subnet": "2001:db8:1::/64",
>             "pools": [ { "pool": "2001:db8:1::/64" } ]
>         }
>     ]
> },
> "Logging":
> {
>   "loggers": [
>     {
>         "name": "kea-dhcp6",
>         "output_options": [
>             {
>                 "output": "/var/log/kea/dhcp6.log"
>             }
>         ],
>         "severity": "DEBUG",
>         "debuglevel": 20
>     }
>   ]
> }
> }
>
> But.
> When I tried to start it I saw the text below:
>
> 2018-05-17 16:22:39.970 INFO  [kea-dhcp6.dhcp6/32344] DHCP6_STARTING Kea
> DHCPv6 server version 1.3.0 starting
> 2018-05-17 16:22:39.971 INFO  [kea-dhcp6.dhcpsrv/32344]
> DHCPSRV_CFGMGR_ADD_IFACE listening on interface eth0
> 2018-05-17 16:22:39.972 INFO  [kea-dhcp6.dhcpsrv/32344]
> DHCPSRV_CFGMGR_NEW_SUBNET4 a new subnet has been added to configuration:
> 2001:db8:1::/64 with params t1=1000, t2=2000, preferred-lifetime=3000,
> valid-lifetime=4000, rapid-commit is disabled
> 2018-05-17 16:22:39.972 INFO  [kea-dhcp6.dhcp6/32344]
> DHCP6_CONFIG_COMPLETE DHCPv6 server has completed configuration: added IPv6
> subnets: 1; DDNS: disabled
> 2018-05-17 16:22:39.973 INFO  [kea-dhcp6.dhcpsrv/32344] DHCPSRV_MEMFILE_DB
> opening memory file lease database: lfc-interval=3600 type=memfile
> universe=6
> 2018-05-17 16:22:39.973 INFO  [kea-dhcp6.dhcpsrv/32344]
> DHCPSRV_MEMFILE_LEASE_FILE_ LOAD loading leases from file
> /var/kea/kea-leases6.csv
> 2018-05-17 16:22:39.973 INFO  [kea-dhcp6.dhcpsrv/32344]
> DHCPSRV_MEMFILE_LFC_SETUP setting up the Lease File Cleanup interval to
> 3600 sec
> 2018-05-17 16:22:39.973 INFO  [kea-dhcp6.dhcp6/32344] DHCP6_USING_SERVERID
> server is using server-id 00:01:00:01:22:90:5e:e1:00:50: 56:af:e9:80 and
> stores in the file /var/kea/kea-dhcp6-serverid
> 2018-05-17 16:22:39.973 WARN  [kea-dhcp6.dhcpsrv/32344]
> DHCPSRV_NO_SOCKETS_OPEN no interface configured to listen to DHCP traffic
>
>
> Why it wrote about DHCPSRV_NO_SOCKETS_OPEN except for DHCP6?
> Why didn't open any socket for DHCP6?
> Of course, I have an address from the subnet 2001:db8:1 on eth0.
>
> --
> Best regards,
> Anton Kiryushkin
>
> ______________________________ _________________
> Kea-users mailing list
> Kea-users at lists.isc.org
> https://lists.isc.org/mailman/ listinfo/kea-users
> <https://lists.isc.org/mailman/listinfo/kea-users>
>
> ______________________________ _________________
> Kea-users mailing list
> Kea-users at lists.isc.org
> https://lists.isc.org/mailman/ listinfo/kea-users
> <https://lists.isc.org/mailman/listinfo/kea-users>
>
>
>
>
> --
> Best regards,
> Anton Kiryushkin
>
>
> ______________________________ _________________
> Kea-users mailing list
> Kea-users at lists.isc.org
> https://lists.isc.org/mailman/ listinfo/kea-users
> <https://lists.isc.org/mailman/listinfo/kea-users>
>
>
>
>
> --
> Best regards,
> Anton Kiryushkin
>
>
> _______________________________________________
> Kea-users mailing list
> Kea-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/kea-users
>
>


-- 
Best regards,
Anton Kiryushkin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20180523/d3eede1f/attachment.htm>


More information about the Kea-users mailing list