I have a raspberry pi hooked up to a local network where there is not internet acces. I have configured a computer to act as a timesever (windows timeservice). The timeserver has the ip 192.168.6.1 and the raspberry has the ip 192.168.6.83.
I have been reading about NTP and how to configure NTP. My configuration file (/etc/ntp.conf) looks like:
tinker panic 0 server 192.168.6.1 prefer true iburst driftfile /var/lib/ntp/ntp.drift logfile /var/log/ntp.log minpoll 4 maxpoll 5
The output of the "ntpq -pn" command is:
remote refid st t when poll reach delay offset jitter =============================================================================== 192.168.6.1 192.168.6.82 3 u 23 64 3 0.652 1836879 2.136
There is a large offset but if I understood it correctly this shouldn't matter because of the 'tinker panic 0' line in the configuration file.
I know the server is working correctly because I can sync the right time with the command:
sudo sntp -s 192.168.6.1
I want the raspberry to sync with the server, no matter what the offset is. And it should go automatically. I want the raspberry to sync when it boots and then keep syncing.
I know about the post here but this uses the ntpdate which seems to be depreciated.