环境:RHEL 6.4 带有 ntp-4.2.6p5-15.el6_10.x86_64
问题:以下 ntp 客户端可以将其时间同步到远程 ntp 服务器,但是为什么它无法与远程 ntp 服务器运行 ntpq -c 子命令?
#
#
# ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
*10.130.22.10 .GPS. 1 u 17 1024 377 0.859 -0.178 0.428
#
#
# ntpq -n -cas
ind assid status conf reach auth condition last_event cnt
===========================================================
1 15314 963a yes yes none sys.peer sys_peer 3
#
#
#
# ntpq
ntpq> as
ind assid status conf reach auth condition last_event cnt
===========================================================
1 15314 963a yes yes none sys.peer sys_peer 3
ntpq>
ntpq>
ntpq> quit
#
#
#
# ntpq 10.130.22.10
ntpq> as
10.130.22.10: timed out, nothing received
***Request timed out
ntpq>
ntpq>
ntpq> pe
10.130.22.10: timed out, nothing received
***Request timed out
ntpq>
ntpq>
ntpq> quit
#
#
远程服务器的配置包含一行
restrict
适用于您的 IP 地址的内容。它可能类似于:该
noquery
选项将阻止您从远程服务器获取任何状态信息。它还可能被配置为要求对远程
ntpq
和ntpdc
请求进行身份验证。有关更多信息,请阅读有关各种选项的 NTP 文档
restrict
:https://www.ntp.org/documentation/4.2.8-series/accopt/