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

Bastian Bittorf bittorf at bluebottle.com
Tue Oct 14 07:07:59 EDT 2014


* John Crispin <blogic at openwrt.org> [14.10.2014 12:36]:
> try this
> 
> config dhcp 'roaming'
>   option interface 'voyager'
>   option netmask '255.255.255.0'
>   option start 1
>   option limit 253

it does not work. this is my interface:

14: eth0.1 at eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc
noqueue state UP group default 
    link/ether fa:1a:67:00:02:74 brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.1/16 brd 192.168.255.255 scope global eth0.1
       valid_lft forever preferred_lft forever
    inet6 fe80::f81a:67ff:fe00:274/64 scope link 
       valid_lft forever preferred_lft forever

so a 192.168.0.1/16 - if i fire the above config, the script translates it to:
(syslog)
dnsmasq-dhcp[11598]: DHCP, IP range 192.168.0.1 -- 192.168.0.253, lease time 12h

this is not what i want.
i want, that the clients on router 8 gets e.g. a

192.168.8.x/24 and on router 44
192.168.44.x/24

this means we have a non-overlapping decentral but globally valid dhcp-service.
A laptop with a lease from router 8, can work on router 44 - because
every node has the some magic IP-address = gateway on wifi:

option dhcp_option="option:router,$router_ip,$dns_ip"

i know no way for now how to achieve this without the patch.

bye, bastian
_______________________________________________
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