[Dnsmasq-discuss] 1 IP for all requests

Geert Stappers stappers at stappers.nl
Mon Oct 14 08:13:24 BST 2019


On Fri, Oct 04, 2019 at 08:37:03AM +0200, john doe wrote:
> On 10/4/2019 1:25 AM, Geert Stappers wrote:
> > On Thu, Oct 03, 2019 at 06:01:17PM -0500, Carl Karsten wrote:
> >> On Thu, Oct 3, 2019 at 4:54 PM Geert Stappers wrote:
> >>> On Thu, Oct 03, 2019 at 03:52:35PM -0500, Carl Karsten wrote:
> >>>> I want to know if this is in spec, or needs out of spec hacks:
> >>>>
> >>>> For any dhcp client request, server gives the same IP.
> >>>>
> >>>> The use case: dnsmasq is serving on 1 interface, and a client will be
> >>>> directly connected to that interface - no hub/switch/vlan etc. So there can
> >>>> only be 1 device ever connected, and I want that device to have 10.1.2.3
> >>>> - even if I yank  it and plug in a 2nd device with a different mac etc.
> >>>> The device should get 10.1.2.3.
> >>>>
> >>>> Even if the previous lease has not expired.    which is where I suspect
> >>>> this gets sketchy.   But maybe the spec has a prevision for this.
> >>>>
> >>>
> >>> Quoting manual page of dnsmasq
> >>>
> >>>
> >>> --dhcp-range=[tag:<tag>[,tag:<tag>],][set:<tag>,]<start-addr>[,<end-addr>|<mode>][,<netmask>[,<broadcast>]][,<lease time>]
> >>>
> >>>
> >>>> I want to know if this is in spec, or needs out of spec hacks:
> >>>
> >>> Please let us, the mailinglist archive, know if
> >>>
> >>>     dhcp-range=10.1.2.3,10.1.2.3,255.255.255.248
> >>>
> >>> serves the request.
> >>
> >> What I don't know is how the lease comes into play
> >> when the 2nd machine comes on line.
> >
> 
> To always get the same Ip address regardless of the device you connect
> to the server you could try the following (untested):
> 
> dhcp-range=192.168.1.4,192.168.1.4,1m
 
It would be nice to share the test results.

Elaborating on how the "original problem" evoled would also be nice.


Groeten
Geert Stappers
-- 
Leven en laten leven



More information about the Dnsmasq-discuss mailing list