ntp.conf:
Код:
#server ntp1.vniiftri.ru
#server ntp1.imvp.ru
#server europe.pool.ntp.org
#server pool.ntp.org
server ntp.psn.ru
server ntp.ru
server 127.127.1.0 # local clock
fudge 127.127.1.0 stratum 10
#server pool.ntp.org
#
# Drift file. Put this in a directory which the daemon can write to.
# No symbolic links allowed, either, since the daemon updates the file
# by creating a temporary in the same directory and then rename()'ing
# it to the file.
#
driftfile /etc/ntp/drift
multicastclient # listen on default 224.0.1.1
broadcastdelay 0.008
#
# Keys file. If you want to diddle your server at run time, make a
# keys file (mode 600 for sure) and define the key number to be
# used for making requests.
# PLEASE DO NOT USE THE DEFAULT VALUES HERE. Pick your own, or remote
# systems might be able to reset your clock at will.
#
#keys /etc/ntp/keys
#trustedkey 65535
#requestkey 65535
#controlkey 65535
# Don't serve time or stats to anyone else by default (more secure)
restrict default noquery nomodify
# Trust ourselves. :-)
restrict 127.0.0.1
и что творится:
Код:
[ root : /etc ]# ntpdate ntp.ru
22 Jan 12:45:16 ntpdate[19304]: adjust time server 193.124.11.11 offset 0.033554 sec
[ root : /etc/rc.d ]# ./rc.ntpd start
Starting NTP daemon: /usr/sbin/ntpd -g
[ root : /etc/rc.d ]# ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
alpha.prao.psn. 192.36.143.151 2 u 3 64 1 391.919 25.219 0.001
ntp.ru 62.117.76.140 2 u 4 64 1 371.203 22.063 0.001
LOCAL(0) .LOCL. 10 l 3 64 1 0.000 0.000 0.001
[ root : /etc/rc.d ]# ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
+alpha.prao.psn. 192.36.143.151 2 u 44 64 177 387.939 130.861 89.467
*ntp.ru 62.117.76.140 2 u 40 64 377 404.947 106.530 62.783
LOCAL(0) .LOCL. 10 l 42 64 377 0.000 0.000 0.001
[ root : /etc ]# ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
+alpha.prao.psn. 192.36.143.151 2 u 57 64 377 389.930 205.043 52.824
*ntp.ru 62.117.76.140 2 u 49 64 377 428.624 212.903 56.268
LOCAL(0) .LOCL. 10 l 54 64 377 0.000 0.000 0.001