Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 02-22-2007, 08:06 PM   #1
LQ Newbie
Registered: Feb 2007
Posts: 1

Rep: Reputation: 0
A basic script to turn DHCP server on and off


Please forgive the simplicity of this question but I am new to this Linux (14 weeks to be exact). I am currently trying to write a script that will allow me to turn the simulated DHCP server on and off. According to instruction I may need to debug, but I'm not to concerned about that. This should be a basic script. Are there any suggestions?
Old 02-23-2007, 06:40 AM   #2
Senior Member
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
Originally Posted by hawkules
I am currently trying to write a script that will allow me to turn the simulated DHCP server on and off.
I am not sure what you mean by a simulated DHCP server (unless this is some kind of a special setup for a school project or something), but if you have an actual DHCP server installed, I would think you would already have a script for this purpose. Probably /etc/init.d/dhcpd (at least that is what is was in some of the older RH I've worked with).

If this does not address your problem, you still might want to look in /etc/init.d. This directory contains many scripts for starting and stopping various services (these scripts are called with either a start or stop parameter), and you might learn a great deal by reading through and analyzing some of them.

Good luck!


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
Basic DHCP Help veeruk101 Linux - Networking 5 07-21-2007 06:38 PM
dhcp server script on Slackware 11.0 ? tiuz Slackware 3 10-21-2006 11:04 AM
basic DHCP between two PC pabloromero Linux - Networking 5 11-25-2003 10:02 AM
How do I turn off DHCP in Debian? t3kn0lu5t Linux - Networking 4 10-01-2003 10:15 PM
how do I turn off dhcp and specify IP? t3kn0lu5t Debian 2 10-01-2003 11:22 AM > Forums > Linux Forums > Linux - Distributions > Red Hat

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