将Win7做为NTP服务器
1. 修改注册表项
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpServer Enabled 设定为 1(默认0)
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\ AnnounceFlags 设定为 5 (默认 10)
AnnounceFlags 说明
2. 禁用防火墙或设置例外,UDP 123端口。
3. 运行 services.msc,将Windows Time服务设置成自动(延迟启动)
Win7下如果设置成自动,下次重启后此服务会被停止,原因不详。
经实验,延迟启动也并不需要用户登录即可启动。
4. 重启动校时服务:net stop w32time && net start w32time
网络设备(如cisco、h3c交换机……)不能正常同步NTP服务器时间:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\LocalClockDispersion
值修改为0 (默认为0x0000000a)
参考网址:
http://support.microsoft.com/kb/314054/zh-cn
http://technet.microsoft.com/en-us/library/cc784191.aspx
http://technet.microsoft.com/en-us/library/cc773263(WS.10).aspx
http://technet.microsoft.com/en-us/library/cc773013(v=WS.10).aspx
http://www.dotblogs.com.tw/clark/archive/2012/01/02/64146.aspx
https://social.technet.microsoft.com/Forums/windowsserver/en-US/ffb1df0b-7c6e-4b2d-8fdf-b4ca0c014266/configuring-windows-7-as-an-ntp-server?forum=winserverPN
http://wenku.baidu.com/link?url=0b8zeCPNBeiYbX-z-5Sn3bzOUEgsaeuG3RFPQkSrnus4i6_rWVJj0mkcfOziU-weYpCQVP5FAJqDxi47u_eQPxMxAogiO0yS9v9XgTjNpaC
Value | Meaning |
---|---|
0 |
Timeserv_Announce_No, Reliable_Timeserv_Announce_No. The domain controller does not advertise time service. |
1 |
Timeserv_Announce_Yes. The domain controller always advertises time service. |
2 |
Timeserv_Announce_Auto. The domain controller automatically determines whether it should advertise time service. |
4 |
Reliable_Timeserv_Announce_Yes. The domain contoller will always advertise reliable time service. |
8 |
Reliable_Timeserv_Announce_Auto. The domain controller automatically determines whether it should advertise reliable time service. |
出处:http://blog.sina.com.cn/s/blog_671c54fe0102v4wy.html