Date: Mon, 23 Feb 2004 09:52:39 +0200 From: John Hay <jhay@icomtek.csir.co.za> To: babjak@neuron-ai.fei.tuke.sk Cc: freebsd-stable@freebsd.org Subject: Re: problems with ntpd configuration Message-ID: <20040223075239.GA41617@zibbi.icomtek.csir.co.za> In-Reply-To: <20040223071023.GA4145@hilbert.chtf.stuba.sk> References: <20040223071023.GA4145@hilbert.chtf.stuba.sk>
next in thread | previous in thread | raw e-mail | index | archive | help
You might get better results to you ntp questions on the ntp news group: comp.protocols.time.ntp > I have a problem to configure properly a ntpd server for local network. I > followed a handbook example, but maybe I didn't understand something well. My > aim is to configure a ntpd server, allow to synchronize computers from local > network according to this server and hide mentioned ntpd server for all > computers out of local network. Start by removing all the restrict lines, then if it works, you know that you have the basic setup right. > Its IP is 147.175.67.128, network is class B: 147.175.0.0 with netmask > 255.255.0.0. My ntp.conf: > > server public.stratum2.server1 > server public.stratum2.server2 > server public.stratum2.server3 > driftfile /var/db/ntp.drift > # default to ignore > restrict default ignore > # allow my net to configure, byt not act my setting (according to handbook): > restrict 147.175.0.0 mask 255.255.0.0 notrust nomodify notrap You should also add restrict lines, with less restriction than the default, for the servers you use. Just adding a server line does not un-restrict it automatically. > Server synchronize itself well, but when I try query from 147.175.64.41, i > obtain: Are you really sure about this? Does a "ntpq -c rv" show the stratum as below 15? > > ntpdate -vq 147.175.67.128 > 23 Feb 07:54:52 ntpdate[6145]: ntpdate 4.1.0-a Fri Feb 6 09:54:31 CET 2004 (1) > server 147.175.67.128, stratum 16, offset 0.301619, delay 0.02689 > 23 Feb 07:54:52 ntpdate[6145]: no server suitable for synchronization found This looks like your server is not synchronized. Stratum 16 means not synced. John -- John Hay -- John.Hay@icomtek.csir.co.za / jhay@FreeBSD.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040223075239.GA41617>