NTP時間同步問題


1問題:

ntp服務器配置在windows 2012 R2的一台機器上,部分esxi機器同步該地址,但是經過查看發現linux 上的時間並不能跟該地址進行同步。

將地址修改為ntp地址,重啟服務,查看同步狀態

[root@localhost ~]# service ntpd restart
Redirecting to /bin/systemctl restart ntpd.service
[root@localhost ~]# ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
10.150.x.x .INIT. 16 u - 64 0 0.000 0.000 0.000

經手動同步時間,無法找到ntp地址

[root@localhost ~]# ntpdate -u 10.150.x.x
19 Nov 15:06:09 ntpdate[2510]: no server suitable for synchronization found

問題原因:

NTP 服務正常的前提下,檢查防火牆設置,發現windows 本地的防火牆是開啟的狀態。新建防火牆規則開放ntp所需udp 123端口

手動同步結果

[root@localhost ~]# ntpdate -u 10.150.x.x
19 Nov 15:20:58 ntpdate[2533]: step time server 10.150.x.x offset 93627.354242 sec

[root@localhost ~]# ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
10.150.x.x 52.231.114.183 4 u 4970 64 377 3.277 -1.563 4.386

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM