[Kea-users] Problem with kea-dhcp6

Joelson Vendramin jtvendramin at yahoo.com.br
Tue May 22 16:41:24 UTC 2018


Anton,

Accordingly to Kea Guide (see 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 starting2018-05-17 16:22:39.971 INFO  [kea-dhcp6.dhcpsrv/32344] DHCPSRV_CFGMGR_ADD_IFACE listening on interface eth02018-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 disabled2018-05-17 16:22:39.972 INFO  [kea-dhcp6.dhcp6/32344] DHCP6_CONFIG_COMPLETE DHCPv6 server has completed configuration: added IPv6 subnets: 1; DDNS: disabled2018-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=62018-05-17 16:22:39.973 INFO  [kea-dhcp6.dhcpsrv/32344] DHCPSRV_MEMFILE_LEASE_FILE_ LOAD loading leases from file /var/kea/kea-leases6.csv2018-05-17 16:22:39.973 INFO  [kea-dhcp6.dhcpsrv/32344] DHCPSRV_MEMFILE_LFC_SETUP setting up the Lease File Cleanup interval to 3600 sec2018-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-serverid2018-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
  
______________________________ _________________
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/20180522/bbe76fff/attachment.htm>


More information about the Kea-users mailing list