Configuration question..

Glenn Satchell Glenn.Satchell at uniq.com.au
Tue Sep 12 18:05:33 UTC 2006


>Date: Tue, 12 Sep 2006 12:38:39 -0400
>From: "B. Cook" <bcook at poklib.org>
>To: dhcp-users at isc.org
>
>Glenn Satchell wrote:

snip
 
>> The file would start to look a bit like this:
>> 
>> #global options
>> 
>> group {
>>   option routers 0.0.0.0;
>>   host ... { }
>>   host ... { }
>> }
>> host ... { }
>> host ... { }
>> 
>> subnet 192.168.1.0 netmask 255.255.255.0 {
>>     option domain-name "adriance.poklib.org"; 
>>     option domain-name-servers 192.168.1.2;
>>     option netbios-name-servers 192.168.1.248;
>>     option netbios-node-type 8;
>>     #option netbios-node-type 4;
>>     option routers 192.168.1.3;
>>     #option routers 192.168.1.2;
>> 
>>     pool {
>>         deny unknown clients;
>>         range ...
>>         ...
>>     } # close pool
>> } # close subnet
>> 
>> subnet 10.0.0.0 netmask 255.255.255.128 {
>>     option ...
>>     range ...
>>     allow unknown clients;
>> }
>> 
>> You have authoritative in the global scope, so no need to repeat it in
>> subnet or pool scopes.
>> 
>> My two cents worth, hope it helps.
>> 
>> regards,
>> -glenn
>> --
>> Glenn Satchell       mailto:glenn.satchell at uniq.com.au  |  Heard about
>> Uniq Advances Pty Ltd           http://www.uniq.com.au  |  the new Unix
>> PO Box 70 Paddington NSW Australia 2021                 |  sports car?
>> tel:0409-458-580   tel:02-9380-6360   fax:02-9380-6416  |  The  rwx
>> 
>> 
>
>Ok,
>
>so something like this:
>
>http://poklib.org/~bcook/dhcpd.conf
>
>with this config I get a WARNING now when I restart my dhcpd..
>
>/usr/local/etc/rc.d/isc-dhcpd restart
>Stopping dhcpd.
>Starting dhcpd.
>Internet Systems Consortium DHCP Server V3.0.5rc2
>Copyright 2004-2006 Internet Systems Consortium.
>All rights reserved.
>For info, please visit http://www.isc.org/sw/dhcp/
>WARNING: Host declarations are global.  They are not limited to the 
>scope you declared them in.
>Wrote 0 deleted host decls to leases file.
>Wrote 0 new dynamic host decls to leases file.
>Wrote 82 leases to leases file.
>Listening on BPF/fxp0/00:e0:18:03:d0:3c/192.168.1/24
>Sending on   BPF/fxp0/00:e0:18:03:d0:3c/192.168.1/24
>Sending on   Socket/fallback/fallback-net
>
>and everything still seems normal..

The group and host statements are still defined inside the subnet. The
global scope means moving them to be outside the subnet and pool
definitions.

The hosts will still pick up subnet declarations for whichever subnet
they are in, based on the IP address that gets assigned. dhcpd can tell
if a request was sent by a relay and will assign an address from an
appropriate subnet.

regards,
-glenn
--
Glenn Satchell       mailto:glenn.satchell at uniq.com.au  |  Heard about
Uniq Advances Pty Ltd           http://www.uniq.com.au  |  the new Unix
PO Box 70 Paddington NSW Australia 2021                 |  sports car?
tel:0409-458-580   tel:02-9380-6360   fax:02-9380-6416  |  The  rwx


More information about the dhcp-users mailing list