Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - How to configure ntp?: (4 Items)
   
How to configure ntp?  
Hi all,

I want to configure a ntp server on one of my desktop, but it doesn't work. Let me explain what I did, may be there are 
some mistakes inside.

What i want to do is to configure a ntp server on a PC running Win XP so that a terminal (connected through a LAN) which
 is running a QNX image could be synchronized with it. This XP machine is not connected to the Internet. So the purpose 
is to be able to modify myself the time on this machine and be sure that the terminal will get it when it sends a ntp 
query to the XP machine.
I'm using Meinberg which provide tools to create a ntp server on a Windows machine and give also a tool to monitor that 
server. 

My problem is not working. I'm not a specialist on NTP but all the forums i've checked are saying that it's very simple.
 For me, it seems not. Here is my configuration and the answer on my terminal console.

This is the configuration on th XP machine using Meinberg solution
/* ntp.conf file* /
# NTP Network Time Protocol 

driftfile "C:\Program Files\NTP\etc\ntp.drift"

server 127.127.1.0
fudge 127.127.1.0 stratum 12
server 192.168.123.225

enable stats
statsdir "C:\Program Files\NTP\etc\"
statistics loopstats

/*end ntp.conf file */


Here is the results on the terminal console

/* terminal results  */

# ntpdate 192.168.123.225
 1 Jan 01:31:30 ntpdate[77832]: no server suitable for synchronization found

Process 77832 (ntpdate) exited status=1.
#
# ntpdate -d 192.168.123.225
 1 Jan 01:31:54 ntpdate[81928]: ntpdate 4.1.1@1.786 Mon Mar 24 04:53:20 EST 2003
 (2)
transmit(192.168.123.225)
transmit(192.168.123.225)
transmit(192.168.123.225)
receive(192.168.123.225)
transmit(192.168.123.225)
transmit(192.168.123.225)
192.168.123.225: Server dropped: strata too high
server 192.168.123.225, port 123
stratum 16, precision -20, leap 11, trust 000
refid [73.78.73.84], delay 0.03258, dispersion 56.00000
transmitted 4, in filter 4
reference time:    00000000.00000000  Thu, Feb  7 2036  7:28:16.000
originate timestamp: ce481b85.ae35380e  Wed, Sep  2 2009  0:15:33.680
transmit timestamp:  83aa85fd.05604189  Thu, Jan  1 1970  1:31:57.021
filter delay:  0.00000  0.00000  0.03258  0.00000
         0.00000  0.00000  0.00000  0.00000
filter offset: 0.000000 0.000000 12518414 0.000000
         0.000000 0.000000 0.000000 0.000000
delay 0.03258, dispersion 56.00000
offset 1251841416.669980

 1 Jan 01:31:58 ntpdate[81928]: no server suitable for synchronization found

Process 81928 (ntpdate) exited status=1.
#
# ntptrace 192.168.123.225
192.168.123.225: stratum 16, offset -895642231.308301, synch distance 0.00024
73.78.73.84:    *Timeout*

Process 98312 (ntptrace) exited status=0.
#

/* end terminal results */

can anybody explain me if this is right? if not, how do i make it work? and where are the mistakes i made?

thanks already for your help.

Seg
Re: How to configure ntp?  
Could you try it with just very basic ntp.conf file:

server 127.127.1.0
fudge 127.127.1.0 stratum 12

PKY?
Re: How to configure ntp?  
And could you post output of "ntpdc -c dmpeers" from your server?

PKY
Re: How to configure ntp?  
I had a very similar issue to the one described above. I was using NTP to synchronize to a local GPS NTP server (http://
www.timetoolsglobal.com/information/gps-ntp-server/) and had similar results to above - specifically synchronizing to a 
stratum 16 server. It turns out that 16 is an invalid stratum indicating that the NTP server is not synchronized. Try 
specifying a local clock stratum of less than 16 - say 10. It should then be OK.

Andi