[Kea-users] kea-dhcp4 version1.8 , unable to send response packet

Stefan Berger Stefan.Berger at wvnet.eu
Thu Mar 25 13:56:13 UTC 2021


Hi all,

i have upgraded a kea-dhcp4 setup from version 1.6 to 1.8
it's a simple setup with a shared subnet and two normal subnets.
I'm using the premium hooks.

The Server is receiving requests from multiple cisco routers which are
accting as forwarders (ip helper - convert request to unicast and send it to server)
The client requests are transmitted over a GRE tunnel which terminates directly on the Server

KEA DHCP4 itself is listening on Loopbackdevice (172.16.160.248)

Server Information
-------------------------
OEL 7
Kernel 3.10.0-862.11.6.el7.x86_64
Kea 1.8 with premium hooks


INTERFACE-CONFIG
--------------------------
"interfaces-config": {
        "interfaces": [ "lo/172.16.160.248" ],
        "dhcp-socket-type": "udp"
    },

This Setup was working fne under version 1.6 but with 1.8 the server isn't able to send packets back
to client.

The log shows that everything is working fine until a response should be sent to client
": failed to send DHCPv4 packet: Interface tun1/8 does not have any suitable IPv4 sockets open."

2021-03-25 14:09:58.577 DEBUG [kea-dhcp4.packets/4784.139911471499392] DHCP4_PACKET_SEND [hwtype=1 f4:cf:e2:98:75:e1], 
cid=[00:63:69:73:63:6f:2d:66:34:63:66:2e:65:32:39:38:2e:37:35:65:31:2d:47:69:30:2f:31:2e:39:30:30], tid=0xb4b: try
ing to send packet DHCPOFFER (type 2) from 172.16.160.248:67 to 192.168.200.254:67 on interface lo

2021-03-25 14:09:58.577 ERROR [kea-dhcp4.packets/4784.139911471499392] DHCP4_PACKET_SEND_FAIL
 [hwtype=1 f4:cf:e2:98:75:e1], cid=[00:63:69:73:63:6f:2d:66:34:63:66:2e:65:32:39:38:2e:37:35:65:31:2d:47:69:30:2f:31:2e:39:30:30], tid=0xb4b
: failed to send DHCPv4 packet: Interface tun1/8 does not have any suitable IPv4 sockets open.

Any hints what could be wrong ?


FULL-LOG
------------------
2021-03-25 14:09:58.573 DEBUG [kea-dhcp4.packets/4784.139911471499392] DHCP4_BUFFER_RECEIVED 
received buffer from 192.168.200.254:67 to 172.16.160.248:67 over interface lo
2021-03-25 14:09:58.573 DEBUG [kea-dhcp4.packets/4784.139911471499392] DHCP4_PACKET_RECEIVED
 [hwtype=1 f4:cf:e2:98:75:e1], cid=[00:63:69:73:63:6f:2d:66:34:63:66:2e:65:32:39:38:2e:37:35:65:31:2d:47:69:30:2f:31:2e:39:30:30], tid=0xb4b:
DHCPDISCOVER (type 1) received from 192.168.200.254 to 172.16.160.248 on interface lo
2021-03-25 14:09:58.573 DEBUG [kea-dhcp4.callouts/4784.139911471499392] HOOKS_CALLOUTS_BEGIN
 begin all callouts for hook pkt4_receive
2021-03-25 14:09:58.573 DEBUG [kea-dhcp4.callouts/4784.139911471499392] HOOKS_CALLOUTS_COMPLETE
 completed callouts for hook pkt4_receive (total callouts duration: 0.027 ms)
2021-03-25 14:09:58.573 DEBUG [kea-dhcp4.packets/4784.139911471499392] DHCP4_SUBNET_SELECTED
 [hwtype=1 f4:cf:e2:98:75:e1], cid=[00:63:69:73:63:6f:2d:66:34:63:66:2e:65:32:39:38:2e:37:35:65:31:2d:47:69:30:2f:31:2e:39:30:30], tid=0xb4b:
 the subnet with ID 391001 was selected for client assignments
2021-03-25 14:09:58.573 DEBUG [kea-dhcp4.callouts/4784.139911471499392] HOOKS_CALLOUTS_BEGIN
 begin all callouts for hook host4_identifier
2021-03-25 14:09:58.574 DEBUG [kea-dhcp4.flex-id-hooks/4784.139911471499392] FLEX_ID_EXPRESSION_EVALUATED 
Expression evaluated for packet to "" (size: 0)
2021-03-25 14:09:58.574 DEBUG [kea-dhcp4.callouts/4784.139911471499392] HOOKS_CALLOUTS_COMPLETE
 completed callouts for hook host4_identifier (total callouts duration: 0.239 ms)
2021-03-25 14:09:58.575 DEBUG [kea-dhcp4.dhcp4/4784.139911471499392] DHCP4_CLASS_ASSIGNED 
[hwtype=1 f4:cf:e2:98:75:e1], cid=[00:63:69:73:63:6f:2d:66:34:63:66:2e:65:32:39:38:2e:37:35:65:31:2d:47:69:30:2f:31:2e:39:30:30], tid=0xb4b: cl
ient packet has been assigned to the following class(es): UNKNOWN
2021-03-25 14:09:58.575 DEBUG [kea-dhcp4.dhcp4/4784.139911471499392] DHCP4_CLASS_ASSIGNED
 [hwtype=1 f4:cf:e2:98:75:e1], cid=[00:63:69:73:63:6f:2d:66:34:63:66:2e:65:32:39:38:2e:37:35:65:31:2d:47:69:30:2f:31:2e:39:30:30], tid=0xb4b: cl
