performance with 20000 classes; release a lease manually

Jerimiah Cole jcole at tbtc.net
Fri Jun 12 19:47:39 UTC 2009


David W. Hankins wrote:
> On Wed, Jun 10, 2009 at 10:48:48PM +0200, stefan novak wrote:
>> At the end of my post is a sample of my config as it is now.
>> I dont think that i can use subclasses, because i want to have fixed
>> ip adresses based on the cable modem mac.
> 
> There are many ways to peel an orange.  You may want to investigate
> spawning subclasses with lease limits rather than specifically
> allocating a specific pool for every customer (one pool with many
> subclasses versus many classes and many pools).

If I'm interpreting this correctly, the OP is trying to assign a fixed 
address to a client based on the agent info.  The only way I know to do 
this is with a class and a single IP pool.  For example:

class "test-01-03-07" {
   match if option agent.circuit-id = "test-01-03/Ethernet7:Vlan2";
}
pool {
   allow members of "test-01-03-07";
   range 10.8.255.252;
   deny dynamic bootp clients;
   filename "onttlrs_dual.cfg";
}

My interpretation of the class/sublclass docs translates the above to:

class "testlab" {
   match option agent.circuit-id;
}
subclass "testlab" "test-01-03/Ethernet7:Vlan2" {
   fixed-address 10.8.255.252;
   filename "onttlrs_dual.cfg";
}

Which the server rejects with "fixed-address parameter not allowed here."

I doesn't appear to be possible to have a pool with 'allow members of 
<subclass>' or such.

 > The DHCPv6 software allows a host record (with a fixed address for
 > example) to be matched based on an arbitrarily supplied option field
 > name and contents.  This is not currently, but could trivially be
 > extended to the DHCPv4 routines.

Where do I send the check? :)

Jerimiah



More information about the dhcp-users mailing list