Всем привет!
Столкнулся с непонятной проблемой.
Не могу прописать сервер для синхронизации времени в файле /etc/ntp.conf
Команда ntpq -p показывает что никакие сервера не заданы в настройках
stdds@stdds-GA-78LMT-S2:~$ sudo ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
_gateway .INIT. 16 u - 512 0 0.000 0.000 0.000
Содержимое файл /etc/ntp.conf
# /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help
driftfile /var/lib/ntp/ntp.drift
# Leap seconds definition provided by tzdata
leapfile /usr/share/zoneinfo/leap-seconds.list
# Enable this if you want statistics to be logged.
#statsdir /var/log/ntpstats/
statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable
# Specify one or more NTP servers.
# Use servers from the NTP Pool Project. Approved by Ubuntu Technical Board
# on 2011-02-08 (LP: #104525). See http://www.pool.ntp.org/join.html for
# more information.
#pool 0.ubuntu.pool.ntp.org iburst
#pool 1.ubuntu.pool.ntp.org iburst
#pool 2.ubuntu.pool.ntp.org iburst
#pool 3.ubuntu.pool.ntp.org iburst
server 192.168.0.8
# Use Ubuntu's ntp server as a fallback.
#pool ntp.ubuntu.com
# Access control configuration; see /usr/share/doc/ntp-doc/html/accopt.html for
# details. The web page <http://support.ntp.org/bin/view/Support/AccessRestrictions>
# might also be helpful.
#
# Note that "restrict" applies to both servers and clients, so a configuration
# that might be intended to block requests from certain clients could also end
# up blocking replies from your own upstream servers.
# By default, exchange time with everybody, but don't allow configuration.
restrict -4 default kod notrap nomodify nopeer noquery limited
restrict -6 default kod notrap nomodify nopeer noquery limited
# Local users may interrogate the ntp server more closely.
restrict 127.0.0.1
restrict ::1
# Needed for adding pool entries
restrict source notrap nomodify noquery
# Clients from this (example!) subnet have unlimited access, but only if
# cryptographically authenticated.
#restrict 192.168.123.0 mask 255.255.255.0 notrust
# If you want to provide time to your local subnet, change the next line.
# (Again, the address is an example only.)
#broadcast 192.168.123.255
# If you want to listen to time broadcasts on your local subnet, de-comment the
# next lines. Please do this only if you trust everybody on the network!
#disable auth
#broadcastclient
Статус сервиса NTP
stdds@stdds-GA-78LMT-S2:~$ sudo service ntp status
● ntp.service - Network Time Service
Loaded: loaded (/lib/systemd/system/ntp.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2020-09-09 21:52:44 MSK; 5min ago
Docs: man:ntpd(8)
Process: 3763 ExecStart=/usr/lib/ntp/ntp-systemd-wrapper (code=exited, status=0/SUCCESS)
Main PID: 3784 (ntpd)
Tasks: 2 (limit: 19033)
Memory: 1.7M
CGroup: /system.slice/ntp.service
└─3784 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -c /run/ntp.conf.dhcp -u 123:135
сен 09 21:52:44 stdds-GA-78LMT-S2 ntpd[3784]: Listen and drop on 1 v4wildcard 0.0.0.0:123
сен 09 21:52:44 stdds-GA-78LMT-S2 ntpd[3784]: Listen normally on 2 lo 127.0.0.1:123
сен 09 21:52:44 stdds-GA-78LMT-S2 ntpd[3784]: Listen normally on 3 enp2s0 192.168.2.110:123
сен 09 21:52:44 stdds-GA-78LMT-S2 ntpd[3784]: Listen normally on 4 wlxc83a35cb2e3f 192.168.0.6:123
сен 09 21:52:44 stdds-GA-78LMT-S2 ntpd[3784]: Listen normally on 5 lo [::1]:123
сен 09 21:52:44 stdds-GA-78LMT-S2 ntpd[3784]: Listen normally on 6 enp2s0 [fe80::feaa:14ff:febb:95b%2]:123
сен 09 21:52:44 stdds-GA-78LMT-S2 ntpd[3784]: Listen normally on 7 wlxc83a35cb2e3f [fe80::7d36:6b5f:de36:1931%3]:123
сен 09 21:52:44 stdds-GA-78LMT-S2 ntpd[3784]: Listening on routing socket on fd #24 for interface updates
сен 09 21:52:44 stdds-GA-78LMT-S2 ntpd[3784]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized
сен 09 21:52:44 stdds-GA-78LMT-S2 ntpd[3784]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized