2012-02-21

Configuring Windows 2008 R2 as an NTP Server

試了半天,windows 2008 r2的w32time可以當作ntp server提供ntp服務給d-link等網路設備...
可是偏偏和cisco不相容,原因是root dispersion....
所以建議cisco ntp還是設定internet上的ntp server...
或是用unix server
或去找其他windows上的ntp程式...
http://www.meinberg.de/english/sw/ntp.htm
也許是個好選擇...

我是採用internet上的ntp server...懶得再安裝ntp程式了...
底下是測試過還算正確的設法


In order to configure an WIndows 2008 R2 Server you will need to make a number of changes to the registry. This tutorial will show you both the settings for configuring the NTP Server in addition to the client settings.
NOTES

It is worth noting that this example is based on the below,
A Windows 2008 R2 Server acting as the NTP Server
A Windows 2008 R2 Server acting as the NTP client for which it will source its time from the above server.
This configuration is not based upon using a Windows Domain.
NTP SERVER

SERVER SETTINGS

1. Enable the NTP Server
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpServer]"
"Enabled"=dword:00000001
CLIENT SETTINGS

1. Enable NTP Client and set polling interval.
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient]"
"Enabled"=dword:00000001
"SpecialPollInterval"="300"
2. Configure the NTP Time Source, period and frequency
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters]
"NtpServer"="[NTP SERVER IP],0x1"
"Type"="NTP"
"Period"="freq"  /* 找不到 */
NTP CLIENT

CLIENT SETTINGS

1. Enable NTP Client and set polling interval.
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient]"
"Enabled"=dword:00000001
"SpecialPollInterval"="300"
2. Configure the NTP Time Source, period and frequency
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters]
"NtpServer"="[NTP SERVER IP],0x1"
"Type"="NTP"
"Period"="freq"

ADDITIONAL

STARTUP

By default the w32tm service will not automatically start if your Windows machine is not on a domain. To ensure that the service starts automatically run the following command :
sc triggerinfo w32time start/networkon stop/networkoff


TROUBLESHOOTING

To confirm that your clients are correctly peering with your time source run the following command.
w32tm /query /peers
w32tm /query /status

cisco debug

sh ntp asso
sh ntp asso detail
sh ntp status

2023 灌籃高手 SLAM Dunk

 2023 哩哩摳摳 昨天是難得的颱風假。 去看了二輪的灌籃高手。 電影院一堆的小朋友阿。 以下有小暴雷。 雖然我不算是非常的迷灌籃高手,但是還是很喜歡這部作品。 井上老師的畫風我也非常喜歡。 整部片是以良田的角度來看的。 以前我並不是很熟習良田這個角色,但是看到良田能重新站起來...