Cannot set static leases before activating DHCP

Hello,

My plan is to migrate pihole to openwrt.
at the moment I use my pihole for
DHCPv4
DNS,
unbound,
wireguard,
static leases,
and of course domain blocking.

my OpenWRT router I meanly use for gateway and portforwarding.
My plan was to first migrate all static ip leases and then swap the dhcp4 server.
but whenever I try to set a static lease I get this error:
image

should I install and activate "odhcpd" first, taking the risk of temporary messing up my static dhcp leases and accidentally having 2 dhcp servers in the network? or is there an other way?

isolate the openwrt device, with only the client required for setting it up ?

You can try manually adding the static leases to /etc/config/dhcp.

https://openwrt.org/docs/guide-user/base-system/dhcp#static_leases

Problem does not seem to be with the server being active or inactive; problem seems to be with the static address being outside the range configured in the (inactive) server.

I tried it, you can configure a static lease outside the DHCP's IP range.
But this was dnsmasq, and it was running.

thanks to you all,
I found out, on the lan interface I needed to set
"Use custom DNS servers" (it doesn't seem to do anything)
and then disable "ignore interface"
image
and without applying changes I could create the complete list of static leases.

then it took me about a year to find out how DHCP-options work to get DNS to work at all.

So now I have configured DHCP on OpenWrt and disabled on pi-hole.
and have to prepare for the next step.