LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-25-2014, 07:05 PM   #1
cbider
LQ Newbie
 
Registered: May 2010
Posts: 21

Rep: Reputation: 2
cannot start dhcp server


I'm running Sl-6 and tried using the default sample configuration for /etc/dhcp/dhcpd.conf that comes with the distro, no luck. Tried using a configuration that I found on an online howto and still no luck. Ran "chmod -R 777 /etc/dhcp/dhcpd.conf" and still no good. Tried both "service dhcpd restart" and "/etc/init.d/dhcpd restart" and both commands failed. Also tried rebooting. What am I missing? Any help would be greatly appreciated! CB
 
Old 05-26-2014, 12:02 AM   #2
GaWdLy
Member
 
Registered: Feb 2013
Location: San Jose, CA
Distribution: RHEL/CentOS/Fedora
Posts: 457

Rep: Reputation: Disabled
It would really help to know what "no luck" means. Is the service starting? Are there error messages? What's in the log files, etc.

You have all the info at your fingertips. If you don't give us More info, we can't help.
 
Old 05-26-2014, 12:06 AM   #3
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Oh, sorry to be awkward but don't chmod anything 777 ever!
 
2 members found this post helpful.
Old 05-28-2014, 11:43 AM   #4
stateless
Member
 
Registered: Jan 2013
Distribution: Debian
Posts: 166
Blog Entries: 1

Rep: Reputation: 4
Quote:
Originally Posted by cbider View Post
I'm running Sl-6 and tried using the default sample configuration for /etc/dhcp/dhcpd.conf that comes with the distro, no luck. Tried using a configuration that I found on an online howto and still no luck. Ran "chmod -R 777 /etc/dhcp/dhcpd.conf" and still no good. Tried both "service dhcpd restart" and "/etc/init.d/dhcpd restart" and both commands failed. Also tried rebooting. What am I missing? Any help would be greatly appreciated! CB
Paste in your dhcpd.conf. Also, tell us what you expect your DHCP server to be doing, or how you know that it is failing.
 
Old 05-28-2014, 01:00 PM   #5
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Check /var/log/syslog. Use the error message as a reason as to why DHCP doesn't start.

Most likely you are on a different subnet as specified in the example. You NIC needs to be on the same subnet as the subnet you are giving out leases.

jlinkels
 
Old 05-28-2014, 03:21 PM   #6
cbider
LQ Newbie
 
Registered: May 2010
Posts: 21

Original Poster
Rep: Reputation: 2
option domain-name "lab.com"; option domain-name-servers 8.8.8.8, 8.8.4.4; subnet 192.168.1.0 netmask 255.255.255.0 { range 192.168.1.101 192.168.1.254; option subnet-mask 255.255.255.0; option broadcast-address 192.168.1.255; option routers 192.168.1.100; option domain-name-servers home; } default-lease-time 600; max-lease-time 7200; authoritative
# the above is total content of /etc/dhcp/dhcpd.conf. When I issue "service dhcpd start" or /etc/init.d/dhcpd start" I get [FAILED]. Also, I want the server to provide networking info for vm's I want to install using Kickstart. The Kickstart thing is a whole nother ball of wax. The installs hang at the language selection screen so that the installs are not "fully automated". But thats for another thread. Thanks for responding. CB
 
Old 05-28-2014, 04:12 PM   #7
stateless
Member
 
Registered: Jan 2013
Distribution: Debian
Posts: 166
Blog Entries: 1

Rep: Reputation: 4
Yeah, does /var/log/syslog have anything helpful to report?
 
Old 05-28-2014, 04:39 PM   #8
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Put your config file contents in [.CODE]...[./CODE] tags. Use the hash mark in the toolbar above the edit window.

What is the IP address of your network.

Please be aware that in order for other members to be able to help you, the challenge is to put as much information as possible. This is not a game to see what is the minimum amount of information you can look up and post and see how many members try to guess a solution.

jlinkels
 
Old 05-28-2014, 06:33 PM   #9
cbider
LQ Newbie
 
Registered: May 2010
Posts: 21

