[Dnsmasq-discuss] Ignoring a set of MAC addresses
Simon Kelley
simon at thekelleys.org.uk
Sun Jul 8 20:16:23 BST 2007
Dermot Bradley wrote:
> In /etc/dnsmasq.conf I can use multiple lines of the form:
>
> dhcp-host=00:01:02:03:04:05,ignore
> dhcp-host=00:01:02:03:04:06,ignore
>
> to ignore a set of specific MAC addresses. Is there any easier way to do
> this? I'd like to have a set of maybe 40 or so MAC addresses to ignore
> but can't just do it based on vendor MAC prefix.
>
> The ideal solution would be some way to read a text file of MAC
> addresses to ignore (similar to /etc/ethers for static mappings).
You could put the MAC addresses, in the format given above (ie prefix
with "dhcp-host=" and suffix with ",ignore") into another file and read
it from the main configuration file with
conf-file=<path to my MAC addresses>
The next release will allow the guts of dhcp-host declarations to be put
in a file and read (or re-read on SIGHUP), so then it would be enough to
put
00:01:02:03:04:05,ignore
00:01:02:03:04:06,ignore
etc
into a file.
For completeness, if you could use a manufacturer prefix then something like
dhcp-mac=tobeignored,00:01:02:*:*:*
dhcp-ignore=tobeignored
would work.
Cheers,
Simon.
>
>
>
>
> Stirk, Lamont & Associates Ltd.
> Registered Address: Thomas Andrews House, Queens Road, Belfast, BT3 9DU
> Registered in Northern Ireland, Number: NI 47983. VAT Number: 832 2778 22
>
>
> _______________________________________________
> 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