How to get ntp working

Alan Jackson ajackson
Mon May 17 11:57:31 PDT 2004


I'm frustrated. I've been trying for some time to get ntpd to work,
and I can't seem to get it right. The man page is downright confusing too.

In my logfile I'm getting messages like this :

28 Dec 20:31:13 ntpd[8503]: running as uid(123)/gid(123) euid(123)/egid(123).
28 Dec 20:31:18 ntpd[8503]: sendto(140.162.8.3): Bad file descriptor
28 Dec 20:31:25 ntpd[8503]: sendto(128.194.254.9): Bad file descriptor

and it isn't resetting my clock. I'd like to have my main machine get
the right time, and then act as a stratum 3 for the other machines on my 
network. Can someone share a working config file with me?

I'm running gentoo 2.4.20 and ntp 4.1.1

Here's my /etc/ntp.conf

server 128.194.254.9 prefer
server 140.162.8.3 
driftfile /etc/ntp.drift
logfile /var/log/ntp.log
restrict 192.168.1.0 mask 255.255.255.0 notrust nomodify notrap

-- 
-----------------------------------------------------------------------
| Alan K. Jackson            | To see a World in a Grain of Sand      |
| alan at ajackson.org          | And a Heaven in a Wild Flower,         |
| www.ajackson.org           | Hold Infinity in the palm of your hand |
| Houston, Texas             | And Eternity in an hour. - Blake       |
-----------------------------------------------------------------------


More information about the Linux-users mailing list