[Kea-users] DHCPv6 listening on dummy interface

Blažej Krajňák blazej.krajnak at gmail.com
Tue Jul 12 19:14:44 UTC 2022


Hi there,

I tried to configure DHCPv6 server to listen on IPv6 address assigned
to dummy interface but it seems to be not working at all.

Server has two interfaces:
ens192 - physical port for incoming connections and with default gateway
dummy1 - dummy interface holding set of IP addresses (propagated to
IGP via OSPF and FRR)

When the server is configured to listen only on dummy interface:

"Dhcp6": {
    "interfaces-config": {
        "interfaces": [ "dummy1/2000:000:0:2::35" ]
    }
}

then I see incoming request wrongly received over interface ens192.
Request is processed correctly but sending response fails. I have to
add physical interface also to interfaces-config to solve this
problem.

Have I missed some configuration option or is it undesired behaviour?

Thanks,
Blažej

--------------

DEBUG DHCP6_BUFFER_RECEIVED received buffer from 2000:000:20:1::17:547
to 2000:000:0:2::35:0 over interface ens192
DEBUG DHCP6_BUFFER_UNPACK parsing buffer received from
2000:000:20:1::17 to 2000:000:0:2::35 over interface ens192
DEBUG EVAL_RESULT Expression DROP evaluated to 0
DEBUG DHCP6_PACKET_RECEIVED duid=[00:xx:xx:01:00:0c:42:xx:xx:xx],
tid=0xef12f5: RENEW (type 5) received from 2000:000:20:1::17 to
2000:000:0:2::35 on interface ens192
DEBUG HOOKS_CALLOUTS_BEGIN begin all callouts for hook pkt6_receive
DEBUG HOOKS_CALLOUTS_COMPLETE completed callouts for hook pkt6_receive
(total callouts duration: 8.374 ms)
DEBUG DHCPSRV_SUBNET6_SELECT_BY_INTERFACE_ID_FAILED Failed to select
any subnet using interface-id: type=00018, len=00004: 00:00:00:49
DEBUG DHCPSRV_CFGMGR_SUBNET6 retrieved subnet 2000:000:30:8::/64 for
address hint 2000:000:30:8::2
DEBUG DHCP6_SUBNET_SELECTED duid=[00:xx:xx:01:00:0c:42:xx:xx:xx],
tid=0xef12f5: the subnet with ID 1 was selected for client assignments
DEBUG HOSTS_CFG_GET_ONE_SUBNET_ID_IDENTIFIER get one host with IPv6
reservation for subnet id 1, identified by hwaddr=000C42BCCE1E
DEBUG HOSTS_CFG_GET_ALL_IDENTIFIER get all hosts with reservations
using identifier: hwaddr=000C42BCCE1E
DEBUG HOSTS_CFG_GET_ALL_IDENTIFIER_COUNT using identifier
hwaddr=000C42BCCE1E, found 0 host(s)
DEBUG HOSTS_CFG_GET_ONE_SUBNET_ID_IDENTIFIER_NULL host not found using
subnet id 1 and identifier hwaddr=000C42BCCE1E
DEBUG HOSTS_MGR_ALTERNATE_GET6_SUBNET_ID_IDENTIFIER get one host with
IPv6 reservation for subnet id 1, identified by hwaddr=000C42BCCE1E
DEBUG HOSTS_MGR_ALTERNATE_GET6_SUBNET_ID_IDENTIFIER_NULL host not
found using subnet id 1 and identifier hwaddr=000C42BCCE1E
DEBUG HOSTS_CFG_GET_ONE_SUBNET_ID_IDENTIFIER get one host with IPv6
reservation for subnet id 1, identified by duid=00030001000C42BCCE1E
DEBUG HOSTS_CFG_GET_ALL_IDENTIFIER get all hosts with reservations
using identifier: duid=00030001000C42BCCE1E
DEBUG HOSTS_CFG_GET_ALL_IDENTIFIER_COUNT using identifier
duid=00030001000C42BCCE1E, found 0 host(s)
DEBUG HOSTS_CFG_GET_ONE_SUBNET_ID_IDENTIFIER_NULL host not found using
subnet id 1 and identifier duid=00030001000C42BCCE1E
DEBUG HOSTS_MGR_ALTERNATE_GET6_SUBNET_ID_IDENTIFIER get one host with
IPv6 reservation for subnet id 1, identified by
duid=00030001000C42BCCE1E
DEBUG HOSTS_MGR_ALTERNATE_GET6_SUBNET_ID_IDENTIFIER_NULL host not
found using subnet id 1 and identifier duid=00030001000C42BCCE1E
DEBUG DHCP6_CLASS_ASSIGNED duid=[00:xx:xx:01:00:0c:42:xx:xx:xx],
tid=0xef12f5: client packet has been assigned to the following
class(es): UNKNOWN
DEBUG DHCP6_PROCESS_IA_NA_EXTEND duid=[00:xx:xx:01:00:0c:42:xx:xx:xx],
tid=0xef12f5: extending lease lifetime for IA_NA option with iaid=11
DEBUG DHCPSRV_MYSQL_GET_IAID_SUBID_DUID obtaining IPv6 leases for IAID
11, Subnet ID 1, DUID 00:xx:xx:01:00:0c:42:xx:xx:xx, lease type 0
DEBUG ALLOC_ENGINE_V6_RENEW_REMOVE_RESERVED
duid=[00:xx:xx:01:00:0c:42:xx:xx:xx], tid=0xef12f5: checking if
existing client's leases are reserved for another client
DEBUG HOSTS_CFG_GET_ONE_SUBNET_ID_ADDRESS6 get one host with
reservation for subnet id 1 and having IPv6 address 2000:000:30:8::1
DEBUG HOSTS_CFG_GET_ALL_SUBNET_ID_ADDRESS6 get all hosts with
reservations for subnet id 1 and IPv6 address 2000:000:30:8::1
DEBUG HOSTS_CFG_GET_ALL_SUBNET_ID_ADDRESS6_COUNT using subnet id 1 and
address 2000:000:30:8::1, found 0 host(s)
DEBUG HOSTS_CFG_GET_ONE_SUBNET_ID_ADDRESS6_NULL host not found using
subnet id 1 and address 2000:000:30:8::1
DEBUG HOSTS_MGR_ALTERNATE_GET6_SUBNET_ID_ADDRESS6 trying alternate
sources for host using subnet id 1 and IPv6 address 2000:000:30:8::1
DEBUG ALLOC_ENGINE_V6_EXTEND_LEASE
duid=[00:xx:xx:01:00:0c:42:xx:xx:xx], tid=0xef12f5: extending lifetime
of the lease type IA_NA, address 2000:000:30:8::1
DEBUG HOOKS_CALLOUTS_BEGIN begin all callouts for hook lease6_renew
DEBUG HOOKS_CALLOUTS_COMPLETE completed callouts for hook lease6_renew
(total callouts duration: 1.233 ms)
DEBUG DHCPSRV_MYSQL_UPDATE_ADDR6 updating IPv6 lease for address
2000:000:30:8::1, lease type 0
INFO  DHCP6_LEASE_RENEW duid=[00:xx:xx:01:00:0c:42:xx:xx:xx],
tid=0xef12f5: lease for address 2000:000:30:8::1 and iaid=11 has been
allocated
DEBUG DHCP6_PROCESS_IA_PD_EXTEND duid=[00:xx:xx:01:00:0c:42:xx:xx:xx],
tid=0xef12f5: extending lease lifetime for IA_PD option with iaid=11
DEBUG DHCPSRV_MYSQL_GET_IAID_SUBID_DUID obtaining IPv6 leases for IAID
11, Subnet ID 1, DUID 00:xx:xx:01:00:0c:42:xx:xx:xx, lease type 2
DEBUG ALLOC_ENGINE_V6_RENEW_REMOVE_RESERVED
duid=[00:xx:xx:01:00:0c:42:xx:xx:xx], tid=0xef12f5: checking if
existing client's leases are reserved for another client
DEBUG HOSTS_CFG_GET_ONE_SUBNET_ID_ADDRESS6 get one host with
reservation for subnet id 1 and having IPv6 address 2000:000:800::
DEBUG HOSTS_CFG_GET_ALL_SUBNET_ID_ADDRESS6 get all hosts with
reservations for subnet id 1 and IPv6 address 2000:000:800::
DEBUG HOSTS_CFG_GET_ALL_SUBNET_ID_ADDRESS6_COUNT using subnet id 1 and
address 2000:000:800::, found 0 host(s)
DEBUG HOSTS_CFG_GET_ONE_SUBNET_ID_ADDRESS6_NULL host not found using
subnet id 1 and address 2000:000:800::
DEBUG HOSTS_MGR_ALTERNATE_GET6_SUBNET_ID_ADDRESS6 trying alternate
sources for host using subnet id 1 and IPv6 address 2000:000:800::
DEBUG ALLOC_ENGINE_V6_EXTEND_LEASE
duid=[00:xx:xx:01:00:0c:42:xx:xx:xx], tid=0xef12f5: extending lifetime
of the lease type IA_PD, address 2000:000:800::
DEBUG HOOKS_CALLOUTS_BEGIN begin all callouts for hook lease6_renew
DEBUG HOOKS_CALLOUTS_COMPLETE completed callouts for hook lease6_renew
(total callouts duration: 1.437 ms)
DEBUG DHCPSRV_MYSQL_UPDATE_ADDR6 updating IPv6 lease for address
2000:000:800::, lease type 2
INFO  DHCP6_PD_LEASE_RENEW duid=[00:xx:xx:01:00:0c:42:xx:xx:xx],
tid=0xef12f5: lease for prefix 2000:000:800::/56 and iaid=11 has been
allocated
DEBUG DHCP6_CLASS_UNCONFIGURED duid=[00:xx:xx:01:00:0c:42:xx:xx:xx],
tid=0xef12f5: client packet belongs to an unconfigured class:
permit-duid
DEBUG HOOKS_CALLOUTS_BEGIN begin all callouts for hook leases6_committed
DEBUG HOOKS_CALLOUTS_COMPLETE completed callouts for hook
leases6_committed (total callouts duration: 1.379 ms)
DEBUG DHCP6_PACKET_SEND duid=[00:xx:xx:01:00:0c:42:xx:xx:xx],
tid=0xef12f5: trying to send packet REPLY (type 7) from
[2000:000:0:2::35]:547 to [2000:000:20:1::17]:547 on interface ens192
ERROR DHCP6_PACKET_SEND_FAIL failed to send DHCPv6 packet: Interface
ens192/2 does not have any suitable IPv6 sockets open.
DEBUG DHCP6_BUFFER_WAIT_SIGNAL signal received while waiting for next packet


More information about the Kea-users mailing list