Class detection problem

Jeffrey Hutzelman jhutz at cmu.edu
Fri Dec 5 08:23:56 UTC 2008


--On Thursday, December 04, 2008 04:03:10 PM +0000 Simon Hobson 
<dhcp1 at thehobsons.co.uk> wrote:

> Bernardo Pita wrote:
>
>> subnet 10.197.0.83 netmask 255.255.255.255 { ignore booting; }
>>
>> class "test" {
>>     match pick-first-value (option dhcp-client-identifier, hardware);
>> }
>>
>> subclass "test" 1:00:16:92:3d:d2:08;
>> subclass "test" 1:00:1b:d7:02:44:17;
>>
>> shared-network share {
>>
>>     subnet 10.198.0.0 netmask 255.255.252.0 {
>>             option routers 10.198.0.1;
>>             pool {
>>                     range 10.198.0.5 10.198.3.254;
>>                     allow members of "test";
>>                     deny unknown clients;
>>             }
>>
>>     }
>>
>> }
>>
>> You can see two macs address in the class "test" and one pool in
>> 10.198.0.0 to them, but the DHCP says:
>>
>> dhcpd: DHCPDISCOVER from 00:1b:d7:02:44:17 via 10.198.0.1: network
>> share: no free leases
>> dhcpd: DHCPDISCOVER from 00:16:92:3d:d2:08 via 10.198.0.1: network
>> share: no free leases
>
> You've explicitly denied them from that pool : "deny unknown clients;"
> You don't need to do this as anything NOT matching class "test" will be
> implicitly denied.

To provide additional clarification...
"unknown clients" means specifically those clients for which there is no 
matching host declaration.  Since the configuration shown has no host 
declarations, _all_ clients are "unknown".

-- Jeffrey T. Hutzelman (N3NHS) <jhutz+ at cmu.edu>
   Carnegie Mellon University - Pittsburgh, PA






More information about the dhcp-users mailing list