Linux Mint Cinnamon 19.3 x64.
В закрытой локальной сети (без доступа в интернет) находится сервер с Windows Server 2003, на котором включен сервер синхронизации времени w32tm. В этой же сети находятся ПК с linux Mint 19.3, на которых настроена синхронизации времени с этим сервером. Синхронизация в локальной сети не работает, но если подключить ПК к интернету - время синхронизируется.
Никаких препятствий в виде роутеров в защищенной сети нет. ПК с Виндой, находящиеся в этой сети успешно синхронизируются.
Пробовал синхронизацию с помощью timedatectl и ntp, прописав в конфигурационные файлы айпи сервера (т.е. 192.168.3.1, он же kmis-3). Он появляется в списке серверов времени, отображается разница во времени между компьютерами, но синхронизация времени не работает. ЕСЛИ выполнить команду ntpdate 192.168.3.1 - то время синхронизируется.
Удалил ntp, выключил timedatectl, установил chronyc. Не синхронизирует :(
Файл настроек: sudo xed /etc/chrony/chrony.conf
# Welcome to the chrony configuration file. See chrony.conf(5) for more
# information about usuable directives.
# This will use (up to):
# - 4 sources from ntp.ubuntu.com which some are ipv6 enabled
# - 2 sources from 2.ubuntu.pool.ntp.org which is ipv6 enabled as well
# - 1 source from [01].ubuntu.pool.ntp.org each (ipv4 only atm)
# This means by default, up to 6 dual-stack and up to 2 additional IPv4-only
# sources will be used.
# At the same time it retains some protection against one of the entries being
# down (compare to just using one of the lines). See (LP: #1754358) for the
# discussion.
#
# About using servers from the NTP Pool Project in general see (LP: #104525).
# Approved by Ubuntu Technical Board on 2011-02-08.
# See http://www.pool.ntp.org/join.html for more information.
pool 192.168.3.1 iburst maxsources 1
#pool ntp.ubuntu.com iburst maxsources 4
# This directive specify the location of the file containing ID/key pairs for
# NTP authentication.
keyfile /etc/chrony/chrony.keys
# This directive specify the file into which chronyd will store the rate
# information.
driftfile /var/lib/chrony/chrony.drift
# Uncomment the following line to turn logging on.
#log tracking measurements statistics
# Log files location.
logdir /var/log/chrony
# Stop bad estimates upsetting machine clock.
maxupdateskew 100.0
# This directive enables kernel synchronisation (every 11 minutes) of the
# real-time clock. Note that it can’t be used along with the 'rtcfile' directive.
rtcsync
# Step the system clock instead of slewing it if the adjustment is larger than
# one second, but only in the first three clock updates.
makestep 1 3
# information about usuable directives.
# This will use (up to):
# - 4 sources from ntp.ubuntu.com which some are ipv6 enabled
# - 2 sources from 2.ubuntu.pool.ntp.org which is ipv6 enabled as well
# - 1 source from [01].ubuntu.pool.ntp.org each (ipv4 only atm)
# This means by default, up to 6 dual-stack and up to 2 additional IPv4-only
# sources will be used.
# At the same time it retains some protection against one of the entries being
# down (compare to just using one of the lines). See (LP: #1754358) for the
# discussion.
#
# About using servers from the NTP Pool Project in general see (LP: #104525).
# Approved by Ubuntu Technical Board on 2011-02-08.
# See http://www.pool.ntp.org/join.html for more information.
pool 192.168.3.1 iburst maxsources 1
#pool ntp.ubuntu.com iburst maxsources 4
# This directive specify the location of the file containing ID/key pairs for
# NTP authentication.
keyfile /etc/chrony/chrony.keys
# This directive specify the file into which chronyd will store the rate
# information.
driftfile /var/lib/chrony/chrony.drift
# Uncomment the following line to turn logging on.
#log tracking measurements statistics
# Log files location.
logdir /var/log/chrony
# Stop bad estimates upsetting machine clock.
maxupdateskew 100.0
# This directive enables kernel synchronisation (every 11 minutes) of the
# real-time clock. Note that it can’t be used along with the 'rtcfile' directive.
rtcsync
# Step the system clock instead of slewing it if the adjustment is larger than
# one second, but only in the first three clock updates.
makestep 1 3
Код: Выделить всё
user@user-desktop:~$ chronyc sources
210 Number of sources = 1
MS Name/IP address Stratum Poll Reach LastRx Last sample
===============================================================================
^? kmis-3 1 8 200 29m -2951m[ -2951m] +/- 10.1s
Код: Выделить всё
user@user-desktop:~$ chronyc tracking
Reference ID : 00000000 ()
Stratum : 0
Ref time (UTC) : Thu Jan 01 00:00:00 1970
System time : 0.000000003 seconds fast of NTP time
Last offset : +0.000000000 seconds
RMS offset : 0.000000000 seconds
Frequency : 22.041 ppm fast
Residual freq : +0.000 ppm
Skew : 0.000 ppm
Root delay : 1.000000000 seconds
Root dispersion : 1.000000000 seconds
Update interval : 0.0 seconds
Leap status : Not synchronised
Код: Выделить всё
user@user-desktop:~$ systemctl status chronyd
● chrony.service - chrony, an NTP client/server
Loaded: loaded (/lib/systemd/system/chrony.service; enabled; vendor preset: e
Active: active (running) since Mon 2022-01-10 07:36:16 MSK; 1h 12min ago
Docs: man:chronyd(8)
man:chronyc(1)
man:chrony.conf(5)
Process: 901 ExecStartPost=/usr/lib/chrony/chrony-helper update-daemon (code=e
Process: 870 ExecStart=/usr/lib/systemd/scripts/chronyd-starter.sh $DAEMON_OPT
Main PID: 897 (chronyd)
Tasks: 1 (limit: 4477)
CGroup: /system.slice/chrony.service
└─897 /usr/sbin/chronyd
янв 10 07:36:16 user-desktop systemd[1]: Starting chrony, an NTP client/server..
янв 10 07:36:16 user-desktop chronyd[897]: chronyd version 3.2 starting (+CMDMON
янв 10 07:36:16 user-desktop chronyd[897]: Frequency 22.041 +/- 1.070 ppm read f
янв 10 07:36:16 user-desktop systemd[1]: Started chrony, an NTP client/server.
янв 10 07:47:51 user-desktop chronyd[897]: System clock was stepped by -0.000000
янв 10 08:18:57 user-desktop chronyd[897]: System clock was stepped by -0.000000
янв 10 08:20:25 user-desktop chronyd[897]: System clock was stepped by -0.000000
lines 1-20/20 (END)
Код: Выделить всё
user@user-desktop:~$ sudo chronyc makestep
200 OK
timedatectl, на всякий случай:
Код: Выделить всё
user@user-desktop:~$ timedatectl
Local time: Пн 2022-01-10 08:50:04 MSK
Universal time: Пн 2022-01-10 05:50:04 UTC
RTC time: Пн 2022-01-10 08:50:05
Time zone: Europe/Moscow (MSK, +0300)
System clock synchronized: no
systemd-timesyncd.service active: no
RTC in local TZ: yes
Warning: The system is configured to read the RTC time in the local time zone.
This mode can not be fully supported. It will create various problems
with time zone changes and daylight saving time adjustments. The RTC
time is never updated, it relies on external facilities to maintain it.
If at all possible, use RTC in UTC by calling
'timedatectl set-local-rtc 0'.