I'd like to synch time on all my laptops inside my local network which use a router but it has no access to public internet so I can't use remote time servers.
I would like to use a laptop to act like a NTP server and make all the other laptops to synch to this NTP server.
I'm trying to use ntp and my ntp.conf file is this one:
# /etc/ntp.conf, file di configurazione for ntpd
# File nel quale scrivere la frequenza di scostamento dal clock di sistema.
driftfile /var/lib/ntp/ntp.drift
# Statistiche
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
#server 2.it.pool.ntp.org iburst
#server 1.europe.pool.ntp.org iburst
#server 3.europe.pool.ntp.org iburst
server 192.168.1.11 #my NTP server IP address
# È permesso "dialogare" con chiunque (via ipv4 e via ipv6) ma non sono autorizzate configurazioni
restrict -4 default kod notrap nomodify nopeer noquery
restrict -6 default kod notrap nomodify nopeer noquery
# Utenti locali
restrict 127.0.0.1
restrict ::1
but when I run ntpq -p
on the NTP server laptop it seems it isn't working:
sudo ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
Evangelion01 .INIT. 16 u - 64 0 0.000 0.000 0.000
Can you help me, please? I tried to solve this problem for the whole day by looking on google, but I found nothing useful, unfortunately.
Thank you
/etc/chrony/chrony.conf
. I would think that the most relevant lines in your case would beserver offline
andlocal stratum 10
to indicate that you wantchronyd
to act as an independent time server, which clients are allowed to poll over the local network.