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