From owner-freebsd-questions Wed Dec 12 9:39:54 2001 Delivered-To: freebsd-questions@freebsd.org Received: from tharmas.rintrah.org (dhcp065-024-235-184.insight.rr.com [65.24.235.184]) by hub.freebsd.org (Postfix) with SMTP id 0687937B41B for ; Wed, 12 Dec 2001 09:39:47 -0800 (PST) Received: (qmail 30505 invoked by uid 1000); 12 Dec 2001 17:39:46 -0000 Date: Wed, 12 Dec 2001 12:39:46 -0500 From: devin-freebsdquestions@rintrah.org To: The Anarcat Cc: freebsd-questions@freebsd.org Subject: Re: ntpdate works, ntpd does not Message-ID: <20011212123946.A30482@tharmas.rintrah.org> Mail-Followup-To: The Anarcat , freebsd-questions@freebsd.org References: <20011212155310.GB65642@shall.anarcat.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011212155310.GB65642@shall.anarcat.dyndns.org>; from anarcat@anarcat.dyndns.org on Wed, Dec 12, 2001 at 10:53:11AM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Dec 12, 2001 at 10:53:11AM -0500, The Anarcat wrote: > Hi > > I've been struggling with a particularly painful problem with my ntpd > here. I am able to adjust the clock using "ntpdate" without any > problems: > > # ntpdate time.nist.gov > 12 Dec 10:40:57 ntpdate[1152]: adjust time server 192.43.244.18 offset -0.059697 sec > # > > but ntpd always fails. From tcpdump, I can see it communicating with the > server, but just once. Here is the showpeer output: > > ntpdc> showpeer time.nist.gov > remote 192.43.244.18, local 6.0.0.0 > hmode client, pmode unspec, stratum 16, precision -20 > leap 11, refid [0.0.0.0], rootdistance 0.00000, rootdispersion 0.00000 > ppoll 10, hpoll 6, keyid 0, version 4, association 43316 > valid 0, reach 000, unreach 1, flash 0x0000, boffset 0.00400, ttl/mode 0 > timer 0s, flags config, bclient > reference time: 00000000.00000000 Thu, Feb 7 2036 1:28:16.000 > originate timestamp: 00000000.00000000 Thu, Feb 7 2036 1:28:16.000 > receive timestamp: 00000000.00000000 Thu, Feb 7 2036 1:28:16.000 > transmit timestamp: bfc1f728.6a9984a0 Wed, Dec 12 2001 10:32:56.416 > filter delay: 0.00000 0.00000 0.00000 0.00000 > 0.00000 0.00000 0.00000 0.00000 > filter offset: 0.000000 0.000000 0.000000 0.000000 > 0.000000 0.000000 0.000000 0.000000 > filter order: 7 6 5 4 > 3 2 1 0 > offset 0.000000, delay 0.00000, error bound 0.00000, filter error 4.00000 > > Here is the tcpdump output I get: > > 10:45:57.912825 MTL-HSE-ppp191859.qc.sympatico.ca.ntp > time.nist.gov.ntp: v4 client strat 0 poll 6 prec -20 [tos 0x10] > 10:45:58.084038 time.nist.gov.ntp > MTL-HSE-ppp191859.qc.sympatico.ca.ntp: v4 server strat 1 poll 6 prec -18 [tos 0x10] > > I pay a beer to anyone passing through montreal and solving this thing, > as it's getting me completly mad. > > Note that I am behind NAT+ipfw. But I kinda opened the rules to run my > tests... :) Anyways, the packets *are* coming to and fro, both with > ntpdate and ntpd. > I believe ntpd will poll the server over a period of some time to get a feel for drift. I know when I set it up it took several hours before it would adjust the clock. How long are you waiting before you expect ntpd to make adjustments? --devin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message