[ntp:questions] NTP on LAN

Unruh unruh-spam at physics.ubc.ca
Mon Sep 22 03:05:11 UTC 2008


05IT042 <raghuramos1987 at gmail.com> writes:

>On Sep 19, 8:31=A0pm, Steve Kostecke <koste... at ntp.org> wrote:
>> On 2008-09-19, 05IT042 <raghuramos1... at gmail.com> wrote:
>>
>> > On Sep 18, 10:24=A0pm, Steve Kostecke <koste... at ntp.org> wrote:
>>
>> >> What version of NTP are you using?
>>
>> > Okay, i wanted 2 computers on a lan. One as the ntp server and the
>> > other as the client.
>>
>> Does this network have external connectivity? Do you really need to
>> operate a "time island"?
>>
>> > I want the client to synchronize to the server.
>>
>> If you don't provide the ntpd with a stable time source, or spend some
>> time tuning the system which will be your "server", the best you can
>> hope for is that the "client" will be chasing a moving "server".
>>
>> > If i understand right, i have to use orphan mode on my server and what
>> > on my client?
>>
>> Choose one system to be your "server" and configure it to use either
>> the Undisciplined Local Clock (127.127.0.x) or Orphan Mode (as shown in
>> the examples in my previous article).
>>
>> =A0 =A0 =A0 =A0 # server at 192.189.19.1
>> =A0 =A0 =A0 =A0 driftfile /var/lib/ntp/ntp.drift
>> =A0 =A0 =A0 =A0 server 127.127.1.0 minpoll 4
>> =A0 =A0 =A0 =A0 fudge 127.127.1.0 stratum 10
>>
>> or
>>
>> =A0 =A0 =A0 =A0 # server at 192.189.19.1
>> =A0 =A0 =A0 =A0 driftfile /var/lib/ntp/ntp.drift
>> =A0 =A0 =A0 =A0 tos orphan 10
>>
>> Configure the other system to poll your "server" (as shown in the
>> examples in my previous article).
>>
>> =A0 =A0 =A0 =A0 # client at 192.168.19.2
>> =A0 =A0 =A0 =A0 driftfile /var/lib/ntp/ntp.drift
>> =A0 =A0 =A0 =A0 server 192.168.19.1 iburst
>>
>> --
>> Steve Kostecke <koste... at ntp.org>
>> NTP Public Services Project -http://support.ntp.org/

>Did exactly as above. I'm using 4.2.4p5. Now how do i verify that the
>client is getting synchronized with the server? And yeah I am on a lan
>which connects to the internet. But, i'm trying this for a different
>purpose altogther

On the client do 
ntpq -p
a while after bootup. 
You should see that it is syncing to the server.





More information about the questions mailing list