局域网里 NTP chronyc 服务无同步问题

2020-01-10 13:58:05 +08:00
 kalebroccoli

OS:ubuntu 16.04.2 防火墙关闭 在局域网有 3 台主机,3 台机器无法访问互联网。 ntp server 10.100.0.10 host1: 10.100.0.11 host2: 10.100.0.12 安装 chronyc 之后 host1 和 host2 无法与 ntpserver 同步 timedatectl status

https://i.stack.imgur.com/WQ9vp.png

ntpserver config

https://i.stack.imgur.com/VnWdu.png

host1 config

https://i.stack.imgur.com/suVsH.png

如何设置才能让 host1 和 host2 同步 ntpserver 的时间 另外:timedatectl 在联网的时候状态为:NTP synchronized: yes 不联网的时候 状态为:NTP synchronized: no

2068 次点击
所在节点    Ubuntu
1 条回复
Nitroethane
2020-01-10 19:38:09 +08:00
没用过 chronyc,我都是用 systemd 自带的 systemd-timesyncd 服务来做时间同步的。
最后这个功能自己写个脚本不就解决了

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/636813

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX