From owner-freebsd-questions@FreeBSD.ORG Sun Sep 5 02:10:12 2004 Return-Path: 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 454AC16A4DF for ; Sun, 5 Sep 2004 02:10:12 +0000 (GMT) Received: from gis.net (mx03.gis.net [208.218.130.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7EF3C43D2D for ; Sun, 5 Sep 2004 02:10:11 +0000 (GMT) (envelope-from mayer@gis.net) Received: from tecotoo.localhost ([207.7.205.171]) by mx03.gis.net; Sat, 04 Sep 2004 22:10:01 -0400 Received: from tecotoo (tecotoo [127.0.0.1]) by tecotoo.localhost (NTMail 3.03.0017/1.aaaa) with ESMTP id ma000350 for ; Sat, 4 Sep 2004 22:10:47 +0100 Message-Id: <4.3.1.2.20040904215933.037e4880@pop.gis.net> X-Sender: mayer@pop.gis.net X-Mailer: QUALCOMM Windows Eudora Version 4.3.1 Date: Sat, 04 Sep 2004 22:10:42 -0400 To: NewsGroups@US-Webmasters.com, FreeBSD-Questions@FreeBSD.org, Stenn@NTP.org, mills@udel.edu From: Danny Mayer In-Reply-To: <4138326B.5F05@US-Webmasters.com> References: <412F8064.353E@US-Webmasters.com> <20040830215514.790$9k@newsreader.com> <413502E1.967@US-Webmasters.com> <413541A0.22D0@US-Webmasters.com> <4135FFA5.285C@US-Webmasters.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Rcpt-To: Subject: Re: ntpd as broadcastclient - not working? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Sep 2004 02:10:12 -0000 At 04:59 AM 9/3/2004, W. D. wrote: >Well folks, > >I got it working--sorta. You message shows that you are not running broadcast. >This page has to have the date stuff on >the left side edited out: http://tinyurl.com/72c69 > >The result is then substituted for /libisc/ifiter_ioctl.c, and >then the whole thing is rebuilt. More properly you could just have used the latest version of the tarball that you had. >The time only seems to be set if I use in /etc/ntp.conf: > >broadcastclient > > rather than: > >broadcastclient 192.168.2.255 This is illegal. There are no additional parameters to broadcastclient. except for novolley. If you didn't get an error message about that then that's a bug. >Also, Tardis must be set to send NTP broadcasts >to the FreeBSD box's IP address: > >192.168.2.177 Again that's not a broadcast address. That's the IP address of that one machine. The address you put in broadcastclient is what should have been put into the tardis configuration. >Here is the output from ifconfig -a: > >dc0: flags=8843 mtu 1500 > inet6 fe80::2a0:ccff:fe50:e7c7%dc0 prefixlen 64 scopeid 0x1 > inet 192.168.2.177 netmask 0xffffff00 broadcast 192.168.2.255 > ether 00:a0:cc:50:e7:c7 > media: Ethernet autoselect (100baseTX ) > status: active >lp0: flags=8810 mtu 1500 >lo0: flags=8049 mtu 16384 > inet6 ::1 prefixlen 128 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 > inet 127.0.0.1 netmask 0xff000000 >ppp0: flags=8010 mtu 1500 >sl0: flags=c010 mtu 552 >faith0: flags=8002 mtu 1500 > > >Here is what is logged in ntpd.log: > > 3 Sep 03:29:32 ntpd[88]: logging to file /var/log/ntpd.log > 3 Sep 03:29:32 ntpd[88]: ntpd 4.2.0a@1.1220-o Thu Sep 2 21:37:09 GMT >2004 (1) > 3 Sep 03:29:32 ntpd[88]: precision = 4.191 usec > 3 Sep 03:29:32 ntpd[88]: Listening on interface dc0, >fe80:1::2a0:ccff:fe50:e7c7#123 > 3 Sep 03:29:32 ntpd[88]: Listening on interface dc0, 192.168.2.177#123 > 3 Sep 03:29:32 ntpd[88]: Listening on interface lo0, ::1#123 > 3 Sep 03:29:32 ntpd[88]: Listening on interface lo0, fe80:3::1#123 > 3 Sep 03:29:32 ntpd[88]: Listening on interface lo0, 127.0.0.1#123 > 3 Sep 03:29:32 ntpd[88]: kernel time sync status 2040 > 3 Sep 03:29:32 ntpd[88]: frequency initialized -0.094 PPM from >/etc/ntp.drift > 3 Sep 03:29:32 ntpd[88]: Unable to listen for broadcasts, no broadcast >interfaces available This shows that you are not getting any broadcasts since it can't configure a socket for broadcast. So you don't have the fix in place. > 3 Sep 03:29:41 ntpd[88]: synchronized to 192.168.2.119, stratum 2 > 3 Sep 03:29:34 ntpd[88]: time reset -6.102537 s > 3 Sep 03:29:34 ntpd[88]: kernel time sync disabled 2041 > 3 Sep 03:29:42 ntpd[88]: synchronized to 192.168.2.119, stratum 2 > 3 Sep 03:29:52 ntpd[88]: kernel time sync enabled 2001 > 3 Sep 03:30:15 ntpd[88]: no servers reachable This tells you that it's not getting any packets from any server you listed in ntp.conf. >Here is the output from ntpdc> monlist: > >remote address port local address count m ver code avgint >lstint >=============================================================================== >localhost 1041 ::1 5 7 2 0 >34 0 >192.168.2.119 123 192.168.2.177 132 5 3 0 >3 3 Which is not broadcast. >How can I get the FreeBSD box to listen on 192.168.2.255? I told you repeatedly. >How would I know when it hears an NTP broadcast? You would see it in the log that it's enabled for broadcast. ntpq -p should show it. >Does ntpd adjust for drift against the realtime clock, and >then use this if the broadcasts stop for some reason? If nothing is available it just leaves things where they are. >Any other glaring errors here? Too many. See above. Danny