ignore hosts

Anthony R Fletcher arif at mail.nih.gov
Fri Dec 9 21:04:30 UTC 2011


On 09 Dec 2011 at 15:44:51, Chuck Anderson wrote:
> On Fri, Dec 09, 2011 at 03:02:21PM -0500, Anthony R Fletcher wrote:
> > We run a non-authoritative DHCP server, version 4.2.1, on a network
> > handing out IP addresses to certain hosts and we want to simply ignore
> > (and not log) the rest. My config file looks like:
> > 
> > # Subnet setup.
> > subnet 10.11.12.0 netmask 255.255.255.0
> > {
> >         option routers 10.11.12.1;
> >         option broadcast-address 10.11.12.255;
> >         option subnet-mask 255.255.255.0;
> > 
> > 	host host1 {
> > 		hardware ethernet 00:88:aa:43:00:8d;
> > 		fixed-address host1; }
> > 	}
> > 	#..... many others ....
> > }
> 
> All host statements are matched globally and should not be put inside
> a subnet block, as it can cause strange behavior by inheriting subnet
> options that aren't appropriate in other subnets.
> 

You are right, in our real dhcpd.conf, the host statements are global
and outside the subnet block.

> > How can I not log these messages for certain MACs or all unknown MACs?
> > 
> > I've tried a bunch of things like "deny unknown-clients;" but the hosts
> > just try again, often, and we log them every time.
> 
> ignore instead of deny.

I tried "ignore unknown-clients;" as a global statement and I still get
all those "DHCPDISCOVER...no free leases" messages for unknown MAC
addresses in the logs.

			Anthony



More information about the dhcp-users mailing list