V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
kalebroccoli
V2EX  ›  Ubuntu

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

  •  
  •   kalebroccoli · 2020-01-10 13:58:05 +08:00 · 2044 次点击
    这是一个创建于 1560 天前的主题,其中的信息可能已经有所发展或是发生改变。

    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

    1 条回复    2020-01-10 19:38:09 +08:00
    Nitroethane
        1
    Nitroethane  
       2020-01-10 19:38:09 +08:00
    没用过 chronyc,我都是用 systemd 自带的 systemd-timesyncd 服务来做时间同步的。
    最后这个功能自己写个脚本不就解决了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   964 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 21:18 · PVG 05:18 · LAX 14:18 · JFK 17:18
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.