I want to sync my RPI 3 to a local time server.
I've installed ntp using apt-get.
I edited the file /etc/ntp.conf and added the following line server [ip-address].
I restarted ntp using sudo service ntp restart and even rebooted the pi.
The time and date will not set correctly. It is off a couple of days, hours and minutes. It's like you start the RPI for the first time and the time has not been set once.
The local time server is alive.
I am using the RPI in a corporate environment.
Edit:
ntpq -p now gives me the following output:
10.10.10.2 ( 1.2.3.4 2 u 56 64 3 0.492 1424814 9.260
srv24.globale-g .INIT. 16 u - 64 0 0.000 0.000 0.000
sigma.shadowchi .INIT. 16 u - 64 0 0.000 0.000 0.000
p5099c3bf.dip0. .INIT. 16 u - 64 0 0.000 0.000 0.000
stratum2-1.ntp. .INIT. 16 u - 64 0 0.000 0.000 0.000
With 10.10.10.2 being the local time server. I removed the "iburst" parameter in /etc/ntp.conf.
Edit 2:
The sync does kind of work now, after starting ntp using sudo service ntp start and sudo update-rc.d ntp defaults. The time syncs from time to time, but I don't know why and when.
ntpdSee https://raspberrypi.stackexchange.com/a/73721/8697 – Milliways Dec 21 '17 at 21:58