LinuxQuestions.org
Review your favorite Linux distribution.
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 05-12-2013, 01:05 PM   #1
sudo_su
Member
 
Registered: Aug 2012
Location: Australia
Distribution: Redhat, CentOS
Posts: 59

Rep: Reputation: Disabled
Question dhcp service


Dear all

I am learning dhcp topic today, I installed dhcp via yum on fedora but can't start the service.

Code:
# rpm -qa | grep dhcp
dhcp-common-4.2.5-7.fc18.x86_64
dhcp-libs-4.2.5-7.fc18.x86_64
dhcp-4.2.5-7.fc18.x86_64
Code:
# service dhcp status
Redirecting to /bin/systemctl status  dhcp.service
dhcp.service
	  Loaded: error (Reason: No such file or directory)
	  Active: inactive (dead)
Code:
# service dhcp start
Redirecting to /bin/systemctl start  dhcp.service
Failed to issue method call: Unit dhcp.service failed to load: No such file or directory. See system logs and 'systemctl status dhcp.service' for details.
Code:
# chkconfig | grep d*

Note: This output shows SysV services only and does not include native
      systemd services. SysV configuration data might be overridden by native
      systemd configuration.

ebtables       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iscsi          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
iscsid         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
network        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
Hope these logs help you trace the problem.

Please advice.
 
Old 05-12-2013, 01:48 PM   #2
hda7
Member
 
Registered: May 2009
Distribution: Debian wheezy
Posts: 251

Rep: Reputation: 31
Have you checked to make sure the necessary configuration files are in place? It appears that dhcp is attempting to read a file that doesn't exist.
 
Old 05-12-2013, 02:25 PM   #3
sudo_su
Member
 
Registered: Aug 2012
Location: Australia
Distribution: Redhat, CentOS
Posts: 59

Original Poster
Rep: Reputation: Disabled
Dear hda,

yes I had copied the sample/example file from /usr/share/** to /etc/dhcp

but still not working :S
 
Old 05-12-2013, 02:26 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,326

Rep: Reputation: 3881Reputation: 3881Reputation: 3881Reputation: 3881Reputation: 3881Reputation: 3881Reputation: 3881Reputation: 3881Reputation: 3881Reputation: 3881Reputation: 3881
Quote:
Originally Posted by sudo_su View Post
Dear all
I am learning dhcp topic today, I installed dhcp via yum on fedora but can't start the service.

Hope these logs help you trace the problem.
Please advice.
Well, you don't say what version of Fedora, and you haven't actually posted ANY log files. And you installed DHCP, but did you bother to CONFIGURE IT??? Putting "how to configure dhcp on Linux" into Google pulls up lots:

http://www.linuxhomenetworking.com/w...he_DHCP_Server
 
Old 05-12-2013, 02:34 PM   #5
sudo_su
Member
 
Registered: Aug 2012
Location: Australia
Distribution: Redhat, CentOS
Posts: 59

Original Poster
Rep: Reputation: Disabled
Dear TB0ne,

Thank you for your reply. I am using fedora, below code shows the version.

Code:
cat /proc/version 
Linux version 3.8.11-200.fc18.x86_64 (mockbuild@bkernel01.phx2.fedoraproject.org) (gcc version 4.7.2 20121109 (Red Hat 4.7.2-8) (GCC) ) #1 SMP Wed May 1 19:44:27 UTC 2013
I had configured the dhcpd file, I placed the same configuration file on my virtual machine using CentOS 6.3 and it works fine but here on my laptop where i use fedora, its not working. I thought may be fedora needs some additional tweaks to make dhcp work so posted here for assistance.
 
Old 05-12-2013, 02:39 PM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,326

Rep: Reputation: 3881Reputation: 3881Reputation: 3881Reputation: 3881Reputation: 3881Reputation: 3881Reputation: 3881Reputation: 3881Reputation: 3881Reputation: 3881Reputation: 3881
Quote:
Originally Posted by sudo_su View Post
Dear TB0ne,
Thank you for your reply. I am using fedora, below code shows the version.
Code:
cat /proc/version 
Linux version 3.8.11-200.fc18.x86_64 (mockbuild@bkernel01.phx2.fedoraproject.org) (gcc version 4.7.2 20121109 (Red Hat 4.7.2-8) (GCC) ) #1 SMP Wed May 1 19:44:27 UTC 2013
I had configured the dhcpd file, I placed the same configuration file on my virtual machine using CentOS 6.3 and it works fine but here on my laptop where i use fedora, its not working. I thought may be fedora needs some additional tweaks to make dhcp work so posted here for assistance.
Ok, so you're using Fedora 18...much easier to say/type than the whole kernel/proc version string.

And just saying "its not working" tells us NOTHING. WHAT isn't working? In what context? What do the log files show? How did you actually test this on CentOS? How did you configure the dhcpd.conf file, and are the network parameters in it relevant to the network the Fedora box is ON?
 
Old 11-27-2014, 11:15 AM   #7
Eugirdor
LQ Newbie
 
Registered: Nov 2014
Location: Texas
Distribution: Fedora/CentOS
Posts: 1

Rep: Reputation: Disabled
Post Update to answer question

Two things for this question.

1. How to determine the service under the new structure in Fedora (and/or CentOS 7)
# systemctl -a | grep <part of service name here>

2. With that query, you will find that you actually need to work with the "dhcpd" and/or "dhcpd6" service.
[root@c7dhcp ~]# systemctl -a | grep "dhcp"
dhcpd.service loaded active running DHCPv4 Server Daemon
dhcpd6.service loaded active running DHCPv6 Server Daemon

Unfortunatly, the system does not give a more useful answer like "service xxxxx does not exist"

Answering this to close out the question (note that I just made the same mistake and found this when trying to find an answer)

Eugi
 
Old 11-27-2014, 03:38 PM   #8
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
http://docs.fedoraproject.org/en-US/..._stopping.html
 
  


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] Can't start dhcp service brother.gabriel Linux - Newbie 5 10-31-2012 03:43 PM
How do I turn OFF dhcp service on server? zooeyhall Linux - Newbie 6 01-25-2009 09:08 AM
How to turn off dhcp service on server? zooeyhall Linux - Networking 5 01-24-2009 07:58 PM
DHCP service problem ragsnayak Linux - Newbie 2 11-16-2008 11:28 PM
Suse 9.1 DHCP service pulling everything but IP Un0riginal Linux - Networking 2 08-03-2004 06:52 AM


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