解决ntp的错误no server suitable for synchronization found

错误现象:

[[email protected] ~]# ntpdate 192.169.123.149

22 May 20:53:07 ntpdate[5580]: no server suitable for synchronization found

[[email protected] ~]# ntpdate -d 192.169.123.149

22 May 20:48:03 ntpdate[5487]: ntpdate [email protected] Wed Jun 18 21:20:36 UTC 2014 (1)

Looking for host 192.169.123.149 and service ntp

host found : 192-169-123-149-customer.oowvps.com

transmit(192.169.123.149)

transmit(192.169.123.149)

transmit(192.169.123.149)

transmit(192.169.123.149)

transmit(192.169.123.149)

192.169.123.149: Server dropped: no data

server 192.169.123.149, port 123

stratum 0, precision 0, leap 00, trust 000

refid [192.169.123.149], delay 0.00000, dispersion 64.00000

transmitted 4, in filter 4

reference time:    00000000.00000000  Mon, Jan  1 1900  7:36:42.000

originate timestamp: 00000000.00000000  Mon, Jan  1 1900  7:36:42.000

transmit timestamp:  d909a409.68167265  Fri, May 22 2015 20:48:09.406

filter delay:  0.00000  0.00000  0.00000  0.00000

0.00000  0.00000  0.00000  0.00000

filter offset: 0.000000 0.000000 0.000000 0.000000

0.000000 0.000000 0.000000 0.000000

delay 0.00000, dispersion 64.00000

offset 0.000000

22 May 20:48:11 ntpdate[5487]: no server suitable for synchronization found

错误原因:

(1)、检查ntp的版本,如果你使用的是ntp4.2(包括4.2)之后的版本,在restrict的定义中使用了notrust的话,会导致以上错误。

使用以下命令检查ntp的版本:

# ntpq -c version

下面是来自ntp官方网站的说明:

The behavior of notrust changed between versions 4.1 and 4.2.

In 4.1 (and earlier) notrust meant "Don‘t trust this host/subnet for time".

In 4.2 (and later) notrust means "Ignore all NTP packets that are not cryptographically authenticated." This forces remote time servers to authenticate themselves to your (client) ntpd

解决:把notrust去掉。

(2)、检查ntp server的防火墙。可能是server的防火墙屏蔽了upd 123端口。

可以用命令:

# service iptables stop

或者

# iptables -I INPUT -m udp -p udp --dport 123 -j ACCEPT

(3)、ntpdate命令后面的IP地址写错了。。。

时间: 2024-08-03 21:36:25

解决ntp的错误no server suitable for synchronization found的相关文章

解决ntp的错误 no server suitable for synchronization found

当用ntpdate -d 来查询时会发现导致 no server suitable for synchronization found 的错误的信息有以下2个: 错误1.Server dropped: Strata too high 在ntp客户端运行ntpdate serverIP,出现no server suitable for synchronization found的错误. 在ntp客户端用ntpdate –d serverIP查看,发现有"Server dropped: strata

linux部署时间服务器出现错误no server suitable for synchronization found

一台centos最小化安装的机器,yum -y install ntpdate安装ntpdate同步时间.执行ntpdate time.nist.gov,无法与服务器同步时间,并出现以下错误:ntpdate[1897]: no server suitable for synchronization found 执行:ntpdate -d time.nist.gov命令调试的时候,打印结果如下: ntpdate[1976]: ntpdate [email protected] Mon Feb  6

ntpdate同步时间时错误: no server suitable for synchronization found

故障现象: ntpdate: no server suitable for synchronization found 解决办法: ~]# ntpdate -b -u pool.ntp.org ntpdate命令帮助: ~]# man ntpdate COMMAND LINE OPTIONS -b      Force the time to be stepped using the settimeofday() system call, rather than slewed (default)

NTP-ntpdate:no server suitable for synchronization found

NTP-ntpdate 问题处理 解决ntp的错误 no server suitable for synchronization found 当用ntpdate -d 来查询时会发现导致 no server suitable for synchronization found 的错误的信息有以下2个: 错误1.Server dropped: Strata too high 在ntp客户端运行ntpdate serverIP,出现no server suitable for synchroniza

rdate时间同步ntpdate[4773] no server suitable for synchronization found解决方案

ntpdate[4773]: no server suitable for synchronization found解决方案 1.安装rdate yum install rdate -y 2.配置时区 vi /etc/sysconfig/clock ZONE="Asia/Shanghai" ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime 3.同步时间 /usr/bin/rdate -s time.nist.gov /sb

ntpdate:no server suitable for synchronization found

Question: 在使用ntpdate同步时间时,出现了no server suitable for synchronization found的报错. 通过ntpdate -d s2m.time.edu.cn 使用debug模式没有出现异常. Answer: 解决办法是,使用ntpdate -ubv s2m.time.edu.cn 可以正常同步了.主要是-u选项的作用 -u:Direct ntpdate to use an unprivileged port for outgoing pac

解决ntp的错误:no server can be used,exiting

台湾地区一台机器进行时间同步时,出现下面的错误.很显然,它提示的是不能找到主机time.stdtime.gov.tw. 所以我初步猜测是由于dns解析的问题 1 2 3 4 #  /usr/sbin/ntpdate  time.stdtime.gov.tw Error : Temporary failure in name resolution 29 Oct 14:18:59 ntpdate[25327]: can't find host time.stdtime.gov.tw 29 Oct 1

解决Jenkins的错误“The Server rejected the connection: None of the protocols were accepted”

1. 配置节点,配置好节点后,在节点机上运行已下载文件,双击执行,提示"The Server rejected the connection: None of the protocols were accepted"错误 发现是自己生成.jnlp的文件错误了,如下图,我访问Jenkins是使用的localhost.在生成.jnlp或者是jar文件时,文件路径也是localhost,导致我执行它生成好的jar包或者是launch文件,下载都会提示是从localhost:8080下载,这样

no server suitable for synchronization found

配置服务器的时间同步问题出现报错,如标题 很可能是防火墙封锁了udp的123端口, 如果关闭的防火墙问题依旧, 很可能是上层路由的设置有问题, 如果这种情况, 我们就只能通过tcp来更新时间啦那肯定是rdate 解决办法: 查看时间服务器的时间: # rdate time-b.nist.gov 设置时间和时间服务器同步: # rdate -s time-b.nist.gov # rdate -s time-b.nist.gov 同步过程中可能出现的问题: 问题1: [email protecte