Date: Mon, 02 Nov 2009 07:25:50 +0000 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: alexus <alexus@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: ntp Message-ID: <4AEE897E.4070805@infracaninophile.co.uk> In-Reply-To: <6ae50c2d0911011816y54e1e628h40ebe96867ed3e56@mail.gmail.com> References: <6ae50c2d0911011816y54e1e628h40ebe96867ed3e56@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig1BEF81DB81DB86FA0169799F
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable
alexus wrote:
> this is my ntp.conf
>=20
> 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
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
> mx .RMOT. 16 u - 1024 0 0.000 0.000 =
0.000
> su-3.2#
>=20
> this isn't the first time, but after a while my ntp stops working :(
> i dont know what to do...
>=20
> 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 j=
itter
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
+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 1=
8.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 7=
8.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
--=20
Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard
Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
Kent, CT11 9PW
--------------enig1BEF81DB81DB86FA0169799F
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.13 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEAREIAAYFAkruiYQACgkQ8Mjk52CukIyNPwCeP+0WqpNnguxfustZItRYxLFb
KFEAoIjtvP6OKgzMHg4ju3ixNAa/ONUK
=yEit
-----END PGP SIGNATURE-----
--------------enig1BEF81DB81DB86FA0169799F--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4AEE897E.4070805>
