Quantcast
Channel: Linux.org.ru: Форум (тех. форум)
Viewing all articles
Browse latest Browse all 74734

Ntp сервер

$
0
0

Всем привет. Поднял ntp сервер, синхронизация с клиентом идет через cron. Все вроде бы работает, но команда ntpq выдает что сервером времени является localhost 127.127.1.0. Вопрос, что нужно сделать чтобы сервером времени был 192.168.0.5? и почему у него st 16?

ntpq -p -n:

     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
192.168.0.5     .INIT.          16 u    -  256    0    0.000    0.000   0.000
*127.127.1.0     .LOCL.          10 l   49   64  377    0.000    0.000   0.000

/etc/ntp.conf:
logfile /var/log/ntp.log
logconfig +syncall
broadcastclient
driftfile /var/lib/ntp/ntp.drift
statistics clockstats loopstats peerstats
server 127.127.1.0
fudge 127.127.1.0 stratum 10 
filegen loopstats type day file loopstats link enable
filegen peerstats type day file peerstats link enable
filegen clockstats type day file clockstats link enable
restrict 192.168.0.0 mask 255.255.255.0 nomodify notrap
/etc/cron.d/ntpdate на клиенте
*/10 * * * * root /usr/sbin/ntpdate 192.168.0.5

 , ,


Viewing all articles
Browse latest Browse all 74734

Latest Images

Trending Articles