Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have 2 linux machines, they do not have internet connectivity or any other means of getting an external clock.

I need one of them to act as the "master"/server and the other machine to sync it's clock to that server. It's not important that the time is correct, it's only important that the time is the same on these 2 machines.

So, give I have a server ( and a client (, how do I set up /etc/ntp.conf on these 2 machines respectivly ?

share|improve this question
up vote 2 down vote accepted

I think what you want to do is, on the master, tell it to use the system clock (which has a "fake" IP address of as a reference clock, and use the fudge option to assign that to a stratum. If you'll never connect to the Internet, it doesn't really matter what stratum you assign. Then tell the slave(s) to use the master as their server.

Using NTP without access to the Internet gives concrete examples of the syntax.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.