找回密码
 注册
查看: 4148|回复: 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
: \, @2 ^7 D* d  U7 K. G9 y5 F20 Oct 19:06:23 ntpdate[3987]: no server suitable for synchronization found3 z2 T6 _# l, A  @4 V# m& X
, U) S9 W, q3 x# Z' 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客户端。, v6 r( r* M# M' t2 p
server 127.127.1.0
6 }: q8 B  h, ?, S- x
fudge 127.127.1.0 stratum 8

. Z/ t( e: C7 E2 Q$ S# L, w
在ntp server上重新启动ntp服务后,ntp server自身或者与其server的同步的需要一个时间段,这个过程可能是5分钟,在这个时间之内在客户端运行ntpdate命令时会产生no server suitable for synchronization found的错误。
那么如何知道何时ntp server完成了和自身同步的过程呢?
只需要修改ntp server端配置

6 ]: Y: W/ D* U  Q5 {
6 {& \, ^9 h5 X8 s% V$ Q) c
' j1 x, y5 P. a$ M. e5 \3 b

  L5 v) d% z2 e& N9 k
- ~- z: H2 y3 m, ?+ K- A3 U
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 02:10 , Processed in 0.027500 second(s), 30 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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