Код: Выделить всё
ntpdate_enable="yes"
ntpdate_flags="-u 62.149.2.1"
ntpdate_program="/usr/sbin/ntpdate"
ntpd_enable="yes"
#xntpd_flags="-4 -A -l /var/log/ntp.log -p var/run/ntpd.pid"
ntpd_flags="-4 -p /var/run/ntpd.pid -l /var/log/ntp.log"
ntpd_program="/usr/sbin/ntpd"
Код: Выделить всё
[root@base ~]# cat /etc/ntp.conf
driftfile /etc/ntp.drift
logfile /var/log/ntp.log
server 62.149.2.1 prefer
restrict 62.149.2.1 noquery notrap
server 195.13.1.153
restrict 195.13.1.153 noquery notrap
server 130.159.196.118
restrict 130.159.196.118 noquery notrap
restrict 192.168.20.0 mask 255.255.255.0 notrust nomodify notrap
Код: Выделить всё
[root@base ~]# sockstat | grep 123
root ntpd 89523 20 udp4 *:123 *:*
root ntpd 89523 21 udp6 *:123 *:*
root ntpd 89523 22 udp4 192.168.20.2:123 *:*
root ntpd 89523 23 udp4 внешний_айпи:123 *:*
root ntpd 89523 24 udp6 fe80:4::1:123 *:*
root ntpd 89523 25 udp6 ::1:123 *:*
root ntpd 89523 26 udp4 127.0.0.1:123 *:*
root ntpd 89523 27 udp4 192.168.0.1:123 *:*
Код: Выделить всё
[root@base ~]# ntpq -c peers
remote refid st t when poll reach delay offset jitter
==============================================================================
*zeus.colocall.n 62.149.0.30 2 u 33 64 377 34.759 28.324 0.430
+ntp2.belbone.be 195.13.23.6 2 u 32 64 377 44.416 16.462 4.974
+ntp0.cis.strath 192.93.2.20 2 u 34 64 377 59.129 32.440 0.462
Код: Выделить всё
[root@base ~]# tail /var/log/ntp.log
28 Jul 13:49:27 ntpd[89523]: Listening on interface #3 em0, внешний_айпи#123 Enabled
28 Jul 13:49:27 ntpd[89523]: Listening on interface #4 lo0, fe80::1#123 Enabled
28 Jul 13:49:27 ntpd[89523]: Listening on interface #5 lo0, ::1#123 Enabled
28 Jul 13:49:27 ntpd[89523]: Listening on interface #6 lo0, 127.0.0.1#123 Enabled
28 Jul 13:49:27 ntpd[89523]: Listening on interface #7 tun0, 192.168.0.1#123 Enabled
28 Jul 13:49:27 ntpd[89523]: Listening on routing socket on fd #28 for interface updates
28 Jul 13:49:27 ntpd[89523]: kernel time sync status 2040
28 Jul 13:49:27 ntpd[89523]: frequency initialized 12.067 PPM from /etc/ntp.drift
28 Jul 13:53:46 ntpd[89523]: synchronized to 62.149.2.1, stratum 2
28 Jul 13:53:46 ntpd[89523]: kernel time sync status change 2001
Код: Выделить всё
C:\Documents and Settings\user>net time \\192.168.20.2 /set /yes
Системная ошибка 53.
Не найден сетевой путь.