LinuxQuestions.org
Help answer threads with 0 replies.
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 06-07-2008, 02:04 PM   #1
misterhead
LQ Newbie
 
Registered: Jun 2008
Location: Florida
Distribution: Arch, Slackware 13.37
Posts: 6

Rep: Reputation: 0
Cannot get dhcpd to start. (PEBCAK related)


O.K. Ive been fighting with this for hours. I have a server machine with 2 NICs eth0 and eth1. It's running Red Hat Enterprise Linux ES3. Fresh install a few days ago with what I believe to be all the appropriate packages to serve DHCP with. My /etc/dhcpd.conf is simply the one I coppied from /usr/share/doc/dhcp-3.0.1 and looks like this

ddns-update-style interim;
ignore client-updates;

subnet 192.168.0.0 netmask 255.255.255.0 {

# --- default gateway
option routers 192.168.0.1;
option subnet-mask 255.255.255.0;

option nis-domain "domain.org";
option domain-name "domain.org";
option domain-name-servers 192.168.1.1;

option time-offset -18000; # Eastern Standard Time
# option ntp-servers 192.168.1.1;
# option netbios-name-servers 192.168.1.1;
# --- Selects point-to-point node (default is hybrid). Don't change this unless
# -- you understand Netbios very well
# option netbios-node-type 2;

range dynamic-bootp 192.168.0.128 192.168.0.254;
default-lease-time 21600;
max-lease-time 43200;

# we want the nameserver to appear at a fixed address
host ns {
next-server marvin.redhat.com;
hardware ethernet 12:34:56:78:AB:CD;
fixed-address 207.175.42.254;
}
}

-------------------------------------------------------------------------
(learned how to do that from another forum)
I read somewhere else that I needed to create /var/state/dhcp/dhcpd.leases, so I did. (had to create the DHCP folder in /var/state first because it wasn't there.

When I try to start dhcpd in debugging mode from the console with /usr/sbin/dhcpd -d -f, I get this...

Internet Systems Consortium DHCP Server V3.0.1
Copyright 2004 Internet Systems Consortium.
All rights reserved.
For info, please visit *******************
Wrote 0 deleted host decls to leases file.
Wrote 0 new dynamic host decls to leases file.
Wrote 0 leases to leases file.

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


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


Not configured to listen on any interfaces!

exiting.
-------------------------------------------------------------------------

I assigned that static IP to eth0 just so it could be activated without trying to pull an IP dynamically from somewhere. This is probably wrong, but this is my first time trying to set up a DHCP server, so...

I was also told I needed to do this from the console

route add -host 255.255.255.255 dev eth0

so I did. Having done that, I am not sure if I should be trying to use eth0 or eth1 to listen for DHCP requests from other machines, and of course, I don't know how to tell either one of them to do that either.

Please help

Last edited by misterhead; 06-07-2008 at 02:05 PM.
 
Old 06-27-2008, 05:08 PM   #2
misterhead
LQ Newbie
 
Registered: Jun 2008
Location: Florida
Distribution: Arch, Slackware 13.37
Posts: 6

Original Poster
Rep: Reputation: 0
Wow! 3 weeks and NOTHING!

You can't tell me that a forum DEDICATED to Linux, doesn't know anything about dhcp serving a small home network!

BUMP!
 
Old 07-03-2008, 09:02 AM   #3
misterhead
LQ Newbie
 
Registered: Jun 2008
Location: Florida
Distribution: Arch, Slackware 13.37
Posts: 6

Original Poster
Rep: Reputation: 0
Thumbs down Bump again.

Guess it never hurts to keep bumpin'.
 
Old 07-03-2008, 09:17 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,694

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
Have you googled or searched this website for any help?
Clue
Quote:
Not configured to listen on any interfaces!
Edit file
/etc/sysconfig/dhcp
Add the line for the desired interface:
DHCPARGS=eth0 (or eth1)
 
Old 07-03-2008, 09:46 AM   #5
grejon04
Member
 
Registered: Jun 2008
Posts: 43

Rep: Reputation: 15
What's the output from

service dhcpd start

? Just failure, or an error message? Same as the debug'd output?
 
  


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 Won't start. pdeman2 Linux - Networking 11 07-09-2012 05:52 PM
dhcpd no start finsh Linux - Networking 1 01-22-2006 09:35 AM
dhcpd can not start vito_huang Linux - Networking 2 02-15-2005 03:41 PM
dhcpd will not start odious1 Linux - Networking 1 04-08-2004 03:13 PM
Don't want dhcpd to start on startup rech Slackware 1 11-09-2003 12:05 PM

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

All times are GMT -5. The time now is 11:30 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