LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-29-2008, 05:40 AM   #1
vijaya_svk
Member
 
Registered: Nov 2007
Posts: 61

Rep: Reputation: 15
dhcpd server failed error


Hi
I am using Centos 5. I have downloaded dhcpd server rpm and installed in my system. I have two LAN ports. When i start the service i am getting FAILED.

[root@localhost ~]# service dhcpd start
Starting dhcpd: [FAILED]
[root@localhost ~]#

The configuration file is as below...
#
# DHCP Server Configuration file.
# see /usr/share/doc/dhcp*/dhcpd.conf.sample
#

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 203.122.63.152,203.122.63.154;
option log-servers 192.168.0.1;
option time-servers 192.168.0.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.2 192.168.0.254;
default-lease-time 864000;
max-lease-time 864000;

# 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;
}
}


I am unable to resolve this issue. Can anyone please help me to start the service.
 
Old 07-29-2008, 09:17 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
What do your logs indicate the problem is? [FAILED] tells us nothing, the logs should indicate if there's an issue with the config itself.
 
Old 07-29-2008, 09:45 AM   #3
checkmate3001
Member
 
Registered: Sep 2007
Location: Folsom, California
Distribution: Ubuntu, Mint, Debian, Suse
Posts: 307

Rep: Reputation: 32
Please post the syslog for the dhcp message.

Most likely it can't tell what eth to run on.

I don't know much about CentOS but on Debian you need something like
INTERFACES="eth1";
in the conf. file.

Also check to make sure you have all the semi-colons in the right places. That will cause an error too. Looks ok...
 
Old 07-29-2008, 09:58 AM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally Posted by checkmate3001 View Post
Please post the syslog for the dhcp message.

Most likely it can't tell what eth to run on.

I don't know much about CentOS but on Debian you need something like
INTERFACES="eth1";
in the conf. file.

Also check to make sure you have all the semi-colons in the right places. That will cause an error too. Looks ok...
Yeah, current config looks okay but a little mistype and it will tell you in the logs. DHCPD is pretty good about telling you what's wrong. That's what logs are for anyways, they're pointless if they don't tell you anything..
 
  


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
mysql error connect to server at 'localhost' failed pete44904 Linux - Server 10 11-23-2012 06:08 AM
dhcpd failed slackware07 Linux - Networking 3 05-18-2006 10:45 AM
Failed Error while restarting vsftp server winxandlinx Linux - Networking 2 05-16-2006 12:00 AM
Getting an error: Failed to start the X server Fasn8n Linux - General 5 02-09-2006 09:05 AM
online_update failed - ERROR(Media:connection failed)[Connect failed] rover SUSE / openSUSE 8 02-22-2005 07:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:09 PM.

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