From owner-freebsd-questions@FreeBSD.ORG Fri Apr 14 15:48:23 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4F75E16A403 for ; Fri, 14 Apr 2006 15:48:23 +0000 (UTC) (envelope-from freebsd@dfwlp.com) Received: from zeus.int.dfwlp.com (zeus.dfwlp.com [208.11.134.127]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2571743D6E for ; Fri, 14 Apr 2006 15:48:21 +0000 (GMT) (envelope-from freebsd@dfwlp.com) Received: from mail.dfwlp.com (localhost.int.dfwlp.com [127.0.0.1]) by zeus.int.dfwlp.com (8.13.6/8.13.4) with ESMTP id k3EFmEk9012441 for ; Fri, 14 Apr 2006 10:48:14 -0500 (CDT) (envelope-from freebsd@dfwlp.com) Received: from 208.11.134.3 (SquirrelMail authenticated user jhorne) by mail.dfwlp.com with HTTP; Fri, 14 Apr 2006 10:48:14 -0500 (CDT) Message-ID: <5580.208.11.134.3.1145029694.squirrel@mail.dfwlp.com> In-Reply-To: <5507.208.11.134.3.1145029242.squirrel@mail.dfwlp.com> References: <5507.208.11.134.3.1145029242.squirrel@mail.dfwlp.com> Date: Fri, 14 Apr 2006 10:48:14 -0500 (CDT) From: "Jonathan Horne" To: freebsd-questions@freebsd.org User-Agent: SquirrelMail/1.4.6 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Spam-Status: No, score=-1.4 required=5.0 tests=ALL_TRUSTED autolearn=failed version=3.1.1 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on zeus.int.dfwlp.com Subject: Re: Proper Method of Time Sync? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd@dfwlp.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Apr 2006 15:48:23 -0000 > i have read about 2 methods to sync the time on a freebsd box. > > 1) add these entries to /etc/rc.conf: > ntpdate_enable="YES" > ntpdate_flags="us.pool.ntp.org" > ... and let the system do a one-time sync at bootup, and rely on this > single method for timesync. > > 2) add this entry to /etc/rc.conf > ntpd_enable="YES" > add the file with these contents to /etc/rc.conf: > server us.pool.ntp.org > driftfile /var/db/ntp.drift > restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap > > so, i have a workstation and a server, which i originally did method 1 on, > but soon enough, time drifted quite a bit. so i switched it to the 2nd > method, and they appear to be sync'd perfectly. a third box i set up, i > did only method 2, and this one did not stay synced at all. after i > manually ran 'ntpdate -v -b us.pool.ntp.org', this box straightend up. > > are both methods required for proper time syncronization, or can one rely > only on the ntpd method? > > thanks, > Jonathan Horne Sorry, Typo: > 2) add this entry to /etc/rc.conf > ntpd_enable="YES" > add the file with these contents to /etc/rc.conf: i meant to say "add the file /etc/ntp.conf with these contents" thanks, Jonathan Horne