我是 PDC 管理员,Windows NTP 服务器设置正确,我们设置了 5 个不同的时间源。我们能够与其中 2 个时间源和其他外部时间源(如 ntp.org)同步(以下是配置)。我们知道时间能够同步,只是无法与 Cisco Nexus 设备同步(该信息如下)。我们运行了调试日志并捕获了以下信息:
151480 15:11:23.7914419s - /-- NTP Packet:
151480 15:11:23.7914419s - | LeapIndicator: 3 - not synchronized; VersionNumber: 3; Mode: 3 - Client; LiVnMode: 0xDB
151480 15:11:23.7914419s - | Stratum: 0 - unspecified or unavailable
151480 15:11:23.7914419s - | Poll Interval: 17 - out of valid range; Precision: -6 - 15.625ms per tick
151480 15:11:23.7914419s - | RootDelay: 0x0000.0000s - unspecified; RootDispersion: 0x0001.03FEs - 1.01559s
151480 15:11:23.7914419s - | ReferenceClockIdentifier: 0x00000000 - unspecified
我们看到流量进出不同步,我们已经完成了所有 Microsoft 的工作,它们很可靠,而且该服务器是物理服务器,不是虚拟机。任何帮助都非常感谢。
Cisco Nexus 信息:
Software
BIOS: version 3.1.0
kickstart: version 6.2(8a)
system: version 6.2(8a)
kickstart image file is: bootflash:///n7700-s2-kickstart.6.2.8a.bin
kickstart compile time: 5/15/2014 20:00:00 [06/20/2014 21:52:24]
system image file is: bootflash:///n7700-s2-dk9.6.2.8a.bin
system compile time: 5/15/2014 20:00:00 [06/20/2014 23:25:04]
Windows NTP 服务器设置:
C:\Windows\system32>w32tm /query /configuration
[Configuration]
EventLogFlags: 2 (Local)
AnnounceFlags: 5 (Local)
TimeJumpAuditOffset: 28800 (Local)
MinPollInterval: 6 (Local)
MaxPollInterval: 15 (Local)
MaxNegPhaseCorrection: 172800 (Local)
MaxPosPhaseCorrection: 172800 (Local)
MaxAllowedPhaseOffset: 300 (Local)
FrequencyCorrectRate: 4 (Local)
PollAdjustFactor: 5 (Local)
LargePhaseOffset: 50000000 (Local)
SpikeWatchPeriod: 900 (Local)
LocalClockDispersion: 0 (Local)
HoldPeriod: 5 (Local)
PhaseCorrectRate: 7 (Local)
UpdateInterval: 100 (Local)
[TimeProviders]
NtpClient (Local)
DllName: C:\Windows\system32\w32time.DLL (Local)
Enabled: 1 (Local)
InputProvider: 1 (Local)
AllowNonstandardModeCombinations: 1 (Local)
ResolvePeerBackoffMinutes: 15 (Local)
ResolvePeerBackoffMaxTimes: 7 (Local)
CompatibilityFlags: 2147483648 (Local)
EventLogFlags: 1 (Local)
LargeSampleSkew: 3 (Local)
SpecialPollInterval: 3600 (Local)
Type: NTP (Local)
NtpServer:
(Local)
NtpServer (Local)
DllName: C:\Windows\system32\w32time.DLL (Local)
Enabled: 1 (Local)
InputProvider: 0 (Local)
AllowNonstandardModeCombinations: 1 (Local)
VMICTimeProvider (Local)
DllName: C:\Windows\System32\vmictimeprovider.dll (Local)
Enabled: 0 (Local)
InputProvider: 1 (Local)
答案1
我们在基于 Cisco 的环境中也遇到了类似的问题。Cisco NTP 服务器可能会拒绝来自 Windows 服务器的请求,因为它们用于同步时间的“模式”。我不太熟悉 NTP 协议的复杂性,但这KB875424解释得比我好一点。
本质上,Windows 默认使用“对称主动”模式,您需要告诉它改用“客户端模式”。
对于 NTP 服务器列表中的每个条目,将其添加,0x08
到其末尾。因此ntp.example.com
变为ntp.example.com,0x08
。如果有多个条目,ntp1.example.com ntp2.example.com
则变为ntp1.example.com,0x08 ntp2.example.com,0x08
PS,我知道该知识库文章是针对 2003 年的,但它适用于 2008 年及以后。