User Tools

Site Tools


ntp_not_working

ntp not working

If NTP stops working make sure you have the following file, if not crate it and you should be fine.
nano /var/lib/ntp/ntp.drift

if it is empty edit the following:

driftfile /var/lib/ntp/ntp.drift
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 ntp.ubuntu.com
server 0.europe.pool.ntp.org
server 1.europe.pool.ntp.org
server 2.europe.pool.ntp.org
server 3.europe.pool.ntp.org
restrict -4 default kod notrap nomodify nopeer noquery
restrict -6 default kod notrap nomodify nopeer noquery
restrict 127.0.0.1
restrict ::1

save the file and do:

sudo /etc/init.d/ntp stop
sudo ntpdate 0.north-america.pool.ntp.org
sudo /etc/init.d/ntp start

after that you should be fine.


Your ArtIT Team

BACK

ntp_not_working.txt · Last modified: 2018/07/10 18:46 by chris