ient packet has been assigned to the following class(es): ALL, VENDOR_CLASS_ciscopnp, UNKNOWN
2021-03-25 14:09:58.575 DEBUG [kea-dhcp4.alloc-engine/4784.139911471499392] ALLOC_ENGINE_V4_OFFER_NEW_LEASE 
allocation engine will try to offer new lease to the client [hwtype=1 f4:cf:e2:98:75:e1], cid=[00:63:69:73:63:6f:2d:66:34:63:
66:2e:65:32:39:38:2e:37:35:65:31:2d:47:69:30:2f:31:2e:39:30:30], tid=0xb4b
2021-03-25 14:09:58.576 DEBUG [kea-dhcp4.callouts/4784.139911471499392] HOOKS_CALLOUTS_BEGIN
 begin all callouts for hook lease4_select
2021-03-25 14:09:58.576 DEBUG [kea-dhcp4.callouts/4784.139911471499392] HOOKS_CALLOUTS_COMPLETE
 completed callouts for hook lease4_select (total callouts duration: 0.060 ms)
2021-03-25 14:09:58.577 INFO  [kea-dhcp4.leases/4784.139911471499392] DHCP4_LEASE_ADVERT
 [hwtype=1 f4:cf:e2:98:75:e1], cid=[00:63:69:73:63:6f:2d:66:34:63:66:2e:65:32:39:38:2e:37:35:65:31:2d:47:69:30:2f:31:2e:39:30:30], tid=0xb4b: lea
se 192.168.200.1 will be advertised
2021-03-25 14:09:58.577 DEBUG [kea-dhcp4.callouts/4784.139911471499392] HOOKS_CALLOUTS_BEGIN 
begin all callouts for hook pkt4_send
2021-03-25 14:09:58.577 DEBUG [kea-dhcp4.callouts/4784.139911471499392] HOOKS_CALLOUTS_COMPLETE
 completed callouts for hook pkt4_send (total callouts duration: 0.024 ms)
2021-03-25 14:09:58.577 DEBUG [kea-dhcp4.packets/4784.139911471499392] DHCP4_PACKET_SEND
 [hwtype=1 f4:cf:e2:98:75:e1], cid=[00:63:69:73:63:6f:2d:66:34:63:66:2e:65:32:39:38:2e:37:35:65:31:2d:47:69:30:2f:31:2e:39:30:30], tid=0xb4b: try
ing to send packet DHCPOFFER (type 2) from 172.16.160.248:67 to 192.168.200.254:67 on interface lo
2021-03-25 14:09:58.577 ERROR [kea-dhcp4.packets/4784.139911471499392] DHCP4_PACKET_SEND_FAIL
 [hwtype=1 f4:cf:e2:98:75:e1], cid=[00:63:69:73:63:6f:2d:66:34:63:66:2e:65:32:39:38:2e:37:35:65:31:2d:47:69:30:2f:31:2e:39:30:30], tid=0xb4b
: failed to send DHCPv4 packet: Interface tun1/8 does not have any suitable IPv4 sockets open.


SUBNET-CONFIG
---------------------

"shared-networks": [
            {
                        "name": "TEST-NET-1",
                        "subnet4": [
                            {
                                "subnet": "192.168.202.0/24",
                                "id": 391002,
                                "match-client-id": false,
                                "pools": [ 
                                            { "pool": "192.168.202.1 - 192.168.202.100" },
                                            { "pool": "192.168.202.200 - 192.168.202.220" }
                                ],
            
                                "option-data": [
                                    {
                                        "name": "routers",
                                        "data": "192.168.202.254"
                                    }
                                ],
            
                                "relay": {
                                            "ip-address": "192.168.202.254"
                                }
                            },
    
                            {
                                "subnet": "192.168.203.0/24",
                                "id": 391003,
                                "match-client-id": false,
                                "pools": [ 
                                            { "pool": "192.168.203.1 - 192.168.203.100" },
                                            { "pool": "192.168.203.200 - 192.168.203.220" }
                                ],
            
                                "option-data": [
                                    {
                                        "name": "routers",
                                        "data": "192.168.203.254"
                                    }
                                ],
            
                                "relay": {
                                            "ip-address": "192.168.203.254"
                                }
                            }
                        ]    
            }
            
    ],

    "subnet4": [
        {
            "subnet": "192.168.201.0/24",
            "id": 391000,
            "match-client-id": false,
            "pools": [ 
                        { "pool": "192.168.201.1 - 192.168.201.100" }
            ],
            
            "option-data": [
                {
                    "name": "routers",
                    "data": "192.168.201.254"
                },
                {
                    "name": "ntp-servers",
                    "data": "10.220.1.253"
                }
            ],
            
            "relay": {
                        "ip-address": "192.168.201.254"
            }
        },
        
        {
            "subnet": "192.168.200.0/24",
            "id": 391001,
            "match-client-id": false,
            "pools": [ 
                        { "pool": "192.168.200.1 - 192.168.200.100" }
            ],
            
            "option-data": [
                {
                    "name": "routers",
                    "data": "192.168.200.254"
                },
                {
                    "name": "ntp-servers",
                    "data": "10.220.1.253"
                }
            ],
            
            "relay": {
                        "ip-address": "192.168.200.254"
            }
        }
        
    ],

BR
Stefan


More information about the Kea-users mailing list