Original Poster
Rep: Reputation: 2
The broadcast address is 192.168.1.255. I did look at /var/log/messages but am not sure what I should looking for. Also, jlinkels, I'm not sure what you mean by "Put your config file contents in [.CODE]...[./CODE] tags. Use the hash mark in the toolbar above the edit window." I don't get that, please explain. CB
 
Old 05-28-2014, 06:48 PM   #10
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Quote:
Originally Posted by cbider View Post
The broadcast address is 192.168.1.255.
Is it too much effort to write down the IP address and netmask as listed by ifconfig?
Quote:
Originally Posted by cbider View Post
I did look at /var/log/messages but am not sure what I should looking for.
Maybe any messages mentioning DHCP? It is the DHCP server that give you trouble, isn't it? Do you have a /var/log/syslog file? Not all systems have it, but in case you have one, look into it. Yes, for any messages mentioning DHCP.
Quote:
Originally Posted by cbider View Post
Also, jlinkels, I'm not sure what you mean by "Put your config file contents in [.CODE]...[./CODE] tags. Use the hash mark in the toolbar above the edit window." I don't get that, please explain. CB
Maybe one of the other members can point you to a guide how to use the editor window. I'd like to do it but I can't currently find one here on LQ. If no one answers, try to remember editor window, toolbar above it, hash mark. A hash mark is a character which looks like '#'. Compare it with all symbols on the toolbar.

jlinkels

Last edited by jlinkels; 05-28-2014 at 06:49 PM.
 
1 members found this post helpful.
Old 05-28-2014, 07:45 PM   #11
GaWdLy
Member
 
Registered: Feb 2013
Location: San Jose, CA
Distribution: RHEL/CentOS/Fedora
Posts: 457

Rep: Reputation: Disabled
Lord. Jlinkels is correct.

Type [code] paste your configuration into following space. Then type [/ code](without the extra space. That will keep the formatting of your configuration file.

Look in /var/log/messages for anything pertaining to dhcp. Paste it here. We'll help you. If you don't do that, we can't help.
 
Old 05-28-2014, 08:01 PM   #12
cbider
LQ Newbie
 
Registered: May 2010
Posts: 21

Original Poster
Rep: Reputation: 2
First, Thanks to all who replied. In case I was not clear, the issue was being unable to start the dhcp server. Intense googling revealed that I needed to insert a semicolon after the the "authoritative" declaration. Problem solved, dhcp server is now started. CB
 
Old 05-28-2014, 08:13 PM   #13
GaWdLy
Member
 
Registered: Feb 2013
Location: San Jose, CA
Distribution: RHEL/CentOS/Fedora
Posts: 457

Rep: Reputation: Disabled
Quote:
Originally Posted by cbider View Post
I'm running Sl-6 and tried using the default sample configuration for /etc/dhcp/dhcpd.conf that comes with the distro, no luck. Tried using a configuration that I found on an online howto and still no luck. Ran "chmod -R 777 /etc/dhcp/dhcpd.conf" and still no good. Tried both "service dhcpd restart" and "/etc/init.d/dhcpd restart" and both commands failed. Also tried rebooting. What am I missing? Any help would be greatly appreciated! CB
Nowhere here do I see "I tried to start it and it gave me '[FAILED]'"

So next time, state everything you can think of that pertains to the problem.

To wit:

"I am doing XYZ and when I do THIS, THIS happens, instead of THAT.

Here is what I've tried to do to resolve the issue:

1
2
3
4
5

**NOTE: you did this step well**

Here are the relevant config files:

Code:
Put your config files in CODE tags
Here are some of the log examples from /var/log/LOGNAME:

Blah. Blah. Blah."

Then we can do our best to try to help you out, rather than poking around in the dark. We might have seen a missing punctuation if we weren't staring at a blob of text, instead of a config file on a code block.
 
  


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
Unable to start DHCP server divyashree Linux - Server 5 05-25-2013 09:07 AM
DHCP server failed to start vuhuynh Linux - Newbie 4 08-26-2011 03:21 PM
Dhcp server does not start venkatmvc Linux - Networking 2 08-02-2011 07:55 PM
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

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

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