Hosting an NTP server on a standalone network

12,712

You're creating an island time zone. In effect you're creating a new Stratum 1 server for your network, and that can get tricky.

The fix for it is to use:

tos orphan

In your ntp.conf file. That tells NTP that your timezone is orphaned. But you need a new enough version (4.2.2) to use it. If you can't use, then use:

server 127.127.0.1
fudge 127.127.0.1 stratum 1

Also known as 'Undisciplined Local Clock'. Though I strongly recommend creating time pool, multiple servers who provide time mutually. It'll help slow down clock-drift.

server 127.127.0.1
peer 192.168.100.66
peer 192.168.100.69

And finally, if at all possible, using a GPS time-source is very well supported and will keep your time island close to true.

Share:
12,712

Related videos on Youtube

cdated
Author by

cdated

I like shells.

Updated on September 17, 2022

Comments

  • cdated
    cdated almost 2 years

    I have a LAN that is not connected to the internet, and I am trying to sychronize all the machines, Windows and Linux, to an NTP server. All I've been able to find is setting up an NTP client with an internet NTP server.

    How can I setup my own Linux NTP server, or find good documentation on how?

    • Cory J
      Cory J about 14 years
      Try googling for "openntpd" (the server) and "ntpdate" (the client).
  • kbulgrien
    kbulgrien almost 10 years
    According to support.ntp.org/bin/view/Support/OrphanMode 'tos orphan' requires an integer following to specify what time reference stratum server level must be unreachable before the ntpd process(es) switch to Orphan Mode. Placing just 'tos orphan' in the configuration file of a version 4.2.6 ntpd server gives an error like 'syntax error, unexpected T_EOC, expecting T_Integer'.