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

Re: dhcpd config to span subnets question [solved]



Thanks Mike,

No chance on the second server.  This network is inside an airplane, 
space alows for the server and the router only. I had thought about the 
aliasing, but did not want to do that unless absolutly necessary.

The answer was to use the folowing subnet declaration in the dhcpd.conf

subnet 172.21.0.0 netmask 255.255.0.0 {
	range	172.21.2.20 172.21.2.200;
}

This put the 0.0 and the 2.0 networks in the same class.  The server 
sees this as a valid config and starts just fine.  Clients are handed a 
class C 172.21.2.x IP from the servers class C 172.21.0.2 interface 
range. 

This is why I LOVE Linux.

Quoting Mike Egglestone <megglestone@heritage.sd57.bc.ca>:

> Hi,
> Is there no way you can throw an old box running dhcpd on your
> 172.21.2.0 subnet to serve out IP's?
> Otherwise, I don't know if what your asking is possible.
> Perhaps you could alias your eth0 to another IP on your
> 172.21.2.0 subnet. ???
> 
> cheers,
> Mike
> 
> Quoting Bill Bell <whbell@bell-cs.com>:
> 
> > Hello all,
> > 
> > I have a network with a special router which will forward DHCP
> requests 
> > from a client in one subnet to my Debian (up-to-date woody) server
> on a 
> > different segment.  My question is, how do I, (or can I), configure
> 
> > dhcpd.conf to allow the dhcpd to serve a 172.21.2.xx,255.255.255.0
> 
> > range from my eth0 interface which has an IP of 
> > 172.21.0.2,255.255.255.0?
> > 
> > dhcpd.conf
> > ----------
> > default-lease-time		1200;
> > max-lease-time			2400;
> > option subnet-mask		255.255.255.0;
> > option routers			172.21.2.1;
> > option domain-name-servers	172.21.0.2;
> > option domain-name		"mydomain.com";
> > subnet 172.21.2.0 netmask 255.255.255.0 {
> > 	range	172.21.2.20 172.21.2.200;
> > }
> > 
> > cnsu:~# ifconfig eth0
> >         -------------  
> > eth0      Link encap:Ethernet  HWaddr 00:40:53:00:E6:17
> >           inet addr:172.21.0.2  Bcast:172.21.0.255 
> Mask:255.255.255.0
> >           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
> >           RX packets:3555 errors:0 dropped:0 overruns:0 frame:0
> >           TX packets:3780 errors:0 dropped:0 overruns:0 carrier:0
> >           collisions:0 txqueuelen:100
> >           RX bytes:426535 (416.5 KiB)  TX bytes:759521 (741.7 KiB)
> >           Interrupt:11 Base address:0x6800
> > 
> > cnsu:~# dhcpd
> >         -----  (error when starting dhcpd server)
> > <<snip>>
> > No subnet declaration for eth0 (172.21.0.2).
> > Please write a subnet declaration in your dhcpd.conf file for the
> > network segment to which interface eth0 is attached.
> > exiting.
> > 

--
Bill


-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: