I have a subnet 172.26.97.64/27, which consists of 32 IP addresses ranging from 172.26.97.64 to 172.26.97.95. The first and the last are reserved for network and broadcast addresses, plus the 172.26.97.65 for the router interface itself.
I want to configure DHCP to hand out IP addresses from 172.26.97.66 to 172.26.97.94 (total 29 addresses). Which is the correct start and limit?
It is hard to test because it always hands out addresses from the middle of the range. For example, by default start=100, limit=150, meaning 100-250 range, and you usually get 192.168.1.174.
You can test the values by invoking ipcalc.sh directly (which is otherwise used by /etc/init.d/dnsmasq to calculate the range). The format is ipcalc.sh network-ip mask-or-prefix start limit:
Another little documented feature is that you can actually specify a full IP address as start parameter, this avoids the need to manually calculate offsets: