[OpenWrt-Devel] [PATCH] [dnsmasq] support enforced start-IP, end-IP, netmask

Jo-Philipp Wich jow at openwrt.org
Tue Oct 14 12:45:01 EDT 2014


Hi.

> it does not work. this is my interface: [...]

Actually it should work just fine even without "option netmask" if you
specify the "start" as ipaddr:

# ipcalc.sh 192.168.0.1 16 192.168.8.1 252
IP=192.168.0.1
NETMASK=255.255.0.0
BROADCAST=192.168.255.255
NETWORK=192.168.0.0
PREFIX=16
START=192.168.8.1
END=192.168.8.251

So this should work:

config dhcp 'roaming'
  option interface 'voyager'
  option start 192.168.8.1
  option limit 252

~ Jow
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list