Solved

RedHat 4 NTP Server with Clients No External NTP Source

Posted on 2009-06-30
5
513 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

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

After running Ubuntu some time, you will be asked to download updates for fixing bugs and security updates. All the packages you download replace the previous ones, except for the kernel, also called "linux-image". This is due to the fact that w…
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 video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

821 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