Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


Closed Thread
  Search this Thread
Old 01-24-2009, 01:35 PM   #1
LQ Newbie
Registered: Jan 2009
Posts: 7

Rep: Reputation: 0
How to turn off dhcp service on server?

Can someone tell me how to turn OFF the DHCP services on a Linux server? I have been looking all over the internet and some Linux books but I can't figure out how to kill this !*&$! service!

I know the service is running on the server on our network, because when I do an ipconfig /all from a workstation it shows the DHCP and DNS server as being the IP address of the Linux server.

Here's an overview of what I have tried:

I am not too sure of the Linux version, but it does have the RedHat graphical interface.

I have gone into Applications-->Server Settings-->Services, as I believe this shows the currently running services (?) I cannot see anything related to dhcp, such as dhcpd.

I have tried the command "/sbin/service dhcpd stop" from the command prompt, but all I get back is: "dhcpd: unrecognized service"

I noticed there is a dhcpd command in the /usr/sbin directory, however the command still produces the same result.

Would really appreciated any advice I can get on this. I have dabbled some in Linux but for the life of me this has me stumped! Thanks in advance for any advice!

Last edited by zooeyhall; 01-24-2009 at 02:55 PM.
Old 01-24-2009, 03:00 PM   #2
Registered: Jan 2007
Location: lexington NC.
Distribution: Ultimalinux 8.4 & Slackware 12.0.0
Posts: 82

Rep: Reputation: 16
where you root when you did your comands?

try- man dhcpcd -for more info on dhcpcd

+ you can do- ps aux -to get a list of runing proses's and get the PID of the pros. and KILL PID war PID is the pros. PID#

Last edited by vinnywrite; 01-24-2009 at 03:15 PM.
Old 01-24-2009, 04:51 PM   #3
LQ Newbie
Registered: Jan 2009
Posts: 7

Original Poster
Rep: Reputation: 0

Thank you for the reply. Yes--I was at the root when I ran the commands.

Can you please elaborate on your last sentence:

+ you can do- ps aux -to get a list of runing proses's and get the PID of the pros. and KILL PID war PID is the pros. PID#

As the forum says, I am a Linux newbie and need to know exactly what to type in the command prompt.
Old 01-24-2009, 05:01 PM   #4
Registered: May 2007
Posts: 61

Rep: Reputation: 17
Maybe it's not dhcpd providing the service, but something else, like dnsmasq.
Old 01-24-2009, 05:32 PM   #5
Registered: Aug 2002
Posts: 13,318

Rep: Reputation: 1092Reputation: 1092Reputation: 1092Reputation: 1092Reputation: 1092Reputation: 1092Reputation: 1092Reputation: 1092
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
Old 01-24-2009, 06:58 PM   #6
LQ Newbie
Registered: Jan 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Just ran a DHCP discovery tool on the network, and it shows that the only DHCP server is the Linux server.

Closed Thread

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
How to turn my Server into a DHCP Server? felton57 Linux - Networking 2 06-06-2008 10:51 PM
A basic script to turn DHCP server on and off hawkules Red Hat 1 02-23-2007 06:40 AM
cant turn off novel-zmd service alaios SUSE / openSUSE 3 10-10-2006 07:37 AM
turn a script to a service gsr_kashyap Linux - Software 1 04-05-2006 02:31 AM
how do I turn off dhcp and specify IP? t3kn0lu5t Debian 2 10-01-2003 11:22 AM

All times are GMT -5. The time now is 09:16 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration