>Я вообще-то это все и сделал (см мой вопрос)
>НЕ РАБОТАЕТ!!!!
Tvoi vopros ja pro4ital o4en vnimatelno.
Moi otvet:
NTP server: NetBSD netbsd 1.6.2 NetBSD 1.6.2 (GENERIC) #0
Windows: Windows 2000 Advanced Server Service Pack 4
1) Ustanovka IP adresa servera s kotorim budem sinhronizirovatca:
net time /setsntp:<ip address>
2) Proverajem, pravilno li vipolnilas ustanovka:
regedit:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters]
"LocalNTP"=dword:00000000
"Period"="SpecialSkew"
"type"="NTP"
"ntpserver"="<ip address>"
ili
net time /querysntp
The current SNTP value is: <ip address>
The command completed successfully.
3) Nastraimavjem NTP server ispolzuja samuju prostuju konfiguraciju.
bash-2.05b# cat /etc/ntp.conf
pidfile /var/run/ntpd.pid
driftfile /var/db/ntp.drift
server 127.127.1.0
bash-2.05b# /etc/rc.d/ntpd start
Starting ntpd.
Oct 23 14:07:59 netbsd ntpd[428]: ntpd 4.0.99i Tue Feb 10 21:30:51 UTC 2004 (1)
Oct 23 14:07:59 netbsd ntpd[428]: using kernel phase-lock loop 0001
bash-2.05b# /etc/rc.d/ntpd status
ntpd is running as pid 428.
bash-2.05b# ntpq 127.0.0.1
ntpq> cl
status=0000 clk_okay, last_clk_okay,
device="Undisciplined local clock", timecode=, poll=2, noreply=0,
badformat=0, baddata=0, fudgetime1=0.000, stratum=3, refid=76.67.76.0,
flags=0
ntpq> ntpversion
NTP version being claimed is 2
4) Vremja na NTP servere:
bash-2.05b# date
Sat Oct 23 14:20:23 EEST 2004
5) Vremja na Windows sisteme:
C:\>time
The current time is: 14:15:20,85
Enter the new time:
6) Zapuskajem NTP klienta na Windows ma6ine:
C:\>net start w32time
The Windows Time service was started successfully.
7) Vremja na Windows ma6ine:
C:\>time
The current time is: 14:20:28,34
Enter the new time:
8) Polnaja informacija dla WIndows Time servisa s Windows ma6ini:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time]
"Description"="Sets the computer clock."
"DisplayName"="Windows Time"
"ErrorControl"=dword:00000001
"Group"=""
"ImagePath"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\
74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,\
00,65,00,72,00,76,00,69,00,63,00,65,00,73,00,2e,00,65,00,78,00,65,00,00,00
"Objectname"="LocalSystem"
"Start"=dword:00000002
"Type"=dword:00000020
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters]
"LocalNTP"=dword:00000000
"Period"="SpecialSkew"
"type"="NTP"
"ntpserver"="<ip address>"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Security]
"Security"=hex:01,00,14,80,a8,00,00,00,b4,00,00,00,14,00,00,00,30,00,00,00,02,\
00,1c,00,01,00,00,00,02,80,14,00,ff,01,0f,00,01,01,00,00,00,00,00,01,00,00,\
00,00,02,00,78,00,05,00,00,00,00,03,14,00,8d,00,02,00,01,01,00,00,00,00,00,\
01,00,00,00,00,00,03,18,00,ff,01,0f,00,01,02,00,00,00,00,00,05,20,00,00,00,\
20,02,00,00,00,03,18,00,8d,00,02,00,01,02,00,00,00,00,00,05,20,00,00,00,23,\
02,00,00,00,03,14,00,9d,00,00,00,01,01,00,00,00,00,00,05,04,00,00,00,00,03,\
18,00,9d,00,00,00,01,02,00,00,00,00,00,05,20,00,00,00,21,02,00,00,01,01,00,\
00,00,00,00,05,12,00,00,00,01,01,00,00,00,00,00,05,12,00,00,00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Enum]
"0"="Root\\LEGACY_W32TIME\\0000"
"Count"=dword:00000001
"NextInstance"=dword:00000001