Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Windows server2012 time synchronization NTP configuration

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Windows server2012 time synchronization NTP configuration

If the server time cannot be synchronized frequently, you can set up a time synchronization server yourself. The NTP configuration is as follows:

Server configuration (Ntp server, the client will synchronize according to the time of this server)

1. Microsoft key + R key, enter "run", enter "regedit" and enter the registry.

2. HKEY_LOCAL_MACHINE\ SYSTEM\ CurrentControlSet\ Services\ W32Time\ Parameters\ Type

Right-click to modify-> change to NTP (default is NTP, you can check if it is already NTP)

3. Modify the Enabled value of HKEY_LOCAL_MACHINE\ SYSTEM\ CurrentControlSet\ Services\ W32Time\ TimeProviders\ NtpServer to 1 (originally 0)

4. Modify the value of "AnnounceFlags" in HKEY_LOCAL_MACHINE\ SYSTEM\ CurrentControlSet\ Services\ W32Time\ Config to 5 (originally a)

5. Restart the time service

Net stop w32time & & net start w32time

6. Press start-> run, enter "services.msc" to enter the service, and set the start mode of windows time service to Auto.

II. Client configuration

The client needs to synchronize the time on the time server. There are two ways to set it: setting the graphical interface and modifying the registry.

The first method: graphical setting interface

1. Click the time setting option to pop up the following interface:

2. Click the modify time setting, and the following interface pops up:

The IP address in the figure is the IP address of the NTP time synchronization server. Here, it is set according to the personal environment. Once set, click update now to synchronize immediately.

Second, modify the registry:

1. Find HKEY_LOCAL_MACHINE\ SYSTEM\ CurrentControlSet\ Services\ W32Time\ Parameters\ NtpServer, change the value to the IP of the set NtpServer, and then add 0x1. For example, "172.31.4.51" 0x1. Notice that IP is followed by a comma and 0x1.

2. Modify "SpecialPollInterval" in HKEY_LOCAL_MACHINE\ SYSTEM\ CurrentControlSet\ Services\ W32Time\ TimeProviders\ NtpClient

This represents the time interval, how often is synchronized with the Ntp server in seconds, and the original value is "93a80" (hexadecimal)

3. Modify the value of UpdateInterval in HKEY_LOCAL_MACHINE\ SYSTEM\ CurrentControlSet\ Services\ W32Time\ TimeProviders\ Config. Here, I change it to 5, but I'm not sure if I want to set this. In the course of trying, I found that if this is not set, it seems to be out of sync. That's why I set it. There is no such step in the configuration mentioned by other people on the Internet. The original default value is 360000 (decimal).

4. Set HKEY_LOCAL_MACHINE\ SYSTEM\ CurrentControlSet\ Services\ W32Time\ Config\ MaxNegPhaseCorrection to FFFFFFFF (originally d2f0, hexadecimal)

Set HKEY_LOCAL_MACHINE\ SYSTEM\ CurrentControlSet\ Services\ W32Time\ Config\ MaxPosPhaseCorrection to FFFFFFFF (originally d2f0, hexadecimal)

MaxNegPhaseCorrection represents a slower time than the NTP server. If the local time exceeds the MaxNegPhaseCorrection seconds of the NTP server, it will not be synchronized.

MaxPosPhaseCorrection represents a faster time than the NTP server. If the local time exceeds the MaxNegPhaseCorrection seconds of the NTP server, it will not be synchronized.

5. Restart the w32time service

Net stop w32time & & net start w32time

6. Press start-> run, enter "services.msc" to enter the service, and set the start mode of windowns time service to Auto.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report