Solved

NTP Redhat server

Posted on 2007-03-27
8
2,798 Views
Last Modified: 2013-12-06
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)
IP: 10.0.0.202

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

So
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.
0
Comment
Question by:mukhtar2t
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 25

Expert Comment

by:Cyclops3590
ID: 18803500
my config

ntp.conf
---------------------------
server 129.6.15.29
-----------------------------

client cron entry
ntpdate -u 10.0.0.202

but I also have this for on my server cron
ntpdate -u 208.184.49.9
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
0
 
LVL 48

Expert Comment

by:Tintin
ID: 18803951
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

server 10.0.0.202

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

chkconfig ntpd on
service ntpd start
0
 
LVL 4

Author Comment

by:mukhtar2t
ID: 18806819
How i can know if it is working properly or not
0
 
LVL 5

Expert Comment

by:suggestionstick
ID: 18807042
Hi

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 10.0.0.202 works on the box it will probably work when running ntpd server.

trev
0
Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

 
LVL 4

Author Comment

by:mukhtar2t
ID: 18807433
Ok
Now i installed the 10.0.0.202 as ntp server
and 10.0.0.200 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.
0
 
LVL 5

Accepted Solution

by:
suggestionstick earned 500 total points
ID: 18807786
Hi

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


trev
0
 
LVL 48

Expert Comment

by:Tintin
ID: 18812186
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.
0
 
LVL 4

Author Comment

by:mukhtar2t
ID: 18814810
Thanks Tintin
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Suggested Solutions

The article explains the protocols and technology which is involved when two computers on different TCP/IP networks communicate with each other. In the diagram, a router is used to segregate two networks. The networks are 192.168.1.0/24 and 192…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

932 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

9 Experts available now in Live!

Get 1:1 Help Now