ntpd as broadcastclient - not working?

W. D. NewsGroups at US-Webmasters.com
Mon Aug 30 16:14:00 PDT 2004


At 01:46 8/30/2004, Harlan Stenn, wrote:
>Better to follow the FreeBSD convention and leave them in /usr/local.
>
>Change xntpd_program in /etc/rc.conf .
>
>H

Thanks Harlan for your reply.

FreeBSD appears to expect these NTP programs to be
in:

/usr/sbin/

That is where the 2003 Oct port put them.  I downloaded
the most recent 'ntp-dev' tarball I could find:

ftp://ftp.starhub.net.sg/pub/funet/unix/tcpip/ntp/xntp/udel/ntp4/ntp-dev-4.2.0a-20040826.tar.gz

I did a 'make install' as we discussed previously.  As
before, the files were compiled to:

/usr/local/sbin/


I added the middle line of these three to rc.conf:

xntpd_enable="YES"
xntpd_program="/usr/local/sbin/ntpd"
xntpd_flags="-A -b -c /etc/ntp.conf -p /var/run/ntpd.pid -l
/var/log/ntpd.log" 

After rebooting, the ntpd program is now running.  
However, it doesn't appear to be able to 'hear' the NTP 
broadcasts that the 2003 Oct version did.  Here
is a log snippet:

30 Aug 21:50:05 ntpd[88]: logging to file /var/log/ntpd.log
30 Aug 21:50:05 ntpd[88]: ntpd 4.2.0a at 1.1219-o Mon Aug 30 14:14:07 GMT
2004 (1)
30 Aug 21:50:05 ntpd[88]: precision = 4.191 usec
30 Aug 21:50:05 ntpd[88]: Listening on interface dc0,
fe80:1::2a0:ccff:fe50:e7c7#123
30 Aug 21:50:05 ntpd[88]: Listening on interface dc0, 192.168.2.177#123
30 Aug 21:50:05 ntpd[88]: Listening on interface lo0, ::1#123
30 Aug 21:50:05 ntpd[88]: Listening on interface lo0, fe80:3::1#123
30 Aug 21:50:05 ntpd[88]: Listening on interface lo0, 127.0.0.1#123
30 Aug 21:50:05 ntpd[88]: kernel time sync status 2040
30 Aug 21:50:05 ntpd[88]: frequency initialized 0.000 PPM from
/etc/ntp.drift
30 Aug 21:50:05 ntpd[88]: Unable to listen for broadcasts, no broadcast
interfaces available

The Windows computer generating the Tardis NTP broadcasts is
at IP address: 192.168.2.119.  Does anyone have any idea
why it's not picking up these broadcasts?

Somewhere in here I also changed the CMOS Real Time Clock to 
UTC, and reconfigured for my local time in /stand/sysinstall

Now what?  How do I get the program to 'hear' the 
broadcasts?


More information about the freebsd-questions mailing list