LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-24-2003, 09:06 PM   #1
Johnsernickle
Member
 
Registered: Aug 2002
Posts: 71

Rep: Reputation: 15
Unhappy dhcpd makes me cry


I am trying to set up a DHCP server on my Red Hat linux 8.0 computer, and i just cant get it to work. i installed dhcpd, wrote my configuration file dhcpd.conf, and made dhcpd.leases. my dhcpd file comes out looking like this:

ddns-update-style ad-hoc;
ignore client-updates;
default lease-time 3600;
max lease-time 7200;
option domain-name-servers 207.172.3.8, 207.172.3.9;

subnet 192.168.0.0 netmask 255.255.255.0 {

range 192.168.0.128 192.168.0.255;
option routers 192.168.0.1;
option subnet-mask 255.255.255.0;
}

But every time it try to start dhcpd, it gives me this error:

no subnet delaration for start (0.0.0.0).
**Ignoring requests on start. If this is not
what you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface start is attached. **

not configured to listen on any interface!

I have eth0 and eth1 on this computer and is acting as a router to my dial up modem. i am trying to configure dhcpd for eth0. I have two Win2k computerson the eth0 network and a FreeBSD computer on the other. I would really aprriciate any help with this, its really got me stumped. Thanks in advance,

Peter

Last edited by Johnsernickle; 03-24-2003 at 09:09 PM.
 
Old 03-24-2003, 09:13 PM   #2
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
I don't think you can put those declarations outside of the subnet {stuff}

For instance:

Code:
ddns-update-style ad-hoc;
subnet 192.168.0.0 netmask 255.255.255.0 {

        option routers                  192.168.0.1;
        option subnet-mask              255.255.255.0;
        option domain-name-servers      123.123.123.123;
        range 192.168.0.10 192.168.0.140;
        default-lease-time 21600;
        max-lease-time 43200;
}
And then invoke it with:

/sbin/dhcpd eth0

After the card has been assigned to an IP on that subnet.

Cheers,

Finegan
 
Old 03-25-2003, 02:50 AM   #3
Darkl0rd
LQ Newbie
 
Registered: Mar 2003
Location: Netherlands
Posts: 15

Rep: Reputation: 0
you are able to put those declarations out of the subnet stuff, you can post them anywhere in your config file.

option domain-name "x.x";
option domain-name-servers x;
option time-servers x, x;
option netbios-name-servers x;
option netbios-node-type 8;
option lpr-servers xx;
option smtp-server see below;
option pop-server machinename/ip;
option log-servers machinename/ip;

ddns-update-style interim;
ddns-updates on;
ddns-domainname "yourname.here.com";
ddns-rev-domainname "in-addr.arpa";
update-static-leases on;

those are the GLOBAL options for your configuration, and now if you are going to work with pools / groups etc, you can specify
option routers IP.AD.DR.ESS which is quite handy of course if you have 2 gateway machines and you pool is for dhcp client machines which gets a router on your ADSL line for example and the server machines go out through the other gateway over the lease line.. pretty neat uh ?
 
Old 03-25-2003, 09:56 AM   #4
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Quote:
range 192.168.0.128 192.168.0.255;
Range extends into broadcast address (255). try 192.168.0.254
 
Old 03-25-2003, 04:30 PM   #5
Johnsernickle
Member
 
Registered: Aug 2002
Posts: 71

Original Poster
Rep: Reputation: 15
Thanks alot, everything is working now. I tried /etc/dhcpd start instead of /etc/dhcpd start eth0. Thanks for pointing out that i used the broadcast adress. im sure im going to have lots of fun with this. :o)...

Peter
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dhcpd subnet declaration problems in dhcpd.conf vcrispo Linux - Networking 6 07-15-2005 10:32 AM
Madwifi makes me cry....kernel headaches FilthMasterFlex Mandriva 2 04-16-2005 10:38 AM
DHCPD startup failure, mdk 9.2, dhcpd v3.0.1rc11 fuzzyworm Linux - Networking 1 02-14-2004 03:58 AM
automount daemon makes me cry, please help ! GIJoe Linux - Software 2 11-22-2003 06:16 AM
dhcpd.master or dhcpd.conf rickg Linux - Networking 0 04-11-2002 03:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration