[Dnsmasq-discuss] dnsmasq DHCP filter by circuit AND remote IDs

richardvoigt at gmail.com richardvoigt at gmail.com
Thu Apr 26 20:48:59 BST 2012


Use tag-if for boolean logic

dhcp-circuitid=set:circuitmatch,<circuit-id>
dhcp-remoteid=set:agentmatch,<remote-id>
tag-if=set:bothmatch,tag:circuitmatch,tag:agentmatch

On Thu, Apr 26, 2012 at 2:39 PM, David Dombrowsky
<david.dombrowsky at redlion.net> wrote:
> The man page for dnsmasq says
>
>
>
> “If an exact match is achieved between the circuit or agent ID and one
> provided by a relay agent, the network-id tag is set.”
>
>
>
> Which says to me that it’s remoteid OR circuitid will net the network ID for
> use with dhcp-range (et. al. ).  I need to match responses based on both
> circuitid and remoteid, and if I set both, it uses “OR” not “AND”.  Am I
> missing an option something?
>
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>



More information about the Dnsmasq-discuss mailing list