[Dnsmasq-discuss] Setting multiple tags

kvaps kvapss at gmail.com
Tue Aug 4 15:41:45 BST 2020


Ok I found out that only 5 options are allowed before hostname
specified (no more), it can be any option: hwaddr, id:client_id,
set:tag or ipaddr but only the total amount of options should not
exceed 5 (or 6 if hostname non-specified)

examples:

5 options
---------
no hostname (works):
    --dhcp-host=02:00:ac:10:00:11,set:foo,set:bar,set:baz,172.16.0.10,infinite

with hostname (works):
    --dhcp-host=02:00:ac:10:00:11,set:foo,set:bar,set:baz,172.16.0.10,node1,infinite


6 options
---------
no hostname (works)
    --dhcp-host=02:00:ac:10:00:11,set:foo,set:bar,set:baz,set:poo,172.16.0.10,infinite

with hostname (error: bad DHCP host name)
    --dhcp-host=02:00:ac:10:00:11,set:foo,set:bar,set:baz,set:poo,172.16.0.10,node1,infinite

7 options
---------
no hostname (option ignored)
    --dhcp-host=02:00:ac:10:00:11,set:foo,set:bar,set:baz,set:poo,set:mee,172.16.0.10,infinite

with hostname (option ignored)
    --dhcp-host=02:00:ac:10:00:11,set:foo,set:bar,set:baz,set:poo,set:mee,172.16.0.10,node1,infinite

Is it a bug or expected behavior?

Best Regards,
Andrei Kvapil

On Tue, Aug 4, 2020 at 4:09 PM kvaps <kvapss at gmail.com> wrote:
>
> On Tue, Aug 4, 2020 at 1:36 PM Geert Stappers <stappers at stappers.nl> wrote:
> > Please try
> > }     --dhcp-host="02:00:ac:10:00:0a,id:*,set:foo:bar:baz,172.16.0.10,node1,infinite
> > and report back.
> >
>
> No, this format is not working, I also found:
>
> > The set:<tag> construct sets the tag whenever this --dhcp-host directive is in use. This can be used to selectively send DHCP options just for this host. More than one tag can be set in a --dhcp-host directive (but not in other places where "set:<tag>" is allowed).
>
> Unfortunately this is not working for me :-/
>
> Best Regards,
> Andrei Kvapil



More information about the Dnsmasq-discuss mailing list