LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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-20-2009, 12:33 AM   #1
divyashree
Senior Member
 
Registered: Apr 2007
Location: bbsr,orissa,India
Distribution: RHEL5 ,RHEL4,CENT OS5,FEDORA,UBUNTU
Posts: 1,356

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, 03: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, 04:12 AM   #3
divyashree
Senior Member
 
Registered: Apr 2007
Location: bbsr,orissa,India
Distribution: RHEL5 ,RHEL4,CENT OS5,FEDORA,UBUNTU
Posts: 1,356

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 04:13 AM.
 
Old 05-17-2013, 09: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, 04:04 AM   #5
bloodstreetboy
Member
 
Registered: May 2012
Posts: 195
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, 10:07 AM   #6
hua
Member
 
Registered: Oct 2006
Location: Slovak Republic
Distribution: Slackware 13.37, 14.0
Posts: 396

Rep: Reputation: 49
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 08:00 AM
Unable to start DHCP server krytenuk1971 Linux - Networking 2 06-25-2006 04:44 PM
New to dhcp- can't get server to start- error mesgs. aquaboot Linux - Networking 4 09-22-2005 02:23 PM
router box - unable to configure DHCP server BrianNJ Linux - Networking 1 06-09-2004 08:11 AM
unable to obtain ip address from dhcp server (Fedora Core 1) zero79 Linux - Hardware 5 11-15-2003 02:42 PM


All times are GMT -5. The time now is 03:57 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration