Windows NTP time server configuration

Source: Internet
Author: User

1. Determine that two hosts are in the same network segment and can ping each other. (Change the server type to NTP.) To do this, follow these steps: A. Click Start, click Run, type regedit, and then click OK.

B. Locate and click the following registry subkey:

Hkey_local_machinesystemcurrentcontrolsetservicesw32timeparameterstype

C. In the right pane, right-click Type, and then click Modify.

D. Type NTP in the Value data box for edit values, and then click OK. This step is not necessary to do the machine

2. Set up the server, Start menu, enter the regedit command and open the registry.

3. Modify the keys for the following options

The "enabled" in Hkey_local_machinesystemcurrentcontrolsetservicesw32timetimeprovidersntpserver is set to 1 to turn on the NTP server feature. (the default is to not open the NTP Server service unless the computer is upgraded to a domain control station)

4. Modify the following key values

Hkey_local_machinesystemcurrentcontrolsetservicesw32timeconfigannounceflags is set to 5, which forces the host to declare itself as a reliable time source, Thus the built-in complementary metal oxide semiconductor (CMOS) clock is used. The setting forces the host to declare itself as a reliable time source, thereby using the built-in complementary metal oxide semiconductor (CMOS) clock. If you want to use the outside time server with the default a value can be.

5. Perform the following command on the DOS command line to restart the Win32time service to ensure that the above changes work

net stop W32Time

net start W32Time

Other: If the server is connected to the Internet, it is a good idea to append the following configuration to avoid the server and NTP synchronization on the Internet:

Hkey_local_machinesystemcurrentcontrolsetservicesw32timetimeprovidersntpclient's "enable" is set to 0 to prevent the client from automatically synchronizing the outside Time service

Client Configuration (Run--> regedit):

1 Modification Hkey_local_machinesystemcurrentcontrolsetservicesw32timetimeproviders

The Ntpclientspecialpollinterval value is modified to decimal 43200 (in seconds, 43200 for 12 hours, the value is the update interval)

Specialpolltimeremaining value modified to [time synchronization server],0 such as: 192.168.1.1,0, for NTP server address

2, modify the default update server

Hkey_local_machinesoftwaremicrosoftwindowscurrentversiondatetimeserversdefault

3, restart Win32time services: net stop W32Time && net start W32Time

With a can use NTP server address: ntp.sjtu.edu.cn 202.120.2.101 (Shanghai Jiaotong University Network Center NTP server address) (210.72.145.44 (National Service Center Server IP address) can not use the real pit)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.