小编JPh*_*618的帖子

为什么 NTP 同步到本地而不是远程服务器?

所以,我正在尝试调试我当前的 NTP 设置,发现他与我的单个配置服务器的偏移超过 3 秒,并且没有调整。ntpq 输出中 LOCAL(0) 上的星号似乎表明系统正在愉快地与自身同步,而不是 10.130.33.201 服务器(这是我们系统上的另一个我们希望所有内容都同步到的 linux 机器)。

ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 10.130.33.201   LOCAL(0)         9 u   49   64  377    0.242  -3742.2   1.049
*LOCAL(0)        .LOCL.          10 l    2   64  377    0.000    0.000   0.001
Run Code Online (Sandbox Code Playgroud)

这是我的 ntp.conf 文件。由其他人撰写,所以我不能 100% 确定一切都是正确的。

server 10.130.33.201 burst iburst minpoll 4 maxpoll 11
driftfile /mnt/active/etc/ntp.drift

restrict -4 default  nomodify nopeer notrap
restrict -6 default  ignore

# Undisciplined Local Clock. This is a fake driver intended …
Run Code Online (Sandbox Code Playgroud)

ntp ntpd

11
推荐指数
2
解决办法
6万
查看次数

标签 统计

ntp ×1

ntpd ×1