On Sep 18, 10:24 pm, Steve Kostecke <[EMAIL PROTECTED]> wrote: > On 2008-09-18, 05IT042 <[EMAIL PROTECTED]> wrote: > > > I have 2 computers connected on the same lan. I want one of them to be > > set up as a NTP server and the other to be setup as a NTP client. This > > is my initial goal. I tried giving the ip address of the server in the > > client's /etc/ntp.conf file > > The ntp.conf on the "client" should, at a minimum, consist of: > > driftfile /path/to/ntp.drift > server <address/hostname of your ntp server> > > Replace "/path/to/ntp.drift" with a full path + filename to a > location which is writable ny the ntp user. A typical location is > "/var/lib/ntp/ntp.drift". > > > and i gave localhost(127.0.0.1) in the servers /etc/ntp.conf file. > > This will not do what you think it will do. > > If you have no real time sources (i.e. remote time servers or locally > attached ref-clocks) available you may use the Undisciplined Local > Clock (or LocalCLK or LOCAL) or Orphan Mode. > > The LocalCLK and Orphan Mode merely allow ntpd to claim to synchronized > to _something_ and serve time to others. They do not make the time > correct. Nor do they control any drift or make your clock tick at the > correct rate. > > If at all possible you should provide a sufficient number of real time > sources to ntpd. > > If your application is not critical you may wish to use the NTP Pool > (seehttp://support.ntp.org/poolandhttp://www.pool.ntp.org/). The > mininal configuration for a server using the pool is: > > driftfile /path/to/ntp.drift > I server 0.pool.ntp.org iburst > server 1.pool.ntp.org iburst > server 2.pool.ntp.org iburst > server pool.ntp.org > > To use the just Undisciplined Local Clock the minimal configuration is: > > driftfile /path/to/ntp.drift > server 127.127.1.0 > fudge 127.127.1.0 stratum 10 > > To use just Orphan Mode the minimal configuration is: > > driftfile /path/to/ntp.drift > tos orphan 10 > > You may add the 127.127.1.x lines or the orphan line to an ntp.conf > in addition to remote time servers. Orphan Mode is preferred if your > version of NTP supports it. > > > After this how do i go about checking if > > they're even getting synchronized or anything at all? > > Also some links for learning more would also be appreciated. > > The NTP home-page ishttp://www.ntp.org/ > > The NTP Public Services Project home-page ishttp://support.ntp.org/ > > Documentation indices are available > athttp://www.ntp.org/documentation.htmlandhttp://support.ntp.org/doc > > Documentation for the NTP Development release series is located > athttp://www.eecis.udel.edu/~mills/ntp/html/ > > Documentation for NTP Stable releases is included in the ./html/ > directory in the Distribution and is archived athttp://doc.ntp.org/ > > > OS: Ubuntu Hardy Heron on both server and client. > > What version of NTP are you using? > > -- > Steve Kostecke <[EMAIL PROTECTED]> > NTP Public Services Project -http://support.ntp.org/
Okay, i wanted 2 computers on a lan. One as the ntp server and the other as the client. I want the client to synchronize to the server. If i understand right, i have to use orphan mode on my server and what on my client? _______________________________________________ questions mailing list [email protected] https://lists.ntp.org/mailman/listinfo/questions
