Address from wrong pool

Siegenthaler Tina tina at ieu.uzh.ch
Fri Feb 5 14:07:02 UTC 2010


>>>>
>>>
>>> There's no hard and fast rule about which pool a client can draw a  
>>> lease from when there is more than one valid pool. You need to  
>>> deny those two classes from the shared pool.
>>>
>>>
>>
>> Thanks. I was afraid it would be something like this. Pity, this  
>> would have been nice and easy, now the config will be much mor  
>> complicated to create from the database. But I'm sure I will get it  
>> to work...
>>
>> Tina
>>
>

Sorry, it's me again...

This is strange. If I use something like this:

subnet 130.60.79.192 netmask 255.255.255.192 {
         option routers 130.60.79.193;
         option broadcast-address 130.60.79.255;
         include "/include-dhcp-ieu/Y11Kpools-dhcp";
         pool {
                 failover peer "DHCP-IEU";
                 deny dynamic bootp clients;
                 allow known-clients;
                 deny members of "IEU_0057_L1";       <-----------------
                 range 130.60.79.200 130.60.79.220;
         }
         default-lease-time 21600;
         max-lease-time 21600;
}


it works.

If I use instead:

subnet 130.60.79.192 netmask 255.255.255.192 {
         option routers 130.60.79.193;
         option broadcast-address 130.60.79.255;
         include "/include-dhcp-ieu/Y11Kpools-dhcp";
         pool {
                 failover peer "DHCP-IEU";
                 deny dynamic bootp clients;
                 allow known-clients;
                 include "/include-dhcp-ieu/Y11Kdeny-dhcp";      
<----------------
                 range 130.60.79.200 130.60.79.220;
         }
         default-lease-time 21600;
         max-lease-time 21600;
}

where "include-dhcp-ieu/Y11Kdeny-dhcp" contains "deny members of  
"IEU_0057_L1";" dhcpd will exit with this error message:

/include-dhcp-ieu/Y11Kdeny-dhcp line 1: expecting allow/deny key
deny members
       ^
/include-dhcp-ieu/Y11Kdeny-dhcp line 1: expecting a parameter or  
declaration
deny members of "IEU_0057_L1";
                              ^
/etc/dhcpd.master line 33: /include-dhcp-ieu/Y11Kdeny-dhcp: bad parse.
		include "/include-dhcp-ieu/Y11Kdeny-dhcp"
                          ^

??

Tina




More information about the dhcp-users mailing list