linux ntp 本机同步,linux – NTP与本地时间服务器同步,但不与NTP池服务器同步

我在另一个子网中的计算机上设置了一个NTP服务器,并尝试将我的计算机与服务器联系起来并且运行良好.但是,当我尝试使用pool.ntp.org服务器(我尝试过0.pool.ntp.org,1.pool.ntp.org等,只有pool.ntp.org服务器)时,它不会同步.

pool.ntp.org上的nslookup以及0.pool.ntp.org提供了正确的DNS解析,ping也适用于nslookup返回的IP.

为UDP grepped的iptables输出如下:

[2月10日星期二12:39:14 root @ root-ubuntu:〜] #iptables -L -n -v | grep udp

92 13001 ACCEPT udp -- * * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED

0 0 ACCEPT udp -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:123

0 0 ACCEPT udp -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:161

0 0 ACCEPT udp -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:443

0 0 ACCEPT udp -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:623

0 0 ACCEPT udp -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:389

0 0 ACCEPT udp -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:636

0 0 ACCEPT udp -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:3268

0 0 ACCEPT udp -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:3269

netstat命令的输出如下:

[2月10日星期二12:35:51 root @ root-ubuntu:〜] #netstat -a | grep udp

udp 0 0 localhost:9473 0.0.0.0:*

udp 0 0 0.0.0.0:asf-rmcp 0.0.0.0:*

udp 0 0 173.39.22.123:ntp 0.0.0.0:*

udp 0 0 localhost:ntp 0.0.0.0:*

udp 0 0 0.0.0.0:ntp 0.0.0.0:*

udp 0 0 all-systems.mcast.net:23000 0.0.0.0:*

udp 0 0 ::1:ntp ::%628620:*

udp 0 0 fe80::222:bdff:feea:9f1f:ntp ::%628620:*

udp 0 0 fe80::222:bdff:feea:9f20:ntp ::%628620:*

udp 0 0 :::ntp ::%628620:*

我无法弄清楚为什么同步问题只发生在池服务器而不是本地服务器上.我系统中的UDP端口已启动.服务器已启动.然而时间不同步(它仍然显示2月10日)

[编辑]

添加我的.conf文件:

driftfile /tmp/ntp.drift/

服务器0.pool.ntp.org

添加ntpq -p数据:

[Thu Feb 10 14:13:51 root @ root-ubuntu:〜] #ntpq -p 0.pool.ntp.org

remote refid st t when poll reach delay offset jitter

==============================================================================

*64.147.116.229 .ACTS. 1 u 151 1024 377 2.439 -0.632 0.052

+131.107.13.100 .ACTS. 1 u 879 1024 377 27.853 1.041 0.539

-time.nrc.ca 132.246.11.231 2 u 989 1024 377 86.821 -4.132 8.778

-time1.chu.nrc.c 209.87.233.52 2 u 53 1024 377 109.221 3.153 9.377

+dense.utcc.utor 128.100.200.166 2 u 88 1024 377 64.115 -1.841 0.454

-dns4.utoronto.c 128.100.103.253 2 u 167 1024 377 65.252 -43.422 56.093

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值