Page MenuHomeVyOS Platform

kea DHCPv4: Using dummy interface fails to send responses
Closed, InvalidPublicBUG

Description

I configured a DHCP server to listen on a dummy interface:

interfaces {
    dummy dum0 {
        address 10.255.255.60/32
    }
}
service {
    dhcp-server {
        listen-address 10.255.255.60
    }
}

Whenever it received a request, it failed to respond with (the request came in via eth9):

DHCP4_PACKET_SEND_FAIL [hwtype=1 <mac>], cid=[no info], tid=xxx: failed to send DHCPv4 packet: Interface eth9/11 does not have any suitable IPv4 sockets open.

Setting the "outbound-interface": "use-routing" interfaces-config option resolves the problem, but it's not possible to make this happen using vyos configuration.

https://kea.readthedocs.io/en/kea-2.4.1/arm/dhcp4-srv.html#interface-configuration

Possible solutions:

  • Add the option whenever we currently set "dhcp-socket-type": "udp" (i.e. listen_address is defined)
  • Add the option whenever listen_address contains a dummy interface.
  • Add an explicit configuration option to allow the administrator to enable the option.

I'm happy to send a patch, but I'm not sure which option would be preferable.

Details

Version
1.5-stream-2025-Q2
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Event Timeline

Viacheslav triaged this task as Normal priority.Aug 15 2025, 8:24 AM

Nevermind, adding "use-routing" isn't sufficient; it doesn't handle all requests properly. I'm solving this by containerizing kea, so no need to half-fix the built-in version.