Advertisement
Guest User

/etc/ntp.conf

a guest
Dec 25th, 2014
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.03 KB | None | 0 0
  1. ################################################################################
  2. ## /etc/ntp.conf
  3. ##
  4. ## Sample NTP configuration file.
  5. ## See package 'ntp-doc' for documentation, Mini-HOWTO and FAQ.
  6. ## Copyright (c) 1998 S.u.S.E. GmbH Fuerth, Germany.
  7. ##
  8. ## Author: Michael Andres, <ma@suse.de>
  9. ## Michael Skibbe, <mskibbe@suse.de>
  10. ##
  11. ################################################################################
  12.  
  13. ##
  14. ## Radio and modem clocks by convention have addresses in the
  15. ## form 127.127.t.u, where t is the clock type and u is a unit
  16. ## number in the range 0-3.
  17. ##
  18. ## Most of these clocks require support in the form of a
  19. ## serial port or special bus peripheral. The particular
  20. ## device is normally specified by adding a soft link
  21. ## /dev/device-u to the particular hardware device involved,
  22. ## where u correspond to the unit number above.
  23. ##
  24. ## Generic DCF77 clock on serial port (Conrad DCF77)
  25. ## Address: 127.127.8.u
  26. ## Serial Port: /dev/refclock-u
  27. ##
  28. ## (create soft link /dev/refclock-0 to the particular ttyS?)
  29. ##
  30. # server 127.127.8.0 mode 5 prefer
  31.  
  32. ##
  33. ## Undisciplined Local Clock. This is a fake driver intended for backup
  34. ## and when no outside source of synchronized time is available.
  35. ##
  36. server 127.127.1.0
  37. # local clock (LCL)
  38. fudge 127.127.1.0 stratum 10
  39. # LCL is unsynchronized
  40.  
  41. ##
  42. ## Add external Servers using
  43. ## # rcntp addserver <yourserver>
  44. ##
  45.  
  46. ##
  47. ## Miscellaneous stuff
  48. ##
  49.  
  50. driftfile /var/lib/ntp/drift/ntp.drift
  51. # path for drift file
  52.  
  53. logfile /var/log/ntp
  54. # alternate log file
  55. # logconfig =syncstatus + sysevents
  56. logconfig =all
  57.  
  58. # statsdir /tmp/ # directory for statistics files
  59. # filegen peerstats file peerstats type day enable
  60. # filegen loopstats file loopstats type day enable
  61. # filegen clockstats file clockstats type day enable
  62.  
  63. #
  64. # Authentication stuff
  65. #
  66. keys /etc/ntp.keys
  67. # path for keys file
  68. trustedkey 1
  69. # define trusted keys
  70. requestkey 1
  71. restrict default kod nomodify notrap nopeer noquery
  72. restrict -6 default kod nomodify notrap nopeer noquery
  73. restrict 127.0.0.1 mask 255.255.255.0
  74. restrict -6 ::1
  75.  
  76. server navobs1.gatech.edu iburst
  77. server rolex.usg.edu iburst
  78. server time-a.nist.gov iburst
  79. server us.pool.ntp.org iburst
  80. # GPS Serial data reference
  81. # The normally-used server and fudge are commented out
  82. # for the purpose of simplifying debugging.
  83. # server 127.127.28.0 minpoll 4 maxpoll 4
  84. # fudge 127.127.28.0 flag1 0 flag2 0 flag3 0 flag4 0 refid GPS stratum 0 time1 0.450
  85. server 127.127.28.0
  86. fudge 127.127.28.0 refid GPS
  87. # GPS PPS reference
  88. # The normally-used server and fudge are commented out
  89. # for the purpose of debugging.
  90. # server 127.127.28.1 minpoll 4 maxpoll 4 prefer
  91. # fudge 127.127.28.1 flag1 0 flag2 0 flag3 0 flag4 0 refid PPS stratum 0
  92. server 127.127.28.1 prefer
  93. fudge 127.127.28.1 refid PPS
  94. # key (7) for accessing server variables
  95. # controlkey 15 # key (6) for accessing server variables
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement