Hardy as a NTP Server for Lan
chris
lostpkts at gmail.com
Fri Jul 11 13:17:53 UTC 2008
On Thu, Jul 10, 2008 at 3:27 PM, Markus Schönhaber
<ubuntu-users at list-post.mks-mail.de> wrote:
> Maybe your server isn't (yet) synchronized to the upstream server(s) you
> chose?
> You could, on your Ubuntu machine, do something like
>
> $ ntpdate -q localhost
> server 127.0.0.1, stratum 3, offset -0.000004, delay 0.02563
> 10 Jul 22:18:04 ntpdate[15761]: adjust time server 127.0.0.1 offset
> -0.000004 sec
>
> If the stratum shown is 16, your server hasn't synchronized yet.
> $ ntpdate -q [your upstream server]
> should tell you, if your machine is able to query the server it is
> supposed to synchronize with at all.
>
The machine can sync to the pool fine.
root at chi-webuntu01:~# /etc/init.d/ntp stop
* Stopping NTP server ntpd
...done.
root at chi-webuntu01:~# ntpdate us.pool.ntp.org
11 Jul 13:16:46 ntpdate[4671]: adjust time server 204.15.208.61 offset
0.000817 sec
root at chi-webuntu01:~# /etc/init.d/ntp start
* Starting NTP server ntpd
...done.
root at chi-webuntu01:~#
root at chi-webuntu01:~#
root at chi-webuntu01:~# ntptrace
localhost: stratum 16, offset 0.000000, synch distance 0.000060
root at chi-webuntu01:~#
root at chi-webuntu01:~#
root at chi-webuntu01:~# ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
nick125.com 192.43.244.18 2 u 6 64 1 82.513 0.465 0.001
But I still show up as 16. I'm not sure why.
> [..]
>
>> # Allow local lans to sync
>> restrict 10.0.0.0 mask 255.0.0.0 nomodify notrap
>
> This looks like an addition to the default ntp.conf you made. Do things
> work if you comment it?
>
Tried that... still no joy. I get the same results as above commented
or uncommented.
Thanks
More information about the ubuntu-users
mailing list