Useful ntp server configuration settings

All configuration settings go into /etc/ntp.conf.

Limiting ntp server to one network interface (plus localhost):

interface ignore wildcard
interface listen eth0

Make local hardware clock work as a backup ntp source with high stratum (set it to 0 if local hardware clock is set by some other external time source):

server 127.127.1.0
fudge 127.127.1.0 stratum 8

Never give up synchronising even if clock difference is very large:

tinker panic 0

Increase the number of candidate servers (default 3 -> 5) and servers used by the selection algorithm to set the system clock (default 1 -> 2):

tos minclock 5
tos minsane 2

 

Share