[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Need help w/ dhcpd and shared-network option . . .



Jeff Vincent, 2001-Dec-11 17:16 -0700:
> Our test lab has 4 class C address blocks assigned to it that are all on
> the same wire (segment?) and we are finally getting around to installing
> a dhcp server.  We have a Debian-woody (testing) server up, but when I
> start it, it says:
> 
> Address range <subnet2>.201 to <subnet2>.254 not on net
> <subnet2>.0/255.255.252.0

Have you configured the interface?  This usually occurs because
the interface is not configured or is not up.

Also, I think your netmask is wrong.  A class C is 255.255.255.0

Also-also, I added two line to one of the subnets below in your
config.  You should add these and duplicate it for each subnet.
Since you are multinetting a single 'wire', it is important to
make sure the broadcasts are unique for each subnet, especially
for the dhcp service.  And, configuring the router is important.

> and then the server exits.  Here is my dhcpd.conf (specific addresses
> ommitted for security reasons):
> 
> shared-network TestLab {
> 	option routers <subnet4>.254;
> 	option ntp-servers <subnet4>.252 , <subnet4>.253;
> 	option domain-name-servers <subnet4>.252 , <subnet4>.253;
> 	option domain-name "<mydomain>";
> 
> 	subnet <subnet1>.0 netmask 255.255.252.0 {
 		range dynamic-bootp <subnet1>.201 <subnet1>.254;
		option broadcast <subnet1>.255;
		option router <subnet1>.1;
> 		}
> 	subnet <subnet2>.0 netmask 255.255.252.0 {
> 		range <subnet2>.201 <subnet2>.254;
> 		}
> 	subnet <subnet3>.0 netmask 255.255.252.0 {
> 		range <subnet3>.201 <subnet3>.254;
> 		}
> 	}
> 
> We statically allocate addresses 1-200 for <subnet1>, <subnet2>,
> <subnet3> and all addresses in <subnet4>.  We now want to put the upper
> 54 addresses of the first three subnets (e.g., 201-254) in the dhcp
> pool.  What am I doing wrong?  I can't find (or didn't understand) the
> correct use of the shared-network block.  
> 
> I also assume the netmask part of each subnet statement is the same
> netmask we set on each statically allocated machine.
> 
> Thanks for any help.
> 
> Jeff

cya...jc

-- 
Jeff Coppock		Systems Engineer
Diggin' Debian		Admin and User



Reply to: