[Kea-users] Dhcpv6 server

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Kea-users] Dhcpv6 server

João Butzke
Hi, we are trying to install kea as a dhcpv6-server, and we are having
some problems with it.

First of all, the server(ubuntu 20.04) need to have an ipv6 address on
the interface? if yes, the address needs to be in the pool?

Here is the server log when started:

naxi@dhcpv6:~/kea6$ 2021-03-02 20:42:09.551 INFO
[kea-dhcp6.hosts/6206.139941705381376] HOSTS_BACKENDS_REGISTERED the
following host backend types are available: mysql
2021-03-02 20:42:09.554 INFO [kea-dhcp6.dhcpsrv/6206.139941705381376]
DHCPSRV_CFGMGR_ADD_IFACE listening on interface ens19
2021-03-02 20:42:09.555 INFO [kea-dhcp6.dhcpsrv/6206.139941705381376]
DHCPSRV_CFGMGR_NEW_SUBNET6 a new subnet has been added to configuration:
2804:15e4:8000::/36 with params: t1=1000, t2=2000,
preferred-lifetime=3000, valid-lifetime=4000, rapid-commit is false
2021-03-02 20:42:09.556 INFO [kea-dhcp6.commands/6206.139941705381376]
COMMAND_ACCEPTOR_START Starting to accept connections via unix domain
socket bound to /tmp/kea6-ctrl-socket
2021-03-02 20:42:09.557 INFO [kea-dhcp6.dhcp6/6206.139941705381376]
DHCP6_CONFIG_COMPLETE DHCPv6 server has completed configuration: added
IPv6 subnets: 1; DDNS: disabled
2021-03-02 20:42:09.557 INFO [kea-dhcp6.dhcpsrv/6206.139941705381376]
DHCPSRV_MYSQL_DB opening MySQL lease database: host=localhost name=kea
password=***** port=3306 type=mysql universe=6 user=kea
2021-03-02 20:42:09.598 INFO [kea-dhcp6.hosts/6206.139941705381376]
DHCPSRV_MYSQL_HOST_DB opening MySQL hosts database: host=localhost
name=kea password=***** port=3306 type=mysql universe=6 user=kea
2021-03-02 20:42:09.651 INFO [kea-dhcp6.dhcp6/6206.139941705381376]
DHCP6_USING_SERVERID server is using server-id
00:01:00:01:27:cf:ff:37:16:41:55:fb:6b:16 and stores in the file
/usr/local/var/lib/kea/kea-dhcp6-serverid
2021-03-02 20:42:09.655 WARN [kea-dhcp6.dhcp6/6206.139941705381376]
DHCP6_MULTI_THREADING_INFO enabled: no, number of threads: 0, queue size: 0
2021-03-02 20:42:09.655 INFO [kea-dhcp6.dhcp6/6206.139941705381376]
DHCP6_STARTED Kea DHCPv6 server version 1.8.2 started

There is no errors, but when i run a tcdump, there is no answered dhcp
requests..

Best regards,

João Butzke

_______________________________________________
ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.

To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.

Kea-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/kea-users
Reply | Threaded
Open this post in threaded view
|

Re: [Kea-users] Dhcpv6 server

Joshua Schaeffer
On 3/3/21 7:41 AM, João Butzke wrote:
First of all, the server(ubuntu 20.04) need to have an ipv6 address on the interface?

Not necessarily. If you do not specify a unicast address in the configuration then kea-dhcp6 will listen on the multicast address for the VLAN that the interface resides on. The DHCPv6 multicast address is: ff02::1:2.

if yes, the address needs to be in the pool?

Again, not necessarily. If you specify a unicast address that is not in the same subnet as your pool then you have to relay the DHCP requests to the server using DHCP relay.


Here is the server log when started:

naxi@dhcpv6:~/kea6$ 2021-03-02 20:42:09.551 INFO [kea-dhcp6.hosts/6206.139941705381376] HOSTS_BACKENDS_REGISTERED the following host backend types are available: mysql
2021-03-02 20:42:09.554 INFO [kea-dhcp6.dhcpsrv/6206.139941705381376] DHCPSRV_CFGMGR_ADD_IFACE listening on interface ens19
2021-03-02 20:42:09.555 INFO [kea-dhcp6.dhcpsrv/6206.139941705381376] DHCPSRV_CFGMGR_NEW_SUBNET6 a new subnet has been added to configuration: 2804:15e4:8000::/36 with params: t1=1000, t2=2000, preferred-lifetime=3000, valid-lifetime=4000, rapid-commit is false
2021-03-02 20:42:09.556 INFO [kea-dhcp6.commands/6206.139941705381376] COMMAND_ACCEPTOR_START Starting to accept connections via unix domain socket bound to /tmp/kea6-ctrl-socket
2021-03-02 20:42:09.557 INFO [kea-dhcp6.dhcp6/6206.139941705381376] DHCP6_CONFIG_COMPLETE DHCPv6 server has completed configuration: added IPv6 subnets: 1; DDNS: disabled
2021-03-02 20:42:09.557 INFO [kea-dhcp6.dhcpsrv/6206.139941705381376] DHCPSRV_MYSQL_DB opening MySQL lease database: host=localhost name=kea password=***** port=3306 type=mysql universe=6 user=kea
2021-03-02 20:42:09.598 INFO [kea-dhcp6.hosts/6206.139941705381376] DHCPSRV_MYSQL_HOST_DB opening MySQL hosts database: host=localhost name=kea password=***** port=3306 type=mysql universe=6 user=kea
2021-03-02 20:42:09.651 INFO [kea-dhcp6.dhcp6/6206.139941705381376] DHCP6_USING_SERVERID server is using server-id 00:01:00:01:27:cf:ff:37:16:41:55:fb:6b:16 and stores in the file /usr/local/var/lib/kea/kea-dhcp6-serverid
2021-03-02 20:42:09.655 WARN [kea-dhcp6.dhcp6/6206.139941705381376] DHCP6_MULTI_THREADING_INFO enabled: no, number of threads: 0, queue size: 0
2021-03-02 20:42:09.655 INFO [kea-dhcp6.dhcp6/6206.139941705381376] DHCP6_STARTED Kea DHCPv6 server version 1.8.2 started

There is no errors, but when i run a tcdump, there is no answered dhcp requests..

I noticed you are configuring a /36. Do you have prefix delegation configured? You should provide your configuration. Also your log only shows up to kea starting. Are you getting any log entries when a client performs a SOLICIT? If not then your SOLICIT is not even getting to the server in the first place (or is being blocked by a firewall).

-- 
Thanks,
Joshua Schaeffer

_______________________________________________
ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.

To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.

Kea-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/kea-users
Reply | Threaded
Open this post in threaded view
|

Re: [Kea-users] Dhcpv6 server

João Butzke
Hi Joshua, thanks for the quick response.

The kea-dhcp6.conf file is in attachment.

There is no firewall in the server, when i perform a tcpdump in the
server interface it shows the dhcp packet requests, but there is no
response from the server.

There is no log when the client performs a solicit.

Best regards,

Joao Butzke.

On 03-Mar-21 12:38, Joshua Schaeffer wrote:

> On 3/3/21 7:41 AM, João Butzke wrote:
>> First of all, the server(ubuntu 20.04) need to have an ipv6 address
>> on the interface?
>
> Not necessarily. If you do not specify a unicast address in the
> configuration then kea-dhcp6 will listen on the multicast address for
> the VLAN that the interface resides on. The DHCPv6 multicast address
> is: ff02::1:2.
>
>> if yes, the address needs to be in the pool?
>
> Again, not necessarily. If you specify a unicast address that is not
> in the same subnet as your pool then you have to relay the DHCP
> requests to the server using DHCP relay.
>
>>
>> Here is the server log when started:
>>
>> naxi@dhcpv6:~/kea6$ 2021-03-02 20:42:09.551 INFO
>> [kea-dhcp6.hosts/6206.139941705381376] HOSTS_BACKENDS_REGISTERED the
>> following host backend types are available: mysql
>> 2021-03-02 20:42:09.554 INFO [kea-dhcp6.dhcpsrv/6206.139941705381376]
>> DHCPSRV_CFGMGR_ADD_IFACE listening on interface ens19
>> 2021-03-02 20:42:09.555 INFO [kea-dhcp6.dhcpsrv/6206.139941705381376]
>> DHCPSRV_CFGMGR_NEW_SUBNET6 a new subnet has been added to
>> configuration: 2804:15e4:8000::/36 with params: t1=1000, t2=2000,
>> preferred-lifetime=3000, valid-lifetime=4000, rapid-commit is false
>> 2021-03-02 20:42:09.556 INFO
>> [kea-dhcp6.commands/6206.139941705381376] COMMAND_ACCEPTOR_START
>> Starting to accept connections via unix domain socket bound to
>> /tmp/kea6-ctrl-socket
>> 2021-03-02 20:42:09.557 INFO [kea-dhcp6.dhcp6/6206.139941705381376]
>> DHCP6_CONFIG_COMPLETE DHCPv6 server has completed configuration:
>> added IPv6 subnets: 1; DDNS: disabled
>> 2021-03-02 20:42:09.557 INFO [kea-dhcp6.dhcpsrv/6206.139941705381376]
>> DHCPSRV_MYSQL_DB opening MySQL lease database: host=localhost
>> name=kea password=***** port=3306 type=mysql universe=6 user=kea
>> 2021-03-02 20:42:09.598 INFO [kea-dhcp6.hosts/6206.139941705381376]
>> DHCPSRV_MYSQL_HOST_DB opening MySQL hosts database: host=localhost
>> name=kea password=***** port=3306 type=mysql universe=6 user=kea
>> 2021-03-02 20:42:09.651 INFO [kea-dhcp6.dhcp6/6206.139941705381376]
>> DHCP6_USING_SERVERID server is using server-id
>> 00:01:00:01:27:cf:ff:37:16:41:55:fb:6b:16 and stores in the file
>> /usr/local/var/lib/kea/kea-dhcp6-serverid
>> 2021-03-02 20:42:09.655 WARN [kea-dhcp6.dhcp6/6206.139941705381376]
>> DHCP6_MULTI_THREADING_INFO enabled: no, number of threads: 0, queue
>> size: 0
>> 2021-03-02 20:42:09.655 INFO [kea-dhcp6.dhcp6/6206.139941705381376]
>> DHCP6_STARTED Kea DHCPv6 server version 1.8.2 started
>>
>> There is no errors, but when i run a tcdump, there is no answered
>> dhcp requests..
>
> I noticed you are configuring a /36. Do you have prefix delegation
> configured? You should provide your configuration. Also your log only
> shows up to kea starting. Are you getting any log entries when a
> client performs a SOLICIT? If not then your SOLICIT is not even
> getting to the server in the first place (or is being blocked by a
> firewall).
>
> --
> Thanks,
> Joshua Schaeffer

_______________________________________________
ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.

To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.

Kea-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/kea-users

kea-dhcp6.txt (23K) Download Attachment