V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
kalebroccoli
V2EX  ›  Ubuntu

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

  •  
  •   kalebroccoli · Jan 10, 2020 · 3035 views
    This topic created in 2303 days ago, the information mentioned may be changed or developed.

    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 replies    2020-01-10 19:38:09 +08:00
    Nitroethane
        1
    Nitroethane  
       Jan 10, 2020
    没用过 chronyc,我都是用 systemd 自带的 systemd-timesyncd 服务来做时间同步的。
    最后这个功能自己写个脚本不就解决了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2340 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 05:17 · PVG 13:17 · LAX 22:17 · JFK 01:17
    ♥ Do have faith in what you're doing.