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

Re: dhcpd config to span subnets question



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.
> 
> -- 
> Thanks in advance for any help.
> Bill
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
> 
> 



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



Reply to: