[Kea-users] DHCPv6 replies using the wrong source address

Wilhelm, Thomas (Inexio) thomas.wilhelm at inexio.net
Mon Jul 19 21:09:09 UTC 2021


Hi together,

did anyone get this working?
I'm trying exactly the same and get the same error.

Best regards,

Thomas




________________________________
Von: Kea-users <kea-users-bounces at lists.isc.org> im Auftrag von Luiz Amaral <email at luiz.eng.br>
Gesendet: Mittwoch, 23. Juni 2021 11:27
An: kea-users at lists.isc.org
Betreff: [Kea-users] DHCPv6 replies using the wrong source address

Hello people,

I'm running Kea DHCP6 1.9.8 on Debian Buster and ran into an issue when
running it behind a load balancer.

In the host running Kea, I have two different IPv6 addresses:
2a00:xxxx::3, assigned to eth0 and 2a00:xxxx::1:3, assigned to the
loopback interface.

My DHCPv6 relay (2a00:xxxx:3::63) forwards requests to the
2a00:xxxx::1:3 address, via the load balancer.

When I have "eth0/2a00:xxxx::3" and "lo/2a00:xxxx::1:3" in the
interfaces-config section of my Kea configuration, Kea is answering the
requests, but with the IP address of eth0, instead of the IP address of
lo, which was the destination of the request.
22:21:27.051056 IP6 2a00:xxxx:3::63.546 > 2a00:xxxx::1:3.547: dhcp6
relay-fwd
22:21:27.051550 IP6 2a00:xxxx::3.547 > 2a00:xxxx:3::63.547: dhcp6
relay-reply
22:21:35.133247 IP6 2a00:xxxx:3::63.546 > 2a00:xxxx::1:3.547: dhcp6
relay-fwd
22:21:35.133832 IP6 2a00:xxxx::3.547 > 2a00:xxxx:3::63.547: dhcp6
relay-reply

I have also tried removing the eth0 entry from the interfaces-config
option, but that made things even worse, as now I get an error in the logs:
Jun 22 23:10:49 hostname kea-dhcp6[15658]: ERROR DHCP6_PACKET_SEND_FAIL
failed to send DHCPv6 packet: Interface eth0/2 does not have any
suitable IPv6 sockets open.
Jun 22 23:10:51 hostname kea-dhcp6[15658]: ERROR DHCP6_PACKET_SEND_FAIL
failed to send DHCPv6 packet: Interface eth0/2 does not have any
suitable IPv6 sockets open.

Does Kea have an option to define the source address for outgoing
packets or is there a way to achieve what I am trying to do?

Thank you,
Luiz.




_______________________________________________
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
Kea-users at lists.isc.org
https://lists.isc.org/mailman/listinfo/kea-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20210719/6bf5b77d/attachment.htm>


More information about the Kea-users mailing list