[Dnsmasq-discuss] dhcp logging and dhcp-range static configuration

Simon Kelley simon at thekelleys.org.uk
Mon Sep 3 19:49:16 BST 2012


On 03/09/12 18:06, Jean-Baptiste Denis wrote:
> Hello everybody,
>
> I'm running the provided centos dnsmasq version 2.48, and I've got a
> question regarding logging of dhcp requests.
>
> I've configured a static dhcp-range to assign ip addresses to well know
> system using their hardware address.
>
> Something like the following :
>
> dhcp-range=192.168.0.1,static,255.255.255.0
> dhcp-host=net:x86_64,00:30:99:99:99:1C,node1,192.168.0.2
> ...
>
> The problem I've got is that my log file are full of unhonored dhcp
> requests (which is normal, since they don't have any dhcp-host entry in
> dnsmasq.conf) :
>
> DHCPDISCOVER(eth0) 00:30:98:87:65:f0 no address available
> ...
> ...
>
> Is there a way to prevent logging the DHCPDISCOVER request for
> unconfigured hardware address in dhcp-range static mode ?
>

Try

dhcp-ignore=!known

or possibly the old syntax

dhcp-ignore=#known

I can't remember if 2.48 is new enough for the first one.


Cheers,

Simon.





More information about the Dnsmasq-discuss mailing list