Mike if I understand you correctly I need to add.
default-lease-time 7200;
max-lease-time 82400;
option subnet-mask 255.255.255.0;
option broadcast-address 12.234.130.255;
option routers 12.234.130.1;
option domain-name-servers ;
option domain-name "linuxpda.biz";
subnet 12.234.130.0 netmask 255.255.255.0{}

Now the question comes.  What happens if the subnet I'm on from my ISP
changes?  Gateway and subnet have changed twice since the @home fiasco.

James

Now to sorta answer my own question the dhcpd -q eth1 solved the problem
it starts and only looks at the internal nic.  Thanks loads for the help.

James

On Fri, 01 Mar 2002 07:34:21 -0500
Mike Rambo <[EMAIL PROTECTED]> wrote:

> James wrote:
> > 
> > All,
> >    So far all the man pages and How to's I've found (linuxdoc and
> > linuxgazette) talk about using a DHCP server OR using DHCP with your
> > cable/dsl modem.  What for the life of me I can't find is something
that
> > tells me how in the blue blazes to do both.  I'm on cable so that's
DHCP
> > and working fine.  I set up /etc/dhcpd.conf as follows.
> > 
> > #home dhcpd.conf file
> > default-lease-time 7200;
> > max-lease-time 82400;
> > option subnet-mask 255.255.255.0;
> > option broadcast-address 192.168.187.255;
> > option routers 192.168.187.1;
> > option domain-name-servers 166.90.172.7, 207.212.253.211;
> > option domain-name "linuxpda.biz";
> > 
> > subnet 192.168.187.0 netmask 255.255.255.0 {
> >    range 192.168.187.100 192.168.187.150;
> > }
> > 
> > Then when I run /etc/init.d/dchpd start (or restart) I get the error.
> > 
> > Listening on LPF/eth1/00:50:da:75:1a:f8/192.168.187.0
> > Sending on   LPF/eth1/00:50:da:75:1a:f8/192.168.187.0
> > No subnet declaration for eth0 (12.234.130.39).
> > Please write a subnet declaration for the network segment to
> > which interface eth0 is attached.
> > exiting.
> >                                                            [FAILED]
> > 
> > Ok I understand that somehow I need to bind dhcp-client to eth0 (my
> > external nic)  and dhcpd-server to my internal nic.  What I can't
figure
> > out how to do, is of course the binding.  My external IP not only
changes
> > IP number but subnet as well on many the occasion.  Any ideas?  I'm
fresh
> > out.  Thanks
> > 
> > James
> > 
> 
> The ISC DHCPd server configuration file *requires* a subnet
> declaration for all networks represented on the box even if
> addresses are not leased from some of them. Create an empty
> subnet declaration (no range statement) for the network to
> which eth0 is attached and you'll find the server daemon
> will start. This will not interfere with dhcpcd on eth0 for
> your cable/dsl setup because the declaration is empty -
> without the range statement there is no pool of address from
> which to lease. You can also, if you're worried about it,
> specify on the command line when you start DHCPd that it
> watch only eth1 if you want.
> 
> dhcpd -q eth1
> 
> Regards
> 
> 
> -- 
> Mike Rambo
> [EMAIL PROTECTED]
> 
> 

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to