ntp
Matthew Seaman
m.seaman at infracaninophile.co.uk
Mon Nov 2 07:26:04 UTC 2009
alexus wrote:
> this is my ntp.conf
>
> su-3.2# cat /usr/local/etc/ntp.conf
> server 0.us.pool.ntp.org
> server 1.us.pool.ntp.org
> server 2.us.pool.ntp.org
> server 3.us.pool.ntp.org
> su-3.2# ntpq -p
> remote refid st t when poll reach delay offset jitter
> ==============================================================================
> mx .RMOT. 16 u - 1024 0 0.000 0.000 0.000
> su-3.2#
>
> this isn't the first time, but after a while my ntp stops working :(
> i dont know what to do...
>
> any suggestions?
It's /etc/ntp.conf if you're using the ntpd that comes with the base
system in FreeBSD. Unless you're running you own PPS clock or engaged
in developing NTP, there's much point in installing the ports version.
Even so, it seems you have a problem connecting to a remote NTP server.
Can you do the following:
First, choose one of the IPs returned from one of those pool.ntp.org
addresses:
% host 0.us.pool.ntp.org
0.us.pool.ntp.org has address 216.45.57.38
0.us.pool.ntp.org has address 64.22.86.210
0.us.pool.ntp.org has address 69.36.241.112
0.us.pool.ntp.org has address 69.56.251.238
0.us.pool.ntp.org has address 169.229.70.201
Then test that you can get NTP packets to and from between that machine
and your own by using ntpq(8):
% ntpq -p 216.45.57.38
remote refid st t when poll reach delay offset jitter
==============================================================================
+clock.via.net .GPS. 1 u 698 1024 377 8.832 0.232 0.125
-timekeeper.isi. .GPS. 1 u 1915 1024 376 7.509 0.416 18.394
+clock.sjc.he.ne .CDMA. 1 u 109 1024 377 10.085 0.262 0.066
-nist1.symmetric .ACTS. 1 u 73 1024 377 13.380 -0.470 0.172
-rrcs-64-183-55- .GPS. 1 u 645 1024 377 25.310 -3.634 2.929
-rrcs-64-183-56- .GPS. 1 u 625 1024 377 13.364 -3.183 1.270
-nist1.aol-ca.tr .ACTS. 1 u 947 1024 377 9.860 3.786 0.029
-clock.isc.org .GPS. 1 u 98 1024 377 10.025 -6.679 0.005
-gps.layer42.net .GPS. 1 u 113 1024 377 12.315 0.042 0.388
-gatekeeper.no-s .PPS. 1 u 662 1024 377 27.165 3.409 78.001
-nist1-sj.witime .ACTS. 1 u 675 1024 377 9.204 5.834 0.780
*clepsydra.dec.c .GPS. 1 u 867 1024 377 9.988 0.283 0.123
-time.nist.gov .ACTS. 1 u 933 1024 377 33.453 -1.888 1.615
ntp2.lax-noc.co 204.123.2.5 2 u 935 1024 377 0.122 0.467 0.015
LOCAL(0) .LOCL. 9 l 23 64 377 0.000 0.000 0.002
If you don't get output like this showing a list of reference servers
from any of the available addresses, then I'd suspect something like
over restrictive firewall rules blocking the traffic. If you do get
a response then the problem is localised on your machine. In which
case, try stripping out and NTP related ports you've installed,
configure the base system ntpd(8) and see if that works better for you.
Cheers,
Matthew
--
Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard
Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
Kent, CT11 9PW
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 259 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20091102/1dcba9b1/signature.pgp
More information about the freebsd-questions
mailing list