DHCPd Config Error using NVUE?

In a demo environment I have setup a DHCP service (IPv4 only right now) and specified the correct interfaces I want it to run on, I can see in the run command being generated it’s including those, but when I plugin to one of those interfaces I am presented with the following error:

No subnet declaration for swp2 (no IPv4 addresses).
Feb 14 10:15:14 leaf3-1 dhcpd[23323]: ** Ignoring requests on swp2.  If this is not what
Feb 14 10:15:14 leaf3-1 dhcpd[23323]:    you want, please write a subnet declaration
Feb 14 10:15:14 leaf3-1 dhcpd[23323]:    in your dhcpd.conf file for the network segment
Feb 14 10:15:14 leaf3-1 dhcpd[23323]:    to which interface swp2 is attached. **

You can see my config here that’s auto generated by NVUE:

# Auto-generated by NVUE!
# Any local modifications will prevent NVUE from re-generating this file.
# md5sum: bb8751748aaffdfb66c2e95293e9478b
###############################################################################

authoritative;
option cumulus-provision-url code 239 = text;

subnet 10.1.10.0 netmask 255.255.255.0 {
    option domain-name-servers 1.1.1.1;
    option domain-name "removed-for.security";
    option routers 10.1.10.1;
    default-lease-time 200000;
    max-lease-time 200000;
    ping-check on;

    pool {
        range 10.1.10.100 10.1.10.199;
    }
}

# Statics
group {
    host server1 {
        hardware ethernet 44:38:39:00:01:7e;
        fixed-address 10.0.0.2;
    }
}

I am unsure why DHCPd is asking for interface specific declarations. Based on the docs, by specifying the interfaces via NVUE it would be my hope that NVUE would edit the configs so that those powers have any required declarations needed to work.

Ultimately DHCPd delivers DHCP requests from L3 interfaces.
So if swp2 is configured as a L3 interface, and it is not attached to a bridge this could be an expected output.

What does the output show for:

  • If using 5.x → ifquery br_default; ifquery swp2

  • If using 4.x → ifquery swp2; ifquery bridge

Hi everyone,

I am experiencing the same problem. Does a fix exist?

2024-04-08T13:21:52.490891+02:00 DemoHFTSender dhcpd[8129]: Wrote 0 leases to leases file.
2024-04-08T13:21:52.496182+02:00 DemoHFTSender dhcpd[8129]:
2024-04-08T13:21:52.496297+02:00 DemoHFTSender dhcpd[8129]: No subnet declaration for swp3 (no IPv4 addresses).
2024-04-08T13:21:52.496372+02:00 DemoHFTSender dhcpd[8129]: ** Ignoring requests on swp3.  If this is not what
2024-04-08T13:21:52.496441+02:00 DemoHFTSender dhcpd[8129]:    you want, please write a subnet declaration
2024-04-08T13:21:52.496517+02:00 DemoHFTSender dhcpd[8129]:    in your dhcpd.conf file for the network segment
2024-04-08T13:21:52.496595+02:00 DemoHFTSender dhcpd[8129]:    to which interface swp3 is attached. **
2024-04-08T13:21:52.496673+02:00 DemoHFTSender dhcpd[8129]:
2024-04-08T13:21:52.496746+02:00 DemoHFTSender dhcpd[8129]:
2024-04-08T13:21:52.496817+02:00 DemoHFTSender dhcpd[8129]: No subnet declaration for swp2 (no IPv4 addresses).
2024-04-08T13:21:52.496889+02:00 DemoHFTSender dhcpd[8129]: ** Ignoring requests on swp2.  If this is not what
2024-04-08T13:21:52.496959+02:00 DemoHFTSender dhcpd[8129]:    you want, please write a subnet declaration
2024-04-08T13:21:52.497032+02:00 DemoHFTSender dhcpd[8129]:    in your dhcpd.conf file for the network segment
2024-04-08T13:21:52.497103+02:00 DemoHFTSender dhcpd[8129]:    to which interface swp2 is attached. **
2024-04-08T13:21:52.497177+02:00 DemoHFTSender dhcpd[8129]:
2024-04-08T13:21:52.497252+02:00 DemoHFTSender dhcpd[8129]:
2024-04-08T13:21:52.497324+02:00 DemoHFTSender dhcpd[8129]: No subnet declaration for swp1 (no IPv4 addresses).
2024-04-08T13:21:52.497395+02:00 DemoHFTSender dhcpd[8129]: ** Ignoring requests on swp1.  If this is not what
2024-04-08T13:21:52.497471+02:00 DemoHFTSender dhcpd[8129]:    you want, please write a subnet declaration
2024-04-08T13:21:52.497542+02:00 DemoHFTSender dhcpd[8129]:    in your dhcpd.conf file for the network segment
2024-04-08T13:21:52.497616+02:00 DemoHFTSender dhcpd[8129]:    to which interface swp1 is attached. **

My config file which I also generated with NVUE.

# Auto-generated by NVUE!
# Any local modifications will prevent NVUE from re-generating this file.
# md5sum: 4178afe588309143cf1ea262d37804b0
###############################################################################

authoritative;
option cumulus-provision-url code 239 = text;
option domain-name-servers XXX.XXX.XXX.XXX;

subnet 10.1.10.0 netmask 255.255.255.0 {
    option domain-name-servers XXX.XXX.XXX.XXX;
    default-lease-time 3600;
    max-lease-time 3600;
    ping-check off;

    pool {
        range 10.1.10.100 10.1.10.199;
    }
}

When using ifquery br_default; ifquery swp2 I get:

auto br_default
iface br_default
        bridge-ports swp1 swp2 swp3
        hwaddress 9c:05:91:3d:20:fd
        bridge-vlan-aware yes
        bridge-pvid 1

auto swp2
iface swp2 inet dhcp

Same results for the swp1 and swp3.
Any advice how to fix this issue and distribute ip addresses via dhcp to the three connected devices?