Address from wrong pool

Siegenthaler Tina tina at ieu.uzh.ch
Fri Feb 5 11:56:42 UTC 2010


Dear list users

I have the following config file:


failover peer "DHCP-IEU" {
         primary;
         address 130.60.17.131;
         port 520;
         peer address 130.60.33.131;
         peer port 520;
         max-response-delay 60;
         max-unacked-updates 10;
         mclt 1800;
         split 128;
         load balance max seconds 5;
}

ddns-update-style none;
option domain-name-servers 130.60.128.3, 130.60.64.51;
option domain-name "uzh.ch";
authoritative;
log-facility local2;

host IEU_0024_L1 { hardware ethernet 00:00:aa:9d:26:79; }
host IEU_0025_L1 { hardware ethernet 00:10:83:41:ef:e4; }

class "IEU_0024_L1" { match hardware; }
class "IEU_0025_L1" { match hardware; }

subclass "IEU_0024_L1" 1:00:00:aa:9d:26:79;
subclass "IEU_0025_L1" 1:00:10:83:41:ef:e4;

subnet 130.60.33.32 netmask 255.255.255.224 {
         option routers 130.60.33.33;
         option broadcast-address 130.60.33.63;
	pool { allow members of "IEU_0024_L1" ; range 130.60.33.36; }
	pool { allow members of "IEU_0025_L1" ; range 130.60.33.37; }
         pool {
                 failover peer "DHCP-IEU";
                 deny dynamic bootp clients;
                 allow known-clients;
                 range 130.60.33.40 130.60.33.50;
         }
         default-lease-time 21600;
         max-lease-time 21600;
}


I'd expect that the hosts "IEU_0024_L1" and "IEU_0025_L1" would get  
the adresses from "their" single-IP pools, that is, 130.60.33.36 and  
130.60.33.37. Instead, they get an address from the "known-clients"  
pool (130.60.33.40 - 130.60.33.50). I understand that  those two hosts  
would be allowed to pull an address from both pools, their single-IP- 
pool (as they are members of the subclass allowed there), but also  
from the known-clients pool, since they are of course known-clients.  
How does dhcpd decide in such a case from which pool to assign an IP?  
Order in which they appear in the config (obvioulsy not, or it should  
work with that config...)?

Why such a configt? I'd like to assign some hosts a fixed IP, but I'd  
like it to be logged whenever they get a lease, so that's why I don't  
use the fixed-address statement. Other (in fact, most) hosts are to be  
assigned their IP dynamically (from the known-clients pool).



Thanks for any insights,

Tina









More information about the dhcp-users mailing list