Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
hi,
i am running a CentOS 4 in my pc ,
i want to configure my pc as a DHCP server.
hence i followed the steps given in one site.
but if i say /etc/rc.d/init.d/dhcpd.conf
i am getting an message No such file/directory.
Even i tried service dhcpd status,dhcpd start,but
I am getting a message saying dhcpd:unrecognized service.
please help me out to solve the problem..
most probably configuration files are located in /etc or the location you have installed DHCP sources, /etc/rc.d/init.d/ is the location having startup scripts.
To locate your DHCP configuration file
#locate dhcpd.conf
OR
To find
#find . / -name dhcpd.conf
thanks yar for replying,
location is correct,when i listed the contents in etc directory,
i can view dhcpd.conf file, but i cant open it.
i am getting a message permission denied. but i entered as root only, not as any other user.
It seems you can edit this file if you logged in as root user. However try with #sudo vi filename, if you receive the same issue, check whether selinux enforcing or not
Thankq so much,
i can open the file. and i typed in to it.
but now the problem is, when i tried to start the dhcp service by the command , "sevice dhcpd start", i am getting a message, unrecognized service.Even to get the status , i am getting the same response. i dont know what the problem is!!!!!!!!!!
Hai it means you dont have startup script at /etc/rc.d/init.d directory, first check whether startup script exist or not, better way search in google "how to install and configure DHCP in Linux". you can get step-by-step idea about DHCP
Saying that you have problem will say nothing about your problem. Why dont you take some effort and tell what is exactly your problem. Where did you start and what did you do and where are you stuck?
ya sure chaitanya,
i went in to that link which u posted.
and i followed the steps in that.
the first step itself,i am not getting, that is,
when i type yum install dhcp,
i got this,
Setting up Install Process
Setting up repositories
Cannot find a valid baseurl for repo: update
Error: Cannot find a valid baseurl for repo: update
i have wrote that dhcpd.conf file too.
but when i type man dhcp , i am getting no manual found.
when i say /etc/init.d/dhcpd start
i am getting no such file or directory.
i dont know whether i am in correct path r not........
nothing is working
i cant sort out the problem , please help me if u could.....
Ok so you are using CentOS4. Can you confirm if your yum is configured correctly with working repositories? Check with it. Or else use your CentOS4 media and install dhcp and other related rpms.
Do install dhcpd rpm and instead of giving service dhcpd restart ypu cal give /etc/rc.d/init.d/dhcpd restart if u have properly installed your dhcpd rpm then it shoulds work
service dhcpd start is same as /etc/init.d/dhcpd start. And if anyone of them is working, other should also most probably work.
If thats not working then the reason could be that you have not installed it properly.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.