NTP Redhat server

Dear All
I have two Redhat servers in one LAN.
I want to synchronize the time between both, and i am in hurry,i want to do it now so can any instruct me until i can do it.

I already installed ntpd on the server.
NTP server:
Red Hat Enterprise Linux WS release 3 (Taroon)

NTP Client:
Red Hat Enterprise Linux AS release 4 (Nahant Update 2)

What i must write in /etc/ntp.conf at the server.
What is the command that i must add it to the crontab at the client.
What is NTP server i must use for synchronization.
Can any one send me an active config files.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

my config


client cron entry
ntpdate -u

but I also have this for on my server cron
ntpdate -u
can't remember why I have that there.  most likely remnants from before it was a ntp server

also keep in mind after the ntp server is turned on, its stratum value will be very unreliable.  leave it go for a while and it will be reliable and then the in house client will actually use it for sync'ing the time
Does your NTP server have access to the Internet?  If so, then it can sync off one of the many public NTP servers.

So on your NTP server, ntp.conf would have:

driftfile /var/lib/ntp/ntp.drift

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

and on your NTP client/s, ntp.conf would have


No need for anything in crontab.  Just make sure NTP is enabled and running, by doing

chkconfig ntpd on
service ntpd start
mukhtar2tAuthor Commented:
How i can know if it is working properly or not
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.


ntpq -p on the client ntp server will show your primary in the listing, and a reach value greater that 0 indicates sucess. a reach of 377 indicates that the last 8 sync attempts where sucessful

also if ntpdate works on the box it will probably work when running ntpd server.

mukhtar2tAuthor Commented:
Now i installed the as ntp server
and as ntp client
i want to be sure that every thing is ok so:
- when i adjust the time at the server are the clients adjusted.
- when i adjust the time at a client is it adjusted back to the server.
- if change the timezone is it affect the synchronization.

1:When you adjust the time at the NtpD server, the client time will slowly sync to the new server time.

2:yes the client will slowly sync back to the server time.

3: if a change in time zone effects the ntp servers time, it will also effect the ntpd clients time.

Pls note: if you change the time by a large amount NTPD might fail to work, this is by Design. So if you change the time by a large amount on the server resync client by using ntpdate and then start syncing vi ntp


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Time zone changes have *NO* effect whatsoever on NTP.  Timezones display the date/time as an offset from UTC.

Additionally, just about all ntpd startup scripts, will use ntpdate to ensure large time differences are sorted out.
mukhtar2tAuthor Commented:
Thanks Tintin
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Distributions

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.