matching class to pool

Adam Moffett adamlists at plexicomm.net
Fri Jul 2 21:05:54 UTC 2010


Hello,

I have a wireless AP that inserts option82 circuit-id and remote-id into 
DHCP requests.  What I'm trying to do is use a different pool for hosts 
connected to that AP.  Based on what I read in the man pages and some 
examples on the web I thought this would work, but it's clearly not 
working so I'm wondering what I did wrong.

If I uncomment "allow unknown-clients" in the pool then wireless clients 
start getting IPs, and the circuit-id in their lease matches what I have 
in the config here (which is just the MAC of the AP as you can see).  If 
I comment the "allow unknown-clients" then dhcpd says "DHCPDISCOVER from 
00:c0:9f:d1:1b:09 via 192.168.1.55: network Wireless: no free leases"

Can anyone enlighten me?  Thanks.

ddns-update-style none;
option domain-name "plexicomm.net";
option domain-name-servers 168.215.99.30, 168.215.99.20;
default-lease-time 600;
max-lease-time 7200;
log-facility local7;
stash-agent-options true;
authoritative;

shared-network "Wireless" {
   subnet 192.168.1.0 netmask 255.255.255.0 {
     option broadcast-address 192.168.1.255;
     option routers 192.168.1.1;
     option subnet-mask 255.255.255.0;

     class "OfficeAP" {
       match if option agent.circuit-id="a:0:3e:d4:60:73";
     }
     pool {
       allow members of "OfficeAP";
       #allow unknown-clients;
       range 192.168.1.160 192.168.1.170;
     }
   }
}




More information about the dhcp-users mailing list