Code: Select all
NTP=10.223.11.57
Si le fichier est d'origine:
Code: Select all
# Most distributions have NTP support.
#option ntp_servers
Code: Select all
# Most distributions have NTP support.
#option ntp_serversCode: Select all
[Time]
NTP=192.168.1.218
FallbackNTP=mafreebox.free.fr ntp2.jussieu.fr 0.fr.pool.ntp.orgTime

Code: Select all
sudo systemctl restart systemd-timesyncdCode: Select all
FallbackNTP=ntp2.jussieu.fr 0.fr.pool.ntp.orgTimeCode: Select all
pi@raspberrypi:~ $ grep timesync /var/log/syslog
Jun 2 11:05:43 raspberrypi systemd-timesyncd[224]: Synchronized to time server for the first time [2606:4700:f1::123]:123 (2.debian.pool.ntp.org).
Jun 2 12:18:48 raspberrypi systemd-timesyncd[214]: Synchronized to time server for the first time [2001:41d0:1008:1a1d::1]:123 (2.debian.pool.ntp.org).
Jun 2 12:24:09 raspberrypi systemd[1]: systemd-timesyncd.service: Succeeded.
Jun 2 12:24:10 raspberrypi systemd-timesyncd[938]: Synchronized to time server for the first time 192.168.155.9:123 (srvr-ntp).
Jun 2 12:59:02 raspberrypi ifup[252]: Warning: The unit file, source configuration file or drop-ins of systemd-timesyncd.service changed on disk. Run 'systemctl daemon-reload' to reload units.
Jun 2 12:59:02 raspberrypi systemd[1]: systemd-timesyncd.service: Succeeded.
Jun 2 12:59:19 raspberrypi systemd-timesyncd[314]: Synchronized to time server for the first time 192.168.155.9:123 (srvr-ntp).
Jun 2 13:03:20 raspberrypi systemd[1]: systemd-timesyncd.service: Succeeded.
Jun 2 13:03:21 raspberrypi systemd-timesyncd[560]: Synchronized to time server for the first time 192.168.155.9:123 (192.168.155.9).
Jun 2 13:03:44 raspberrypi systemd[1]: systemd-timesyncd.service: Succeeded.
Jun 2 13:03:45 raspberrypi systemd-timesyncd[604]: Synchronized to time server for the first time 192.168.155.9:123 (192.168.155.9).
Code: Select all
pi@raspberrypi:~ $ grep timesync /var/log/syslog I've created /lib/dhcpcd/dhcpcd-hooks/50-timesyncd.conf containing the following:
Code: Select all
# Set NTP servers for systemd-timesyncd
confd=/run/systemd/timesyncd.conf.d
set_servers() {
mkdir -p "$confd"
(
echo "# Created by dhcpcd hook"
echo "[Time]"
echo "NTP=$new_ntp_servers"
) > "$confd/dhcp-ntp.conf"
# Tell timesyncd it has an updated configuration
systemctl try-reload-or-restart systemd-timesyncd
}
if $if_up; then
set_servers
fi
Code: Select all
ntp.unice.frCe réseau est isolé d'internet, donc cela ne fonctionnera pas.Ta dernière synchronisation date du 29 Mai à 14:39:25 depuis le serveur que tu lui indique ne répond pas dans les temps.
essaye en mettant un serveur connu, par exemple
Code: Select all
ntp.unice.fr
et dis nous si le RPI se synchronise