[Dnsmasq-discuss] [EXTERN] Re: dhcp-ignore with tags from ranges

Matthias Lay matthias.lay at securepoint.de
Mon Feb 19 08:55:36 UTC 2024


Am Sat, 17 Feb 2024 22:36:04 +0000
schrieb Simon Kelley <simon at thekelleys.org.uk>:

> On 16/02/2024 13:24, Matthias Lay via Dnsmasq-discuss wrote:
> > 
> > Hi List,
> > 
> > I am trying to set the *dhcp-ignore* option for a single dhcp-range
> > only. after reading the manpage my setup is like this:
> > 
> > dhcp-range=set:8,22.22.22.1,22.22.22.100
> > dhcp-ignore=tag:8,tag:!known
> > 
> > this doesnt seem to work. the tags are there and logged, but the
> > request is not ignored. it works without the "tag:8".
> > 
> > is this a timing problem? set:8 executed after the ignore handling?
> > any hint how this could be achieved otherwise?  
> 
> Yes, this is a timing problem: the workflow is
> 
> determine tags
> ignore is tags permit
> use tags to pick dhcp-range, and add tags from that range
> use new tag set to pick dhcp options.
> 
> does a simple
> 
> dhcp-range=tag:!known,22.22.22.1,22.22.22.100
> 
> not achieve what you want?

filtering for "known" in dhcp-range does exactly what i was trying to
achieve. I was trying to hard to use the ignore option ;)

thx for your help


> 
> Simon.
> > 
> > thx in advance
> > 
> > Matze
> > 
> > 
> > _______________________________________________
> > Dnsmasq-discuss mailing list
> > Dnsmasq-discuss at lists.thekelleys.org.uk
> > https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss
> >   
> 
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss




More information about the Dnsmasq-discuss mailing list