Hello!
I'm using unbound with odhcpd on my router which was setup following the directions here:
[OpenWrt Wiki] Replacing dnsasq with odhcpd and unbound
As far as I can tell it's working well. However, I've recently attempted to set static IP addresses for the DHCP leases and that hasn't worked. Specifically, I've added static lease settings to /etc/config/dhcpd but they appear to be ignored. For example, I've set my PC to have a static IP and let its current lease expire but when the lease gets renewed the PC is not assigned the static IP.
/etc/config/dhcp
config dhcp 'lan'
option interface 'lan'
option start '100'
option limit '150'
option leasetime '24h'
option dhcpv4 'server'
option dhcpv6 'server'
option ra 'relay'
option ndp 'relay'
option force '1'
option dhcp_service '1'
list ntp '0.pool.ntp.org'
list ntp '1.pool.ntp.org'
config dhcp 'wan'
option interface 'wan'
option ignore '1'
config odhcpd 'odhcpd'
option maindhcp '1'
option leasefile '/var/lib/odhcpd/dhcp.leases'
option leasetrigger '/usr/lib/unbound/odhcpd.sh'
option loglevel '4'
config dhcp 'wan6'
option interface 'wan6'
option ignore '1'
option master '1'
option ra 'relay'
option dhcpv6 'relay'
option ndp 'relay'
config host
option name 'asus-ap'
option ip '192.168.0.3'
list mac '2C:FD:A1:XX:XX:XX'
Please help me figure out why my dhcp clients aren't being served the static IP addresses.
(Also, I've noticed that contrary to documentation there is no "DHCP" settings page in the LuCI>Network menu. Is this because I have removed dnsmasq and installed dhcpd, or because the docuementation I've seen is outdated?)
Thanks!