The dhcp-host option has a complex syntax, and the man page doesn't
cover all the rules.

One aspect not mentioned is that the order of the arguments don't have
to match what it is specified. The man page indicates:
--dhcp-host=[<hwaddr>][,id:<client_id>|*][,set:<tag>][,<ipaddr>][,<hostname>][,<lease_time>][,ignore]

and yet it show the example:
--dhcp-host=lap,192.168.0.199

where hostname appears *before* IP address. Can any argument appear in
any oder? If not, what are the rules?

Generally, some of these arguments are used by Dnsmasq to identify the
client making the request to see if it matches this static rule, while
other arguments are used to define the static entry. The behavior of
dhcp-host may be clearer if you identified which arguments fall into
which of those groups.

Some rather useful behaviors, such as being able to assign a host name
to a MAC address, without assigning a static IP, are not covered by the
man page. There should be an expanded collection of examples that cover
things like this.

There should be a sentence or two describing each of these options (for
example, the format of lease_time is never defined, other than
mentioning the special cases of 'infinite 'and 'ignore.' This would also
be the place specify default values if the argument is omitted.


> The special option id:* means "ignore any client-id and use MAC
> addresses only." This is useful when a client presents a client-id
> sometimes but not others.

How is that different from specifying a mac address and no client-id?

 -Tom

-- 
Tom Metro
Venture Logic, Newton, MA, USA
"Enterprise solutions through open source."
Professional Profile: http://tmetro.venturelogic.com/

Reply via email to