LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-27-2010, 07:49 PM   #1
Kiks
LQ Newbie
 
Registered: Nov 2009
Posts: 2

Rep: Reputation: 0
Problem with DHCP


i have installed dhcp,there i declared the subnet and network,i used command include "/etc/dhcpd.conf.jutu1"; to start and other files,but it show me this error when i want to restart the DHCP,can somebody help me ,if you need more information contact me,

i have configured this file too jutu1,but it don't let me to restart dhcp from /etc/init.d/dhcpd restart, this show me this message



Starting DHCP server Internet Systems Consortium DHCP Server V3.1.2p1
Copyright 2004-2009 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Can't open /etc/dhcpd.conf.jutu1: No such file or directory
 
Old 02-28-2010, 08:46 AM   #2
pgpython
Member
 
Registered: Dec 2005
Location: Sheffield, UK
Distribution: Gentoo
Posts: 142

Rep: Reputation: 32
The error is self explanatory. /etc/dhcpd.conf.jutu1 does not exist. make sure its in the directory and that if your writing a file in /etc you have permission to do so. you will need to be root using su or sudo
 
Old 03-01-2010, 03:36 PM   #3
Kiks
LQ Newbie
 
Registered: Nov 2009
Posts: 2

Original Poster
Rep: Reputation: 0
thanks, it's true the file wasn't at directory which i mean ,i was thinking the location of config file is in /etc/dhcpd.conf.jutu1 couse i saw there the file dhcpd.conf.I used the syntax include in middle of shared networks,it should have be in /var/lib/dhcp/etc/, how can i do that to be just at ./etc directory for config files,couse after i put the files in /var/lib/dhcp/etc/ it ask me again to change the config files in /etc/dhcpd.conf.jutu1 ?

thank you for your reply.
 
Old 03-01-2010, 03:57 PM   #4
pgpython
Member
 
Registered: Dec 2005
Location: Sheffield, UK
Distribution: Gentoo
Posts: 142

Rep: Reputation: 32
Ok First of all your reply was very difficult to understand so I would ask that you try and be clearer. From what I could understand you have your config file in /var/lib/dhcp/etc? This would be a problem as system config files are stored in /etc. So normally for something like like dhcp. It would store its config files at /etc/dhcp. If you store the files elsewhere your introducing a maintenance issue as later, you or someone else may need to modify the config and said person is going to have hunt down that file as its not where they expect it to be.

That aside I don't know much about dhcp.conf so I can't realy advise you on that. However you need to make sure the dhcp daemon can read the config file by having the right permissions. I suggest copying the permissions on /etc/dhcpcd.conf using chown and chmod. If you really have to have the config file /var/lib/dhcp. I would use a symlink to get round the issue. Although I strongly recommend putting in /etc/dhcp
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Baffling DNS from a DHCP server problem. Appears to be ignoring dhcp.conf royce2020 Linux - Networking 1 02-16-2010 12:40 PM
Is it DHCP problem? thetzawko Linux - Networking 1 01-25-2010 04:20 AM
Problem on acquiring IP addr. on client from dhcp server through dhcp relay server haariseshu Linux - Server 5 08-10-2009 01:20 AM
ADSL DHCP A-OK, but Mandrake 10.1 to be DHCP for other subnet is a problem turnbui Linux - Networking 2 08-20-2005 09:34 AM
dhcp problem jb1015 Linux - Networking 2 08-11-2003 07:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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