找回密码
 注册
查看: 4149|回复: 0

ntpdate[3987]: no server suitable for synchronization found 解决NTP问题

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2017-10-20 19:21:06 | 显示全部楼层 |阅读模式
#  ntpdate -u 192.168.22.200
' w3 o* M4 N5 v: P20 Oct 19:06:23 ntpdate[3987]: no server suitable for synchronization found
$ C. G+ q8 j5 o/ k6 G6 h! U
; T  P& m' L, y# k8 t% |
Server dropped: Strata too high
在ntp客户端运行ntpdate serverIP,出现no server suitable for synchronization found的错误。
在ntp客户端用ntpdate -d serverIP查看,发现有“Server dropped: strata too high”的错误,并且显示“stratum ”。而正常情况下stratum这个值得范围是“0~15”。
这是因为NTP server还没有和其自身或者它的server同步上。
以下的定义是让NTP Server和其自身保持同步,如果在/ntp.conf中定义的server都不可用时,将使用local时间作为ntp服务提供给ntp客户端。
6 x8 g% A# ^1 A: h  g; b) \4 l: Q
server 127.127.1.0

  Y5 k/ L. d5 A0 k: w) ~
fudge 127.127.1.0 stratum 8

( B0 X; w, i( O: U8 h  q
在ntp server上重新启动ntp服务后,ntp server自身或者与其server的同步的需要一个时间段,这个过程可能是5分钟,在这个时间之内在客户端运行ntpdate命令时会产生no server suitable for synchronization found的错误。
那么如何知道何时ntp server完成了和自身同步的过程呢?
只需要修改ntp server端配置

# P1 H  O/ Q, K- ^& S( ?

* g  [, @( K7 k

" c% P. u2 P2 b* ]1 d7 ~* {
2 ]/ R3 [: j  [: |' t6 ~0 t; @

/ b; V" J- B# U( U
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 03:22 , Processed in 0.029053 second(s), 30 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表