LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-11-2017, 05:27 PM   #1
agnes222
LQ Newbie
 
Registered: Mar 2017
Posts: 1

Rep: Reputation: Disabled
I have a problem to start my dhcp server in ubuntu 12.04


There are my configuration:

sudo apt-get install isc-dhcp-server
// The installation is successfull
nano /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.21.2
netmask 255.255.255.0
network 192.168.21.0
gateway 192.168.21.254
nano /etc/dhcp/dhcpd.conf
authoritative;
ddns-update-style none;
default-lease-time 240;
max-lease-time 380;
subnet 192.168.21.0 netmask 255.255.255.0 {
range 192.168.21.30 192.168.21.70
option routers 192.168.21.1}
When i write "service isc-dhcp-server start" in "/etc/init.d", i have this error: "start: job failed to start" PLEASE HELP ME!!!!!
 
Old 03-12-2017, 10:55 AM   #2
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,001
Blog Entries: 3

Rep: Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632
Welcome to the forum.

It will help if you can put the configuration material inside [code] [/code] tags so that the whitespace is preserved. For what it's worth, it's possible for you to edit your post and add them in.

Running the DHCP daemon directly will give more information because the startup scripts will eat the error messages.
Try running it in the foreground while sending error information to stdout:

Code:
sudo /usr/sbin/dhcpd -df
That way you'll see the specific complaints it has with the configuration file.

See the manual page for the details of -d and -f

Code:
man dhcpd
 
  


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
[SOLVED] cannot start dhcp server cbider Linux - Networking 12 05-28-2014 08:13 PM
How do I perform maintenance on a master DNS/DHCP (BIND9/ISC-DHCP) Ubuntu server? Sniperm4n Linux - Server 2 09-09-2013 01:19 PM
Dhcp server does not start venkatmvc Linux - Networking 2 08-02-2011 07:55 PM
Baffling DNS from a DHCP server problem. Appears to be ignoring dhcp.conf royce2020 Linux - Networking 1 02-16-2010 12:40 PM
Problem on acquiring IP addr. on client from dhcp server through dhcp relay server haariseshu Linux - Server 5 08-10-2009 01:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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