LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   ntp problem (https://www.linuxquestions.org/questions/linux-software-2/ntp-problem-667101/)

bic 09-02-2008 11:40 AM

ntp problem
 
I am trying to get a RHEL 4.1 to update clock from I believe a cisco router. Internal network is 36 seconds behind world clock
(which my RHEL box had been updating against). Note "strata too high" below. I am not sure how to fix that other than trying to force a new time with ntpdate, but that didn't seem to work.

ntpdate -d 192.168.1.1

2 Sep 11:27:34 ntpdate[17486]: ntpdate 4.2.0a@1.1190-r Thu Oct 5 04:11:32 EDT
2006 (1)
Looking for host 192.168.1.1 and service ntp
host found : 192.168.1.1
transmit(192.168.1.1)
receive(192.168.1.1)
transmit(192.168.1.1)
receive(192.168.1.1)
transmit(192.168.1.1)
receive(192.168.1.1)
transmit(192.168.1.1)
receive(192.168.1.1)
transmit(192.168.1.1)
==>> 192.168.1.1: Server dropped: strata too high <<==
server 192.168.1.1, port 123
stratum 16, precision -18, leap 11, trust 000
refid [192.168.1.1], delay 0.02585, dispersion 0.00000
transmitted 4, in filter 4
reference time: c971fce1.8b5b51dc Mon, Feb 5 2007 13:58:41.544
originate timestamp: cc67d9db.c1090817 Tue, Sep 2 2008 11:27:23.754
transmit timestamp: cc67d9eb.88661ae7 Tue, Sep 2 2008 11:27:39.532
filter delay: 0.02596 0.02586 0.02585 0.02585
0.00000 0.00000 0.00000 0.00000
filter offset: -15.7788 -15.7788 -15.7788 -15.7788
0.000000 0.000000 0.000000 0.000000
delay 0.02585, dispersion 0.00000
offset -15.778890

2 Sep 11:27:39 ntpdate[17486]: no server suitable for synchronization found

====

Then this doesn't work either:

ntpdate 192.168.1.1

2 Sep 11:32:42 ntpdate[17994]: no server suitable for synchronization found

ntp.conf:

Code:

restrict default nomodify notrap noquery

restrict 127.0.0.1

restrict 192.168.1.0 mask 255.255.255.0

# --- OUR TIMESERVERS -----
server 192.168.1.1

server  127.127.1.0    # local clock
fudge  127.127.1.0 stratum 10

driftfile /var/lib/ntp/drift
broadcastdelay  0.008

keys            /etc/ntp/keys


acid_kewpie 09-03-2008 04:17 AM

Your server is, as the error states, a strata 16, i.e. officially useless. fix the server and have it at least fudged to a lower strata, and then clients will use it.


All times are GMT -5. The time now is 12:03 AM.