Ntp server in 2304

Доброго дня
Установил 2304 с нуля.
Welcome to Wiren Board 6.8.1 (s/n AAZW2DHN), release wb-2304 (as stable)
Linux wirenboard-AAZW2DHN 5.10.35-wb133 #1 Tue Feb 21 08:07:14 UTC 2023 armv7l GNU/Linux

Помогите пож настроить Ntp server . На прошлом релизе получалось …
root@wirenboard-AAZW2DHN:~# apt-get install ntp
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
ntp is already the newest version (1:4.2.8p15+dfsg-1).
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
root@wirenboard-AAZW2DHN:~# systemctl enable ntp || update-rc.d ntp defaults
Synchronizing state of ntp.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable ntp
root@wirenboard-AAZW2DHN:~# systemctl start ntp || service ntp start
root@wirenboard-AAZW2DHN:~# timedatectl
Local time: Fri 2023-04-14 09:30:08 MSK
Universal time: Fri 2023-04-14 06:30:08 UTC
RTC time: Fri 2023-04-14 06:30:08
Time zone: Europe/Moscow (MSK, +0300)
System clock synchronized: no
NTP service: n/a
RTC in local TZ: no
root@wirenboard-AAZW2DHN:~# /etc/init.d/ntpd start
-bash: /etc/init.d/ntpd: No such file or directory
root@wirenboard-AAZW2DHN:~# ntpstat
unsynchronised
polling server every 8 s

root@wirenboard-AAZW2DHN:~# ping 0.debian.pool.ntp.org
PING 0.debian.pool.ntp.org (193.192.36.3) 56(84) bytes of data.
64 bytes from nsa.lds.net.ua (193.192.36.3): icmp_seq=1 ttl=57 time=24.7 ms
64 bytes from nsa.lds.net.ua (193.192.36.3): icmp_seq=2 ttl=57 time=25.3 ms
64 bytes from nsa.lds.net.ua (193.192.36.3): icmp_seq=3 ttl=57 time=25.3 ms
^C
0.debian.pool.ntp.org ping statistics —
3 packets transmitted, 3 received, 0% packet loss, time 2004ms
rtt min/avg/max/mdev = 24.733/25.092/25.291/0.254 ms
root@wirenboard-AAZW2DHN:~#

Добрый день.
Не совсем понимаю, что именно хотите настроить. Ntpd уде установлен и работает.

Посмотрите пож вот этот вывод

root@wirenboard-AAZW2DHN:~# timedatectl
Local time: Fri 2023-04-14 09:30:08 MSK
Universal time: Fri 2023-04-14 06:30:08 UTC
RTC time: Fri 2023-04-14 06:30:08
Time zone: Europe/Moscow (MSK, +0300)
System clock synchronized: no
NTP service: n/a
RTC in local TZ: no
root@wirenboard-AAZW2DHN:~# /etc/init.d/ntpd start
-bash: /etc/init.d/ntpd: No such file or directory
root@wirenboard-AAZW2DHN:~# ntpstat
unsynchronised
polling server every 8 s

Говорит не работает… Разве не так ?

Зачем пытаетесь использовать скрипты?
В контроллере systemd двно, соответственно надо использовать systemctl

А можно полную команду, как запустить ntpd?

так ?
root@wirenboard-AAZW2DHN:~# service ntp start
root@wirenboard-AAZW2DHN:~# ntpstat
unsynchronised
polling server every 8 s
root@wirenboard-AAZW2DHN:~# timedatectl
Local time: Fri 2023-04-14 13:18:08 MSK
Universal time: Fri 2023-04-14 10:18:08 UTC
RTC time: Fri 2023-04-14 10:18:08
Time zone: Europe/Moscow (MSK, +0300)
System clock synchronized: no
NTP service: n/a
RTC in local TZ: no
root@wirenboard-AAZW2DHN:~#

Вот еще
root@wirenboard-AAZW2DHN:~# systemctl | grep ntp
ntp.service loaded active running Network Time Service
root@wirenboard-AAZW2DHN:~# systemctl status ntp
● ntp.service - Network Time Service
Loaded: loaded (/lib/systemd/system/ntp.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2023-04-14 09:19:39 MSK; 4h 26min ago
Docs: man:ntpd(8)
Main PID: 2437 (ntpd)
Tasks: 2 (limit: 1146)
Memory: 1.6M
CPU: 58.281s
CGroup: /system.slice/ntp.service
└─2437 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -c /run/ntp.conf.dhcp -u 101:103

Apr 14 09:19:37 wirenboard-AAZW2DHN ntpd[2437]: Listen normally on 5 eth1 [fe80::eaeb:1bff:fe33:f798%2]:123
Apr 14 09:19:37 wirenboard-AAZW2DHN ntpd[2437]: Listening on routing socket on fd #22 for interface updates
Apr 14 09:19:39 wirenboard-AAZW2DHN systemd[1]: Started Network Time Service.
Apr 14 09:19:46 wirenboard-AAZW2DHN ntpd[2437]: Listen normally on 6 wlan0 192.168.42.1:123
Apr 14 09:19:46 wirenboard-AAZW2DHN ntpd[2437]: bind(26) AF_INET6 fe80::2618:c6ff:fe77:cba4%5#123 flags 0x11 failed: Cannot assign >
Apr 14 09:19:46 wirenboard-AAZW2DHN ntpd[2437]: unable to create socket on wlan0 (7) for fe80::2618:c6ff:fe77:cba4%5#123
Apr 14 09:19:46 wirenboard-AAZW2DHN ntpd[2437]: failed to init interface for address fe80::2618:c6ff:fe77:cba4%5
Apr 14 09:19:46 wirenboard-AAZW2DHN ntpd[2437]: new interface(s) found: waking up resolver
Apr 14 09:19:48 wirenboard-AAZW2DHN ntpd[2437]: Listen normally on 8 wlan0 [fe80::2618:c6ff:fe77:cba4%5]:123
Apr 14 09:19:48 wirenboard-AAZW2DHN ntpd[2437]: new interface(s) found: waking up resolver

Запущен и не работает ?

root@wirenboard-AAZW2DHN:~# more /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

You do need to talk to an NTP server or two (or three).

#server ntp.your-provider.example

pool.ntp.org maps to about 1000 low-stratum NTP servers. Your server will

pick a different set every time it starts up. Please consider joining the

pool: http://www.pool.ntp.org/join.html

pool 0.debian.pool.ntp.org iburst
pool 1.debian.pool.ntp.org iburst
pool 2.debian.pool.ntp.org iburst
pool 3.debian.pool.ntp.org iburst

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 10.1.133.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
root@wirenboard-AAZW2DHN:~#

Используйте ipv4. Сервера не поодерживают v6.

Извините . Можно ли указать что надо конкретно сделать , чтобы команда ntpstat показала статус синхронизировано ?

IPV6 - я не использую и оно мне не нужно …

Еще раз перепрошил контроллер . Вопрос решен

Эта тема была автоматически закрыта через 7 дней после последнего ответа. В ней больше нельзя отвечать.