I'm trying to get two networked Linux boxes to show the same time in X by using ntp. I'm running ntpd on the main one and I've added the IP address of the secondary one to /etc/ntp.conf. However, using ntpdate doesn't set the secondary PC's clock to agree with the main PC, because ntpdate complains that the main PC is too high a stratum.
Does anyone know how to get over this. I suspect that the main problem is to do with the main PC not being connected to a kosher ntp server at the time (since there's no internet connection) but it seems that it ought to be possible to sync the two machines' clocks nonetheless. When there IS an internet connection, the main PC uses ntp quite happily to adjust its clock to whatever external server I select, but, even then, the secondary box won't sync to the main one.
I've read through all the HTML documentation that comes with ntp in the Slackware 9.1 distribution, but no joy.
Any clues, please, anyone?
Gerald.
On 2004.04.03 09:22, Edenyard wrote:
I'm trying to get two networked Linux boxes to show the same time in X by using ntp. I'm running ntpd on the main one and I've added the IP address of the secondary one to /etc/ntp.conf. However, using ntpdate doesn't set the secondary PC's clock to agree with the main PC, because ntpdate complains that the main PC is too high a stratum.
Do you have something like this in the ntp.conf on each machine?
# ... and use the local system clock as a reference if all else fails server 127.127.1.0 fudge 127.127.1.0 stratum 10
If so I am guessing that the secondary PC is refusing to sync to a server that appears to be in the same stratum as itself, i.e. 10. You could change the PC you want to use as the master to stratum 9 and see if that solves it.
Steve.