Fedora 7: a problem with ntp ?
Nigel Henry
cave.dnb at tiscali.fr
Sat Sep 8 15:23:41 UTC 2007
On Friday 07 September 2007 18:22, Andrew Junev wrote:
> Dear All,
>
> I have just installed Fedora 7 on a P-III machine. Firewall and
> SeLinux are both disabled. But I still can't get ntp running...
> I searched the net but couldn't find the right direction...
>
> Here's what I have:
> [root at frontend ~]# ntpstat
> unsynchronised
> time server re-starting
> polling server every 64 s
> [root at frontend ~]# ntpq -p
> remote refid st t when poll reach delay offset
> jitter
> ===========================================================================
>=== 218-185-224-8-b 128.250.36.3 2 u 20 64 377 358.766 -907853
> 2890.12 218-185-224-9-b 128.250.33.242 2 u 30 64 377 372.321
> -907746 2867.96 212.57.153.17 195.2.64.5 2 u 47 64 377
> 81.773 -907581 2879.97 [root at frontend ~]# ntptrace 212.57.153.17
> 212.57.153.17: stratum 2, offset -0.013595, synch distance 0.096890
> ntp0.zenon.net: stratum 1, offset 0.003489, synch distance 0.009358, refid
> 'GPS' [root at frontend ~]#
>
> ntp.conf exists and was not changed since its creation during install.
> I have another machine running Fedora Core 6 and the ntp works there
> just fine! On that machine I didn't do anything special, everything
> worked right after system installation. I tried to compare the
> settings but found no difference...
<snip>
> Best regards,
> Andrew
Hi Andrew. Sorry to here about your problems.
I set up NTP about 2 years ago on my 2 machines, with help from the ntp
questions mailing list. The default /etc/ntp.conf has a lot of uncommented
lines, and I was told that in most cases all you really need are the server
lines, and the driftfile one. I commented out all the other lines, and just
left the server lines that I'd set up, and the driftfile line. Started the
ntp daemon, ran ntpq> pe from time to time, and eventually the servers
synched up. It does take a bit of time to synch, and many hours before the
driftfile "stabilises", for want of a better word.
As a matter of consideration for the Internet time servers it is also
suggested, if you have a few machines on a LAN, to set one machine up to
access Internet time servers, and set up the other machines to get their time
rom that machine, which is what I did.
I only have 2 machines on the LAN, but with a bunch of distros that run on
each of them, so I set up /etc/ntp.conf for all the distros on machine "A"
with just the Internet timeserver lines, and the driftfile one.
All my distros have static IP addresses, so for the distros on machine "B" the
only lines uncommented are the server lines, and the driftfile one.
As an example for Fedora 7 on machine "B", and as I havn't got around to
adding the lines for the other distros that run on machine "A", there is just
one server line.
server 192.168.0.230
plus the driftfile one of course.
Both machines access the Internet by means of a Smoothwall Express2 firewall,
and serial modem. The Smoothwall sorts out it's own time, and checks every
3hrs from a range of Internet time servers.
By the way for the 1st time with the Fedora 7 install, I've left Selinux
enabled (enforcing), and am having no problems with ntp on it.
Just some comments on my setup, that may or may not be helpfull.
Nigel.
More information about the fedora-list
mailing list