Precise time synchronization of solaris servers with NTP over LAN / WAN

ntpsolaristimetime-synchronization

I have 2 servers on a LAN that I want to precisely synchronize.
the goal is to have a time difference < 500 microseconds, constant, with no drift (from what I've found on the web, this is achievable accuracy).

those two servers must also have "correct" time but the accuracy is less important (within 1 second of the "real" time is acceptable). the "official" time servers are only accessible through a WAN (so latency – accuracy is higher).

what's the best way to proceed ?
so far, I've set up server A as a NTP client to official time servers, and server B as a NTP client to server A.
NTP have been running for more than a day, drift file are updated regularly, however I can still see that time is drifting between server A & B (around 1ms every 55 seconds – very regular drift).

any idea / comment ?

thanks

Best Answer

I have 2 "internal" servers. On each one I have a configuration similar to this one

peer <otherserver>

server <reliable1.external.source>
server <reliable2.external.source>

restrict 127.0.0.1
restrict <otherserver>
restrict <reliable1.external.source> kod notrap nomodify
restrict <reliable2.external.source> kod notrap nomodify
restrict <ntpclients> nomodify notrap nopeer
restrict default ignore

driftfile /var/lib/ntp/drift

On Solaris 10 I have enabled svcadm enable ntp4.

BTW I would consider buying a GPS+NTPd clock...