From owner-freebsd-questions Thu Oct 1 08:24:33 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA05206 for freebsd-questions-outgoing; Thu, 1 Oct 1998 08:24:33 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA05199 for ; Thu, 1 Oct 1998 08:24:27 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.9.1/8.9.1) id KAA09130; Thu, 1 Oct 1998 10:24:08 -0500 (CDT) Date: Thu, 1 Oct 1998 10:24:08 -0500 From: Dan Nelson To: "Andy.Robb" , "'freebsd-questions@FreeBSD.ORG'" Subject: Re: training timeofday clock with ntpdate Message-ID: <19981001102408.A8315@emsphone.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.94.3i In-Reply-To: ; from "Andy.Robb" on Thu Oct 1 11:51:51 GMT 1998 X-OS: FreeBSD 2.2.7-STABLE Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Oct 01), Andy.Robb said: > I understand that the kernel includes code to trim the clock > frequency when using xntpd. However, xntpd raises the ISDN line to > our ISP every few minutes. Are you using user-ppp or pppd for your ISDN link? Both have a filter feature where you can specify exactly which packets trigger a dialout. In pppd, it's called "active-filter". In ppp, it's called "dfilter" and "afilter". If you tell ppp to not dial out on UDP port 123 packets, you can leave xntpd running all the time. It will sync when the line is up, and will do its best when the line is down. Configure xntp to use hardware clock at a low stratum (say 10 or so): server server.onthe.inter.net server 127.127.1.0 fudge 127.127.1.0 stratum 10 driftfile /etc/ntp.drift So when you are offline, xntpd will use the hardware clock (adjusted for drift). When you are online, it will resync to a more accurate time source. The NTP faq at http://www.eecis.udel.edu/~ntp/ has a lot of articles on this exact topic, but they all boil down to what I just said above :) -Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message