Advertisement
Guest User

Untitled

a guest
Aug 1st, 2015
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.76 KB | None | 0 0
  1. $ sudo ntpdate ntp.ubuntu.com
  2. 4 Mar 12:27:35 ntpdate[1258]: no server suitable for synchronization found
  3. $ sudo ntpdate pool.ntp.org
  4. 4 Mar 12:27:50 ntpdate[1267]: no server suitable for synchronization found
  5. $ sudo ntpdate de.pool.ntp.org
  6. 4 Mar 12:28:01 ntpdate[1273]: no server suitable for synchronization found
  7. $ sudo ntpdate us.pool.ntp.org
  8. 4 Mar 12:28:12 ntpdate[1276]: no server suitable for synchronization found
  9.  
  10. $ sudo nmap -p123 -sU -P0 localhost
  11. ...
  12. PORT STATE SERVICE
  13. 123/udp closed ntp
  14. ...
  15. $ sudo ufw allow 123/udp
  16. Rules updated
  17. Rules updated (v6)
  18. $ sudo nmap -p123 -sU -P0 localhost
  19. ...
  20. PORT STATE SERVICE
  21. 123/udp open ntp
  22. ...
  23.  
  24. $ sudo ntpdate ntp.ubuntu.com
  25. 4 Mar 13:06:16 ntpdate[4361]: no server suitable for synchronization found
  26.  
  27. $ sudo ntpdate -u ntp.ubuntu.com
  28. 4 Mar 13:06:28 ntpdate[4427]: no server suitable for synchronization found
  29.  
  30. $ sudo ntpdate -dv ntp.ubuntu.com
  31. 4 Mar 13:12:24 ntpdate[4523]: ntpdate 4.2.6p5@1.2349-o Wed Oct 9 19:08:07 UTC 2013 (1)
  32. Looking for host ntp.ubuntu.com and service ntp
  33. host found : golem.canonical.com
  34. transmit(91.189.89.199)
  35. transmit(91.189.94.4)
  36. transmit(91.189.89.199)
  37. transmit(91.189.94.4)
  38. transmit(91.189.89.199)
  39. transmit(91.189.94.4)
  40. transmit(91.189.89.199)
  41. transmit(91.189.94.4)
  42. transmit(91.189.89.199)
  43. transmit(91.189.94.4)
  44. 91.189.89.199: Server dropped: no data
  45. 91.189.94.4: Server dropped: no data
  46. server 91.189.89.199, port 123
  47. stratum 0, precision 0, leap 00, trust 000
  48. refid [91.189.89.199], delay 0.00000, dispersion 64.00000
  49. transmitted 4, in filter 4
  50. reference time: 00000000.00000000 Mon, Jan 1 1900 1:00:00.000
  51. originate timestamp: 00000000.00000000 Mon, Jan 1 1900 1:00:00.000
  52. transmit timestamp: d6c041ae.e6166441 Tue, Mar 4 2014 13:12:30.898
  53. filter delay: 0.00000 0.00000 0.00000 0.00000
  54. 0.00000 0.00000 0.00000 0.00000
  55. filter offset: 0.000000 0.000000 0.000000 0.000000
  56. 0.000000 0.000000 0.000000 0.000000
  57. delay 0.00000, dispersion 64.00000
  58. offset 0.000000
  59.  
  60. server 91.189.94.4, port 123
  61. stratum 0, precision 0, leap 00, trust 000
  62. refid [91.189.94.4], delay 0.00000, dispersion 64.00000
  63. transmitted 4, in filter 4
  64. reference time: 00000000.00000000 Mon, Jan 1 1900 1:00:00.000
  65. originate timestamp: 00000000.00000000 Mon, Jan 1 1900 1:00:00.000
  66. transmit timestamp: d6c041af.1948fc50 Tue, Mar 4 2014 13:12:31.098
  67. filter delay: 0.00000 0.00000 0.00000 0.00000
  68. 0.00000 0.00000 0.00000 0.00000
  69. filter offset: 0.000000 0.000000 0.000000 0.000000
  70. 0.000000 0.000000 0.000000 0.000000
  71. delay 0.00000, dispersion 64.00000
  72. offset 0.000000
  73.  
  74. 4 Mar 13:12:33 ntpdate[4523]: no server suitable for synchronization found
  75.  
  76. $ timedatectl status
  77. Local time: Wed 2014-03-05 13:11:54 CET
  78. Universal time: Wed 2014-03-05 12:11:54 UTC
  79. Timezone: Europe/Berlin (CET, +0100)
  80. NTP enabled: yes
  81. NTP synchronized: yes
  82. RTC in local TZ: no
  83. DST active: no
  84. Last DST change: DST ended at
  85. Sun 2013-10-27 02:59:59 CEST
  86. Sun 2013-10-27 02:00:00 CET
  87. Next DST change: DST begins (the clock jumps one hour forward) at
  88. Sun 2014-03-30 01:59:59 CET
  89. Sun 2014-03-30 03:00:00 CEST
  90.  
  91. $ sudo hwclock --show
  92. Wed 05 Mar 2014 01:11:56 PM CET -0.625627 seconds
  93.  
  94. transmit(91.189.94.4)
  95. transmit(91.189.89.199)
  96. transmit(91.189.94.4)
  97. transmit(91.189.89.199)
  98.  
  99. sudo nano /etc/ntp.conf
  100.  
  101. server pool.ntp.org
  102.  
  103. server 0.ubuntu.pool.ntp.org
  104. server 1.ubuntu.pool.ntp.org
  105. server 2.ubuntu.pool.ntp.org
  106. server 3.ubuntu.pool.ntp.org
  107.  
  108. /etc/init.d/ntpd start
  109.  
  110. sudo ntpdate pool.ntp.org
  111.  
  112. sudo ntpdate 0.ubuntu.pool.ntp.org
  113.  
  114. sudo ntpdate <one of the servername in /etc/ntp.conf>
  115.  
  116. ntpdate -u pool.ntp.org
  117.  
  118. $ sudo ntpdate pool.ntp.org
  119. $ sudo service ntp stop
  120. $ sudo ntpdate pool.ntp.org
  121. $ sudo service ntp start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement