LinuxQuestions.org
Visit Jeremy's Blog.
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
 
LinkBack Search this Thread
Old 01-24-2009, 02:56 PM   #1
zooeyhall
LQ Newbie
 
Registered: Jan 2009
Posts: 7

Rep: Reputation: 0
How do I 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!
 
Old 01-24-2009, 03:46 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,344

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
normally it would be called dhcpd, but could be a number of other things, for example dnsmasq, which is a very veyr simple dns and dhcp server. if you run "netstat -panu" on the server you should see all udp sockets, and whatever is listening on port 67 is your man. Now if no one is listening, then you have other problems...

and if you don't want whatewver it is, just uninstall the rpm and it'll go poof!
 
Old 01-24-2009, 04:56 PM   #3
zooeyhall
LQ Newbie
 
Registered: Jan 2009
Posts: 7

Original Poster
Rep: Reputation: 0
thanks for the reply--however....

As the forum says, it is for Linux newbies. I am not at the server currently but will check out and try the command you recommend.

But I am a little at a loss for your suggestion "uninstall the rpm ". Can you elaborate more on this? This is a file sharing server and I cannot shut it down during the daytime.

SURELY there must be some way to determine if DHCP is running on this server and a way to shut it down! In Windows all you do is go to Services and click "disable".
 
Old 01-24-2009, 05:18 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,344

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
Yes, and if it were dhcpd then it would be there. In fact it is very similar compared to windows in many respects when it comes to services. but if there's no dhcpd then either it's being loaded from somewhere else (like windows can and often does) or it's a different program altogether (just like many windows apps)
 
Old 01-24-2009, 06:16 PM   #5
zooeyhall
LQ Newbie
 
Registered: Jan 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Thank you for the reply--I do appreciate it!
I shall do further investigating. It could be possible that another dhcp server is on the network, however it is a real simple network with only 2 other Windows servers besides the Linux. And I have checked them both and they are not running DHCP.

Also-- when I do ipconfig /all it shows for the Dhcp server info the address of the Linux server, which indicates that is where the machine has pulled it's IP address (?)

Last edited by zooeyhall; 01-24-2009 at 06:22 PM.
 
Old 01-24-2009, 06:54 PM   #6
zooeyhall
LQ Newbie
 
Registered: Jan 2009
Posts: 7

Original Poster
Rep: Reputation: 0
I just ran a network DHCP server discovery tool, and it shows the only DHCP server on the network to be the Linux server.
 
Old 01-25-2009, 08:08 AM   #7
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5
Posts: 16,086

Rep: Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994
FYI, default port for a DHCP server is 67. Here's a good guide : http://www.linuxtopia.org/online_boo...ng-server.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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to turn off dhcp service on server? zooeyhall Linux - Networking 5 01-24-2009 06:58 PM
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/Novell 3 10-10-2006 07:37 AM
turn a script to a service gsr_kashyap Linux - Software 1 04-05-2006 02:31 AM


All times are GMT -5. The time now is 04:53 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration