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

2012-09-04 Thread richardvo...@gmail.com
On Tue, Sep 4, 2012 at 4:45 AM, Helmut Hullen  wrote:
> Hallo, Simon,
>
> Du meintest am 03.09.12:
>
>>> 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
>
>
> Additional question:
> When I have 2 NICs, and one of them uses "dhcp-host=...", how can I tell
> "dnsmasq" that all unlisted clients (which have no "dhcp-host"-line)
> must use the other NIC?

You'll have two dhcp-range lines, one for the addresses in each
subnet.  Have one dhcp-range match the "known" tag, and one match the
"!known" tag.


>
> Viele Gruesse!
> Helmut
>
> ___
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss@lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss

___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


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

2012-09-04 Thread Helmut Hullen
Hallo, Simon,

Du meintest am 03.09.12:

>> 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


Additional question:
When I have 2 NICs, and one of them uses "dhcp-host=...", how can I tell  
"dnsmasq" that all unlisted clients (which have no "dhcp-host"-line)  
must use the other NIC?

Viele Gruesse!
Helmut

___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


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

2012-09-04 Thread Jean-Baptiste Denis
On 09/03/2012 08:49 PM, Simon Kelley wrote:

> 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.

It was in the manpage.

"This allows dnsmasq to be configured to ignore requests from unknown
machines using --dhcp-ignore=tag:!known Ethernet addresses (but not
client-ids)"

I'm sorry for that :/ Thank you very much for the kind answer =)

Jean-Baptiste



___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


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

2012-09-03 Thread Simon Kelley

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.



___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


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

2012-09-03 Thread Jean-Baptiste Denis
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 ?

Regards,

Jean-Baptiste



___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss