2

I have Raspberry Pi Model-B with the Raspbian Wheezy OS and a local NTP server. I want to synchronise my Raspberry Pi board with my local NTP server (not using the Internet). All the process must be offline, not using the Internet.

What is the step-by-step process to do this? How can I add my server's IP address?

Greenonline
  • 2,969
  • 5
  • 27
  • 38
Prashant sharma
  • 149
  • 1
  • 1
  • 2

1 Answers1

3

This answer is OBSOLETE. Debian 9 uses systemd-timesyncd.service

In /etc/ntpd.conf, replace the existing "server" entries with one for your server. You can use the hostname or IP address of your server.

For example:

server  192.168.1.15

After changing the file,

sudo service ntp restart

will restart the NTP daemon using your updated configuration.

Use

$ sudo ntpq
ntpq> peers

to verify that it's using your host as a peer. If everything is working, you should see non-zero values in the "when" and "reach" columns.

Milliways
  • 62,573
  • 32
  • 113
  • 225
TomG
  • 1,181
  • 2
  • 10
  • 22