ntp.conf 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. ## /etc/ntp/ntp.conf
  2. ##
  3. ## Sample NTP configuration file.
  4. ## See package 'ntp-doc' for documentation, Mini-HOWTO and FAQ.
  5. ## Radio and modem clocks by convention have addresses in the
  6. ## form 127.127.t.u, where t is the clock type and u is a unit
  7. ## number in the range 0-3.
  8. ##
  9. ## Most of these clocks require support in the form of a
  10. ## serial port or special bus peripheral. The particular
  11. ## device is normally specified by adding a soft link
  12. ## /dev/device-u to the particular hardware device involved,
  13. ## where u correspond to the unit number above.
  14. ##
  15. ## Generic DCF77 clock on serial port (Conrad DCF77)
  16. ## Address: 127.127.8.u
  17. ## Serial Port: /dev/refclock-u
  18. ##
  19. ## (create soft link /dev/refclock-0 to the particular ttyS?)
  20. ##
  21. # server 127.127.8.0 mode 5 prefer
  22. ## Undisciplined Local Clock. This is a fake driver intended for backup
  23. ## and when no outside source of synchronized time is available.
  24. ##
  25. server 127.127.1.0 # local clock (LCL)
  26. fudge 127.127.1.0 stratum 10 # LCL is unsynchronized
  27. ## Outside source of synchronized time
  28. ##
  29. ## server xx.xx.xx.xx # IP address of server
  30. ## Miscellaneous stuff
  31. driftfile /var/lib/ntp/drift/ntp.drift # path for drift file
  32. logfile /var/log/ntp # alternate log file
  33. # logconfig =syncstatus + sysevents
  34. # logconfig =all
  35. # statsdir /tmp/ # directory for statistics files
  36. # filegen peerstats file peerstats type day enable
  37. # filegen loopstats file loopstats type day enable
  38. # filegen clockstats file clockstats type day enable
  39. # Authentication stuff
  40. #
  41. # keys /etc/ntp.keys # path for keys file
  42. # trustedkey 1 2 3 4 5 6 14 15 # define trusted keys
  43. # requestkey 15 # key (7) for accessing server variables
  44. # controlkey 15 # key (6) for accessing server variables