Disable dynamic DHCP and serve only static leases

Try this script

#!/bin/sh
uci set dhcp.lan.dynamicdhcp=0
uci commit dhcp
service dnsmasq restart

Obviously dynamicdhcp=1 will enable it back.

1 Like