Solved

RedHat 4 NTP Server with Clients No External NTP Source

Posted on 2009-06-30
5
514 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

710 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