LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do I turn OFF dhcp service on server? (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-turn-off-dhcp-service-on-server-699645/)

zooeyhall 01-24-2009 02:56 PM

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!

acid_kewpie 01-24-2009 03:46 PM

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!

zooeyhall 01-24-2009 04:56 PM

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".

acid_kewpie 01-24-2009 05:18 PM

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)

zooeyhall 01-24-2009 06:16 PM

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 (?)

zooeyhall 01-24-2009 06:54 PM

I just ran a network DHCP server discovery tool, and it shows the only DHCP server on the network to be the Linux server.

chrism01 01-25-2009 08:08 AM

FYI, default port for a DHCP server is 67. Here's a good guide : http://www.linuxtopia.org/online_boo...ng-server.html


All times are GMT -5. The time now is 02:28 PM.