Solved

RedHat 4 NTP Server with Clients No External NTP Source

Posted on 2009-06-30
5
509 Views
Last Modified: 2013-12-06
Hi Experts ---

I am in a lab environment and need to establish a temporary NTP server to run some tests.  The server will be on a machine running RedHat 4.  How do I set-up the server ( what does the conf file look like) and how do I set-up the NTP clients?  
0
Comment
Question by:GDC4S1
  • 4
5 Comments
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 24745363
Hi,

You can find the configutarion files under /etc/ntp.conf and sstll others under /etc/ntp. If you're missing these files then probably you're missing the ntp installation files (this is ery unlikley becasue RHEL4 installs this packaes as a mandatory extension during setup)

To check if it is active you can use this command:

chkconfig --list ntpd

It should respond with:
ntpd            0:off   1:off   2:off   3:on    4:off   5:on    6:off

If it is all off you need to enable it for start durinf startup like that:
chkconfig ntpd on

Then the above command should return on fer level 3 and 5.

Cheers,
K.
0
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 24745388
If hovewer you feel that you're missing the package you can install it using the command:

up2date ntpd

or

yum install ntpd.
0
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 24746593
To start and stop the service you'd use the command

service ntpd start | stop | restart

0
 

Author Comment

by:GDC4S1
ID: 24756856
KeremE ---

I have ntpd on my system.  The question is what goes in the conf file.  For example, I don't have an external timing source which is in the conf file.  So, do I just keep that and it times out or do I comment it out?
0
 
LVL 30

Accepted Solution

by:
Kerem ERSOY earned 250 total points
ID: 24758945
oh ok. Your intial  comment also told that. If all you have is a NTP server and you have no internet connection.  If this is the case you needto find the server lines in your /etc/ntp.conf

server 127.127.1.0
fudge   127.127.1.0 stratum 10

Just leave these lines. then you'll have lines similar to these:

server 0.pool.ntp.org
server 1.pool.ntp.org


Comment each line bebings with server statement. Not you're good to go.

you can usee chkconfig to enable sntp set to start on reboot using:

chkconfig --list ntpd  

will display if it is set to run.. If it is off for all levels then it won2t run when the system reboots. to change this use the command such as this:

chkconfig ntpd  on

Then the list command must show that it is on for levels 3 and 5

f you want to start the service manually can use service command

service ntpd start

service ntpd stop

service ntpd restart





0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now