3.配置ESXi的NTP服务器地址
4.监控数据包
只有从ESXi发出的NTP包,NTP server没有回复。
6 / 13
5.在KB的基础上做调整,修改注册表,启动NTP服务
修改注册表的键值:Run->regedit
HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\W32Time
\\TimeProviders\\NtpServer内的Enabled为1,打开NTP服务器功能(默认是不开启NTP Server服务
重启W23Time服务
6.启动NTP服务后,抓包显示NTP服务器有了回复
7 / 13
7.NTP数据包
ESXi发出的NTP请求包是NTP版本4.
Windows搭建的NTP Server的响应包是NTP版本3
ESXi未完成时间同步,NTP服务器发回的响应包并未被接受。
8 / 13
测试ESXi使用Linux搭建NTP的服务器
1.配置Linux作为NTP服务器
1.编辑ntp.conf
2.Ntp.conf配置示例: # Permit time synchronization with our time source, but do not # permit the source to query or modify the service on this system. restrict default nomodify # Permit all access over the loopback interface. This could # be tightened as well, but to do so would effect some of # the administrative functions. restrict 127.0.0.1 9 / 13
# -- CLIENT NETWORK ------- # Permit systems on this network to synchronize with this # time service. Do not permit those systems to modify the # configuration of this service. Also, do not use those # systems as peers for synchronization. # restrict 192.168.1.0 mask 255.255.255.0 nomodifynotrap # --- OUR TIMESERVERS ----- server 0.pool.ntp.org server 1.pool.ntp.org server 2.pool.ntp.org # --- NTP MULTICASTCLIENT --- #multicastclient # listen on default 224.0.1.1 # restrict 224.0.1.1 mask 255.255.255.255 nomodifynotrap # restrict 192.168.1.0 mask 255.255.255.0 nomodifynotrap # --- GENERAL CONFIGURATION --- # # Undisciplined Local Clock. This is a fake driver intended for backup # and when no outside source of synchronized time is available. The # default stratum is usually 3, but in this case we elect to use stratum # 0. Since the server line does not have the prefer keyword, this driver # is never used for synchronization, unless no other other # synchronization source is available. In case the local host is # controlled by some external source, such as an external oscillator or # another protocol, the prefer keyword would cause the local host to # disregard all other synchronization sources, unless the kernel # modifications are in use and declare an unsynchronized condition. # server 127.127.1.0 # local clock fudge 127.127.1.0 stratum 10 # # Drift file. Put this in a directory which the daemon can write to. # No symbolic links allowed, either, since the daemon updates the file # by creating a temporary in the same directory and then rename()'ing # it to the file. # driftfile /var/lib/ntp/drift 10 / 13
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说综合文库ESXi时间同步测试_与Windows搭建的NTP_server无法同步的原因在线全文阅读。
相关推荐: