I am just coming from DD-WRT, with which I had configured easily dhcp and static leases via dnsmasq.
I am very excited discovering openWRT which seem to be more scalable, but I cannot just use a copy / pasted of my previous settings.
I have read https://openwrt.org/docs/guide-user/base-system/dhcp.dnsmasq but I am still stuck.
I set static leases in the web ui (sorry LuCI), in http://x.x.x.x/cgi-bin/luci/admin/network/dhcp# and I can find the settings in dsnmasq.conf, but they are not effective, even if dnsmasq is restarted, I do not understand why.
Even I do not understand why the syntax is not the same as I used with dd-wrt.
For example, my dnsmasq settings in the ddwrt web ui were :
===========
#Additional Dnsmasq Options
===========
#Disable NetBIOS over TCP/IP for microsoft clients with Dnsmasq
dhcp-option=vendor:MSFT,1,2i
dhcp-option=43,01:04:00:00:00:02
domain=tom
#if you want the router to append your domain on DNS request, put "expand-hosts" into the DNSMasq other options
expand-hosts
dhcp-range=192.168.1.116,192.168.1.130,255.255.255.0,24h
scanners 235-240
dhcp-host=FF:FF:FF:FF:FF:FF,192.168.1.235,canonscan,infinite
printers 230-235
dhcp-host=FF:FF:FF:FF:FF:28,192.168.1.232,brothercouleur,infinite
dhcp-host=FF:FF:FF:FF:FF:23,192.168.1.231,laserjet,infinite
dhcp-host=FF:FF:FF:FF:FF:8C,192.168.1.230,brother,infinite
nas 220-230
dhcp-host=FF:FF:FF:FF:FF:BC,192.168.1.225,nassalon4,infinite
dhcp-host=FF:FF:FF:FF:FF:BB,192.168.1.224,nassalon3,infinite
dhcp-host=FF:FF:FF:FF:FF:BA,192.168.1.223,nassalon2,infinite
dhcp-host=FF:FF:FF:FF:FF:B9,192.168.1.222,nassalon1,infinite
dhcp-host=FF:FF:FF:FF:FF:FF,192.168.1.221,nas1,infinite
dhcp-host=FF:FF:FF:FF:FF:B0,192.168.1.220,nas2,infinite
I have read that someone used /etc/ethers to specify satic addresses.
I see that some of my hosts use ip v6, and I don't know how it can interfere ...
I just need dnsmaq to set an ip range for dynamic DHCP, and static leases per mac address ... and it seem to be more complex that my previous experience. Any help or clues will be appréciated.

