TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Time Sync with ntp-4.0.98a



I have having trouble getting my servers synchronizing with each 
other. Can anyone give me some help with this?? I have quite a time 
trying to understand the documentation that comes with it.

For now lets say that I have two servers behind a Windows 
Firewall/Proxy server that I want to sync. with each other. The 
master time server on the LAN will have the IP 97.0.1.76. This 
server will also need to go out through the proxy (97.0.1.7) to keep 
in sync. with some Internet source. However, this connection is only 
up during business hours. The ''client' I am trying to get to sync. with 
97.0.1.76 is 97.0.1.75. Also, the proxy server maps any traffic 
from the LAN on port UDP 123 to a ntp server on the Internet.

At this point I can use 'ntpdate 97.0.1.7' from either machine to step 
a given server's clock to the correct time. I run '/etc/rc.d/init.d/ntpd 
start' to start the ntpd daemon on each server and let them run for a 
while. 97.0.1.76 - the master seems to being in contact with the 
time source on the Internet, but none of the other servers on the LAN 
can get their time from 97.0.1.76.

Following are the two /etc/ntp.conf files and the output from running 
'ntpq -p' on each.

-----------------------------------------------------------------------
97.0.1.76 Master time server for LAN
-----------------------------------------------------------------------
server 97.0.1.7 	# Internet time source from dialup #1 
server 97.0.2.7		# Internet time source from dialup #2
server 127.127.1.1			# Sync. with myself 
fudge 127.127.1.1	stratum 10	# Indicate my own clock is poor

driftfile /etc/ntp/drift
statsdir /var/ntp/ntpstats
multicastclient			# listen on default 224.0.1.1
broadcastdelay	0.008

authenticate no

-----------------------------------------------------------------------
Results of 'ntpq -p'

     remote           refid      st t when poll reach   delay   offset  jitter
=============================================
=================================
*ip-1-007        128.105.201.11   2 u  954 1024  377  196.895  -
243.29 156.889
+ip-2-007        192.5.41.41      2 u   93 1024  177  302.682  -
138.97  73.861
 LOCAL(1)        LOCAL(1)        10 m   45   64  377    0.000    0.000 
  0.000



-----------------------------------------------------------------------
97.0.1.75 'client' on LAN
-----------------------------------------------------------------------
server   97.0.1.76
server	127.127.1.1		# local clock
fudge	127.127.1.1		stratum 10	

driftfile /etc/ntp/drift
multicastclient			# listen on default 224.0.1.1
broadcastdelay	0.008

authenticate no
-----------------------------------------------------------------------
Results of 'ntpq -p'
-----------------------------------------------------------------------

     remote           refid      st t when poll reach   delay   offset  jitter
=============================================
=================================
 97.0.1.76       0.0.0.0         16 u    -   64    0    0.000    0.000 
4000.00
*LOCAL(1)        LOCAL(1)        10 l   17   64  377    0.000    0.000   
0.000
-----------------------------------------------------------------------


If anyone can shed some light on the problem here I would appreciate 
it!

Thanks,
Mike