Hello guys!
Is there a way to configure OpenWrt DHCP server to assign IP addresses for static leases from one IP subnet, for example 172.16.1.0, and for all dynamic (not configured) from another IP subnet, for example 172.17.1.0?
Router has both 172.16.1.1 and 172.17.1.1 IP addresses configured for the LAN bridge. It's all the same wired network, but with the different IP subnets.
Yes, I have static leases already, but I want to move dynamic leases to another subnet, which doesn't seems to be working with a straight forward configuration.
With this LAN configuration:
config interface 'lan'
option type 'bridge'
option ifname 'eth1.1'
option proto 'static'
option netmask '255.255.255.0'
list ipaddr '172.16.1.1'
list ipaddr '172.17.1.1'
Static lease working:
config host
option dns '1'
option name 'Admin'
option mac 'e0:cb:4e:f1:f1:f1'
option ip '172.16.1.11'
Static lease not working:
config host
option dns '1'
option name 'Admin'
option mac 'e0:cb:4e:f1:f1:f1'
option ip '172.17.1.11'
Looks like list of IP addresses is not supported by UCI for dnsmasq (dnsmasq itself has a full support of IP aliases though)