LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-19-2014, 02:57 PM   #1
lvnt
LQ Newbie
 
Registered: Apr 2014
Posts: 2

Rep: Reputation: Disabled
Allow NTP client to synchronise any stratum


Hi,

I'm trying to sycnhronise my 2 computers each other (none of them connected to internet) One will be master and the other will be client all the time.
When i try to use ntpdate it shows me this

Code:
sudo ntpdate -dv 10.0.0.2
19 Apr 22:40:05 ntpdate[1035]: ntpdate 4.2.6p3@1.2290 Tue Mar  6 15:10:39 UTC 2012 (1)
Looking for host 10.0.0.2 and service ntp
host found : 10.0.0.2
transmit(10.0.0.2)
receive(10.0.0.2)
transmit(10.0.0.2)
receive(10.0.0.2)
transmit(10.0.0.2)
receive(10.0.0.2)
transmit(10.0.0.2)
receive(10.0.0.2)
transmit(10.0.0.2)
10.0.0.2: Server dropped: strata too high
server 10.0.0.2, port 123
stratum 16, precision -23, leap 11, trust 000
refid [10.0.0.2], delay 0.02774, dispersion 0.00027
transmitted 4, in filter 4
reference time:    00000000.00000000  Thu, Feb  7 2036  8:28:16.000
originate timestamp: d6fd5088.8e0d0b3e  Sat, Apr 19 2014 22:44:08.554
transmit timestamp:  d6fd4f9b.c79d0737  Sat, Apr 19 2014 22:40:11.779
filter delay:  0.02849  0.02774  0.02809  0.02838 
         0.00000  0.00000  0.00000  0.00000 
filter offset: 236.7734 236.7739 236.7736 236.7735
         0.000000 0.000000 0.000000 0.000000
delay 0.02774, dispersion 0.00027
offset 236.773934
I've read on the internet that it means the server is not synchronised so it puts itself on stratum 16 so the client cannot synchronise itself to the master.

I want my client to synchronise the master no matter its stratum is. How can i achieve this?

thanks.
 
Old 04-19-2014, 04:24 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Typically desktop ntp configurations are set to use the system clock when it can not sync to a time server. The undisciplined local clock driver is set to stratum 16. Just set it to 1.

http://doc.ntp.org/4.2.0/drivers/driver1.html

Last edited by michaelk; 04-19-2014 at 04:27 PM.
 
Old 04-19-2014, 04:35 PM   #3
lvnt
LQ Newbie
 
Registered: Apr 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
thank you very much. It worked !

I have one more question now. On my client computer I'm using chrony for ntp. The client computer doesn't have a real time clock so everytime I reset it, its time resets to 1970. However my master computer is a laptop and its time keeps going on 2014. So the client computer should do a immediate time jump when it is connected to a network.

Can you also help me on this?
 
Old 04-20-2014, 09:52 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
I assume you are running ntpdate from the client so why not use that to force a time sync.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NTP client is not syncing to ntp server LittleMaster Linux - Newbie 6 04-05-2013 02:37 PM
[SOLVED] NTP configuration in client to synchronize with NTP server. antnish Linux - General 12 04-01-2013 01:49 PM
ntp drift file in /etc/ntp instead of /var/lib/ntp - suggestion for a patch in Slack niels.horn Slackware 16 05-07-2009 07:35 PM
How to use NTP to synchronise linux boxes on a LAN? MoschopsUK Programming 1 07-01-2008 12:23 PM
The peer's stratum is less than the host's stratum. (NTP) procfs Linux - General 2 04-17-2006 09:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration