LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-19-2009, 11:33 PM   #1
divyashree
Senior Member
 
Registered: Apr 2007
Location: Bangalore, India
Distribution: RHEL,SuSE,CentOS,Fedora,Ubuntu
Posts: 1,386

Rep: Reputation: 135Reputation: 135
Unable to start DHCP server


I tried everything in dhcpd.conf,but everytime it's failed to start.

This is what I did,if any error plz suggest..

Code:
#ddns-update-style interim;
ignore client-updates;

subnet 192.168.1.0 netmask 255.255.255.0 {

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

        option nis-domain               "domain.org";
        option domain-name              "pdk.rh5.server";
        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.1.1         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;
        #}
}
 
Old 06-20-2009, 02:22 AM   #2
megerdin
Member
 
Registered: Jul 2007
Location: London
Distribution: FC11,FC10,FC7,FC4,Centos 5.1,Ubuntu,Mandrake Linux,puppy.LinuxMint.Opensuse
Posts: 181

Rep: Reputation: 31
its very easy to recognize and solve ur problem, At the same time tried to start DHCPD and open a new tab and enter code follow.
Quote:
tail -f /var/log/messages | grep dhcpd
there must appear what's the error in ur configuration.
 
Old 06-20-2009, 03:12 AM   #3
divyashree
Senior Member
 
Registered: Apr 2007
Location: Bangalore, India
Distribution: RHEL,SuSE,CentOS,Fedora,Ubuntu
Posts: 1,386

Original Poster
Rep: Reputation: 135Reputation: 135
Quote:
Originally Posted by megerdin View Post
its very easy to recognize and solve ur problem, At the same time tried to start DHCPD and open a new tab and enter code follow.


there must appear what's the error in ur configuration.
Bro ,My problem is here ,for which I cannot rectify my server setup issues ,

http://www.linuxquestions.org/questi...ssages-733054/

Last edited by divyashree; 06-20-2009 at 03:13 AM.
 
Old 05-17-2013, 08:01 AM   #4
priteshverma
LQ Newbie
 
Registered: Feb 2012
Posts: 1

Rep: Reputation: Disabled
Thumbs up

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

subnet 192.168.1.0 netmask 255.255.255.0 {

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

option nis-domain "your_Domain_Name";
option domain-name "your_Domain_Name";
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.1.2 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;



Please try with this config file .....here your domain name should be like "example.com" and not be a machines FQDN,and DHCP server IP "192.168.1.1"
 
Old 05-25-2013, 03:04 AM   #5
bloodstreetboy
Member
 
Registered: May 2012
Posts: 201
Blog Entries: 3

Rep: Reputation: 37
Please mention your Linux distribution.

Are you getting any of these errors?
Quote:
Error 1004
The DHCP service failed to initialize the database. The following error occurred:
%%65535


Error 1014
The following problem occurred with the Jet database -1811: Jet database read or write operations failed. If the computer or database has just been upgraded, then this message can be safely ignored. If this message appears frequently, either there is not enough disk space to complete the operation or the database or backup database may be corrupt. To correct this problem, either free additional space on your hard disk or restore the database. After you restore the database, ensure that conflict detection is enabled in DHCP server properties. For information about restoring the database, see Help and Support Center. Additional Debug Information: JetRestore.


Error 1018
The DHCP service failed to restore the database. The following error occurred:
An error occurred while accessing the DHCP database. Look at the
DHCP server event log for more information on this error.


Error 1008
The DHCP service is shutting down due to the following error:
The service has returned a service-specific error code.


Error 7024
The DHCP Server service terminated with service-specific error 20013 (0x4E2D).

Error 1075

Error 1068
 
Old 05-25-2013, 09:07 AM   #6
hua
Member
 
Registered: Oct 2006
Location: Slovak Republic
Distribution: Slackware 14.2, current
Posts: 461

Rep: Reputation: 78
Don't you have a typo in the range part?
Quote:
range dynamic-bootp 192.168.1.2 192.168.0.254;
Shouldn't that be?:
range dynamic-bootp 192.168.1.2 192.168.1.254;

Hope it helps
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Unable to resolve hostname / IP assigned by DHCP server. rmvinodh123 Linux - Networking 1 10-15-2007 07:00 AM
Unable to start DHCP server krytenuk1971 Linux - Networking 2 06-25-2006 03:44 PM
New to dhcp- can't get server to start- error mesgs. aquaboot Linux - Networking 4 09-22-2005 01:23 PM
router box - unable to configure DHCP server BrianNJ Linux - Networking 1 06-09-2004 07:11 AM
unable to obtain ip address from dhcp server (Fedora Core 1) zero79 Linux - Hardware 5 11-15-2003 01:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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