Windows R2 Building NTP server method and analysis

Source: Internet
Author: User

NtpServer Configuration Methods


    1. Windows run Open "regedit" to edit the registry;

    2. Find "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters", [Type] set value modified to "NTP";

    3. Find "Hkey_local_machine\system\currentcontrolset\services\w32time\config",

[AnnounceFlags] Modify the setting value to 5 or a;

The value of AnnounceFlags is 5 o'clock, forcing the clock source to be the local CMOS clock

When the value of AnnounceFlags is a, the clock source is the set NTP server address

4. "Hkey_local_machine\system\currentcontrolset\services\w32time\timeproviders\ntpserver"

[Enabled] Value modified to 1;

This function turns on the NTP server feature (the NTP Server service is not turned on by default unless the computer is upgraded to a domain control station)

5. Restart the Windows Time Service note (the service is set to start automatically). Either way, choose one of the

A) Open the Start menu and enter "CMD" in the command line mode to enter:

net stop W32Time && net start w32time restart the Win32time service

b) through the management tool-service, shut down the Windows Time service, turn on the service, or set the service as self-booting

(the measured turn on automatically start, restart after reboot still did not start, need to start manually)

6.NTP Service is UDP 123 port, note Firewall release this port, Windows Firewall release method:

cmd command: netsh firewall add portopening protocol = UDP Port =123 name = NTPSERVER

NtpClient Configuration Methods

1. Modify the following registration form to

Hkey_local_machine\system\currentcontrolset\services\w32time\timeproviders\ntpclient

SpecialPollInterval value is modified to decimal 43200 (in seconds,43200 to hours)

Specialpolltimeremaining value modified to [Time synchronization server], 0 such as:192.168.1.1,0

2. Manually fill in the server in the system Internet time settings, e.g., Update now.

Note:

time difference is too large, you need to manually synchronize in the time configuration (desktop lower right corner time) or synchronization problems, manually enter the server in the box the IP address is updated immediately.

after the registry has been modified in the test, exit the re-refresh, The value of the specialpolltimeremaining is changed back to the original value, and the server Ip () is manually entered in the synchronization of the Internet time setting , andimmediately afterthe Windows This server IP record is saved , and subsequent updates are normal.

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M00/97/2D/wKiom1kqSvHzt-YvAAAaaLUCly0241.png "title=" 1.png "alt=" Wkiom1kqsvhzt-yvaaaaalucly0241.png "/>

Test validation by:

Windows R2 can simultaneously synchronize the parent clock source as an NTP client, and as an NTP server for other NTP clients

Simulator test results and Analysis:whenwin2008when the server does not have a parent clock source
    1. Step three [AnnounceFlags] The Switch was successfully synchronized as NTP client when the setting value of 5 was modified

    2. Switch Debug error when setting a value of a :

*may 2715:22:09:740 ntp-client ntp/7/acl:access restrict:0x00000008.

*may 2715:22:09:740 ntp-client ntp/7/auth:received A packet at from88.1.1.20, Mode 4, key ID 00000000, length 48 , authentication result 0

*may 2715:22:09:740 ntp-client ntp/7/valid:the packet from 88.1.1.20 failed thevalidity tests 0x0000d420.

server capture shows that the two-party version is different, the number of clock layers is unknown or illegal (0)

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M00/97/2D/wKiom1kqS_yByrvpAAASsAIOXlo368.png "style=" float : none; "title=" 2.png "alt=" Wkiom1kqs_ybyrvpaaassaioxlo368.png "/>

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M02/97/2F/wKioL1kqS_2wIHpuAAA7Q3z7cRo938.png "style=" float : none; "title=" 3.png "alt=" Wkiol1kqs_2wihpuaaa7q3z7cro938.png "/>

3. The value is set to 5 , the number of clock layers is 1 when the server returns the packet , which is normal, but the version is still different

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M00/97/2F/wKioL1kqTDGS54rtAAA-7PJFrMU481.png "title=" 4.png "alt=" Wkiol1kqtdgs54rtaaa-7pjfrmu481.png "/>


4. There are two cases of client contracting, the same client contract, the client local clock layer is 0

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M01/97/2F/wKioL1kqTIehegjNAAA53-a6fHg955.png "title=" 5.png "alt=" Wkiol1kqtiehegjnaaa53-a6fhg955.png "/>

after synchronization, you will see the switches andNTP Windows 2008Server time Difference8an hour

This is because Windows 8 is the east of Beijing time , and network equipment is generally the default is 0 zone

so the switch uses the command clock timezone utc+0800 add 8 to

whenwin2008when the server has a superior clock source

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M01/97/2E/wKiom1kqV1eDe0QqAABO4T3uJac606.png "style=" float : none; "title=" 6.png "alt=" Wkiom1kqv1ede0qqaabo4t3ujac606.png "/>

    1. WIN2088NTP The third step of the server configuration [AnnounceFlags] Modify the setting value to a, other references the first section

    2. WIN2008NTP Client Configuration Reference NTP client configuration, need to manually fill in the Internet time configuration server, click Update Now

    3. turn on the Windows Time service

      The interactive process is as follows:

1. Win2008 synchronous Atomic clock time as NTP client

Client contract

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M02/97/2E/wKiom1kqV1iij7cMAAA0o5Oq6u8285.png "style=" float : none; "title=" 7.png "alt=" Wkiom1kqv1iij7cmaaa0o5oq6u8285.png "/>

Server Back Package

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M01/97/2F/wKioL1kqV1nQYKRaAAA0dle4MYc384.png "style=" float : none; "title=" 8.png "alt=" Wkiol1kqv1nqykraaaa0dle4myc384.png "/>

Other time synchronization interactions are similar

2. The switch synchronizes win2008 time as an NTP client

Exchange as a client contract

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M02/97/2F/wKioL1kqV1nC_SRIAAAszvQ5ZNo720.png "style=" float : none; "title=" 9.png "alt=" Wkiol1kqv1nc_sriaaaszvq5zno720.png "/>

Win2008 as a server-back package

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M02/97/2E/wKiom1kqV1rBHxDFAAA0plsOzKA720.png "style=" float : none; "title=" 10.png "alt=" Wkiom1kqv1rbhxdfaaa0plsozka720.png "/>

Other interaction messages are similar

NTP status on switch :

<ntp-client>dis NTP Sessions

Source reference Stra reach poll now offset delay Disper

***********************************************************************

[12345]88.1.1.20 88.1.1.254 2 255 64 178 2758.7 1.4038 15.197

Notes:1source (Master), 2 source (peer), 3 selected, 4 candidate, 5 configured.

Total Sessions:1

display clock source is 88.1.1.20, clock source 88.1.1.20 Clock layer is 2, clock Source reference clock when atomic clock 88.1.1.254, ( 88.1.1.20 is the win2008 server address)

<NTP-CLIENT>DISNTP status

Clock status:synchronized

Clock stratum: 3

System Peer: 88.1.1.20

Local mode:client

Reference clock ID: 88.1.1.20

Leap indicator:00

Clock jitter:0.019089 S

stability:0.000 pps

Clock precision:2^-15

Root delay:32.65381 ms

Root dispersion:2952.42310 ms

Reference time:dcd4d362.1cf1fe84 Sun, May 28 2017 12:41:06.113

The NTP clock layer of the display switch native is 3, and the clock server IP and reference clock are win2008






This article is from the "Network Lunatic Asylum" blog, please be sure to keep this source http://xxy123456.blog.51cto.com/2863352/1930434

Windows R2 Building NTP server method and analysis

Related Article

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.