{"id":277,"date":"2017-07-09T20:02:25","date_gmt":"2017-07-09T17:02:25","guid":{"rendered":"http:\/\/blog.officesupport.ru\/?p=277"},"modified":"2017-07-09T20:02:50","modified_gmt":"2017-07-09T17:02:50","slug":"%d1%81%d0%b5%d1%80%d0%b2%d0%b5%d1%80-%d0%b2%d1%80%d0%b5%d0%bc%d0%b5%d0%bd%d0%b8-ntpd","status":"publish","type":"post","link":"https:\/\/blog.officesupport.ru\/?p=277","title":{"rendered":"\u0421\u0435\u0440\u0432\u0435\u0440 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 ntpd"},"content":{"rendered":"<p>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u0447\u0430\u0441\u043e\u0432\u044b\u0435 \u043f\u043e\u044f\u0441\u0430<\/p>\n<pre class=\"theme:cisco-router nums:false lang:default decode:true\"># portsnap fetch update\r\n# cd \/usr\/ports\/misc\/zoneinfo &amp;&amp; make install clean\r\n# cp \/usr\/share\/zoneinfo\/Europe\/Moscow \/etc\/localtime<\/pre>\n<p>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0441\u0432\u0435\u0436\u0438\u0439 ntp-\u0441\u0435\u0440\u0432\u0435\u0440<\/p>\n<pre class=\"theme:cisco-router lang:default decode:true\"># cd \/usr\/ports\/net\/ntp<\/pre>\n<p><!--more--><\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0438 \/etc\/rc.conf \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 ntpd<\/p>\n<pre class=\"theme:familiar lang:default decode:true\">ntpdate_enable=\"YES\"\r\nntpd_program=\"\/usr\/local\/sbin\/ntpd\"<\/pre>\n<p>\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \/etc\/ntp.conf<\/p>\n<pre class=\"theme:familiar lang:default decode:true\">server ntp0.zenon.net iburst prefer\r\nserver 0.ru.pool.ntp.org iburst\r\nserver 1.ru.pool.ntp.org iburst\r\nserver 2.ru.pool.ntp.org iburst\r\nserver 0.freebsd.pool.ntp.org iburst\r\ndriftfile \/var\/db\/ntp.drift\r\nlogfile \/var\/log\/ntp.log\r\nrestrict 127.0.0.1\r\nrestrict 192.168.0.0 mask 255.255.255.0 nomodify notrap # \u0420\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u043c \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044e \u0441 IP-\u0430\u0434\u0440\u0435\u0441\u043e\u0432 192.168.0.1 \u2014 254 \u0438 127.0.0.1<\/pre>\n<p>\u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0444\u0430\u0439\u043b ntp.drift \u0438 ntp.log<\/p>\n<pre class=\"theme:cisco-router lang:default decode:true\"># touch \/var\/db\/ntp.drift\r\n# touch \/var\/log\/ntp.log<\/pre>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c ntpd<\/p>\n<pre class=\"theme:cisco-router lang:default decode:true\"># \/etc\/rc.d\/ntpd start<\/pre>\n<p>\u0414\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u043d\u0430\u0431\u0438\u0440\u0430\u0435\u043c<\/p>\n<pre class=\"theme:cisco-router lang:default decode:true\"># ntpq -p<\/pre>\n<p>\u0412\u0438\u0434\u0438\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435<\/p>\n<pre class=\"theme:cisco-router lang:default decode:true\">remote refid st t when poll reach delay offset jitter\r\n==============================================================================\r\n*ntp1.zenon.net 195.2.64.5 2 u 885 1024 377 2.352 -16.189 5.220\r\n+time100.stupi.s .PPS. 1 u 152 1024 377 18.787 -9.351 1.826\r\n+46.254.216.9 (n 194.190.168.1 2 u 662 1024 377 2.904 -11.143 2.403\r\n+time.ooonet.ru 194.190.168.1 2 u 32 1024 377 25.366 -8.291 2.447\r\n-palmers.nobody. 131.130.251.107 2 u 515 1024 377 61.977 -7.919 14.232\r\n-213.248.24.170 130.173.91.58 2 u 191 1024 377 5.891 -15.000 2.601<\/pre>\n<p>remote \u2014 \u0438\u043c\u0435\u043d\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u0445 ntp \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432<br \/>\nrefid \u2014 \u0441\u0435\u0440\u0432\u0435\u0440, \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044e \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 ntp<br \/>\nst \u2014 \u0441\u0442\u0440\u0430\u0442\u0443\u043c (\u0443\u0440\u043e\u0432\u0435\u043d\u044c) \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430. 1 \u2014 \u0441\u0430\u043c\u044b\u0439 \u0432\u044b\u0441\u043e\u043a\u0438\u0439, \u044d\u0442\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0434\u043b\u044f \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u0442\u043e\u0447\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0435 \u0434\u043e\u0440\u043e\u0433\u043e\u0441\u0442\u043e\u044f\u0449\u0435\u0435 \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u0435; 16 \u2014 \u0440\u044f\u0434\u043e\u0432\u0430\u044f \u043c\u0430\u0448\u0438\u043d\u0430\/\u043a\u043b\u0438\u0435\u043d\u0442.<br \/>\nt \u2014 \u0442\u0438\u043f \u043f\u0438\u0440\u0430 (u = unicast, m = multicast)<br \/>\nwhen \u2014 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043d\u0430 \u0442\u043e, \u043a\u0430\u043a \u0434\u0430\u0432\u043d\u043e \u0431\u044b\u043b\u0430 \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0430 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c<br \/>\npoll \u2014 \u0447\u0430\u0441\u0442\u043e\u0442\u0430 \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0430\u0445, \u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 NTP \u0434\u0435\u043c\u043e\u043d \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0441 \u043f\u0438\u0440\u043e\u043c<br \/>\nreach \u2014 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u0442\u0430\u0431\u0438\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 377 \u0435\u0441\u043b\u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0445 8 \u043f\u043e\u043f\u044b\u0442\u043e\u043a \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u0441 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c \u0431\u044b\u043b\u0438 \u0443\u0441\u043f\u0435\u0448\u043d\u044b<br \/>\ndelay \u2014 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0430 (\u0432 \u043c\u0438\u043b\u043b\u0438\u0441\u0435\u043a\u0443\u043d\u0434\u0430\u0445) \u043e\u0442\u0432\u0435\u0442\u0430 \u043e\u0442 \u0441\u0435\u0440\u0432\u0435\u0440\u0430<br \/>\noffset \u2014 \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u0432 \u043c\u0438\u043b\u043b\u0438\u0441\u0435\u043a\u0443\u043d\u0434\u0430\u0445 \u043c\u0435\u0436\u0434\u0443 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c \u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430; \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441 \u043c\u0438\u043d\u0443\u0441\u043e\u043c \u2014 \u043e\u0442\u0441\u0442\u0430\u0432\u0430\u043d\u0438\u0435, \u0441 \u043f\u043b\u044e\u0441\u043e\u043c \u2014 \u043d\u0430\u0448\u0438 \u0447\u0430\u0441\u0438\u043a\u0438 \u0441\u043f\u0435\u0448\u0430\u0442<br \/>\njitter \u2014 \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043d\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043e \u0437\u043d\u0430\u0447\u043a\u0430\u0445, \u0441\u043b\u0435\u0434\u0430 \u043e\u0442 \u0438\u043c\u0435\u043d\u0438 \u043f\u0438\u0440\u0430:<br \/>\n\u00ab*\u00bb \u2014 \u043f\u0438\u0440, \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0440\u0430\u0437 \u0443 \u043d\u0430\u0441 \u0431\u044b\u043b\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0430 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f<br \/>\n\u00ab+\u00bb \u2014 \u00ab\u0445\u043e\u0440\u043e\u0448\u0438\u0439\u00bb (\u043f\u0440\u0438\u0433\u043e\u0434\u043d\u044b\u0439 \u0434\u043b\u044f \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f) \u0441\u0435\u0440\u0432\u0435\u0440<br \/>\n\u00ab-\u00bb \u2014 \u00ab\u043f\u043b\u043e\u0445\u043e\u0439\u00bb (\u043d\u0435\u043f\u0440\u0438\u0433\u043e\u0434\u043d\u044b\u0439 \u0434\u043b\u044f \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f) \u0441\u0435\u0440\u0432\u0435\u0440<br \/>\n\u00ab\u0445\u00bb \u2014 \u0441\u0435\u0440\u0432\u0435\u0440 \u043d\u0435 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442<\/p>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u043f\u0440\u0438\u0433\u043e\u0434\u0435\u043d \u043b\u0438 \u043d\u0430\u0448 \u0441\u0435\u0440\u0432\u0435\u0440 \u0434\u043b\u044f \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0438, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0435\u0433\u043e \u0434\u0430\u043d\u043d\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439<\/p>\n<pre class=\"theme:cisco-router lang:default decode:true\"># ntpdate -q localhost<\/pre>\n<p>\u0438 \u0432\u0438\u0434\u0438\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435<\/p>\n<pre class=\"theme:cisco-router lang:default decode:true\">server 127.0.0.1, stratum 3, offset 0.000001, delay 0.02565\r\nserver ::1, stratum 3, offset 0.000013, delay 0.02570\r\n9 Jul 19:34:38 ntpdate[85246]: adjust time server 127.0.0.1 offset 0.000001 sec\r\n\r\n<\/pre>\n<p>\u042d\u0442\u043e\u0442 \u043e\u0442\u0432\u0435\u0442 \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u043d\u0430\u0448 \u0441\u0435\u0440\u0432\u0435\u0440 \u043f\u0440\u0438\u0433\u043e\u0434\u0435\u043d \u0434\u043b\u044f \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0438, \u0435\u0433\u043e stratum \u0440\u0430\u0432\u0435\u043d 3, \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u2014 0.000001 \u0430 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0430 \u043f\u0440\u0438 \u043e\u0442\u0432\u0435\u0442\u0435 \u0440\u0430\u0432\u043d\u0430 0.02565<\/p>\n<p>\u0412 ntp.conf \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043e\u043f\u0446\u0438\u044e burst<\/p>\n<pre class=\"theme:familiar lang:default decode:true\">server 0.europe.pool.ntp.org iburst burst<\/pre>\n<p>\u041e\u043f\u0446\u0438\u044f burst, \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 ntpd \u043f\u043e\u0441\u044b\u043b\u0430\u0442\u044c 8 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u0432\u043c\u0435\u0441\u0442\u043e \u043e\u0434\u043d\u043e\u0433\u043e \u0434\u043b\u044f \u043f\u043e\u043f\u044b\u0442\u043a\u0438 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0438, \u0447\u0442\u043e \u043f\u043e\u0432\u044b\u0448\u0430\u0435\u0442 \u0448\u0430\u043d\u0441\u044b \u043d\u0430 \u0443\u0441\u043f\u0435\u0448\u043d\u0443\u044e \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044e.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u0447\u0430\u0441\u043e\u0432\u044b\u0435 \u043f\u043e\u044f\u0441\u0430 # portsnap fetch update # cd \/usr\/ports\/misc\/zoneinfo &amp;&amp; make install clean # cp \/usr\/share\/zoneinfo\/Europe\/Moscow \/etc\/localtime \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0441\u0432\u0435\u0436\u0438\u0439 ntp-\u0441\u0435\u0440\u0432\u0435\u0440 # cd \/usr\/ports\/net\/ntp<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,1],"tags":[20,21,22],"class_list":["post-277","post","type-post","status-publish","format-standard","hentry","category-bsd","category-it","tag-ntp","tag-ntpd","tag-stratum"],"_links":{"self":[{"href":"https:\/\/blog.officesupport.ru\/index.php?rest_route=\/wp\/v2\/posts\/277","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.officesupport.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.officesupport.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.officesupport.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.officesupport.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=277"}],"version-history":[{"count":7,"href":"https:\/\/blog.officesupport.ru\/index.php?rest_route=\/wp\/v2\/posts\/277\/revisions"}],"predecessor-version":[{"id":284,"href":"https:\/\/blog.officesupport.ru\/index.php?rest_route=\/wp\/v2\/posts\/277\/revisions\/284"}],"wp:attachment":[{"href":"https:\/\/blog.officesupport.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=277"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.officesupport.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=277"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.officesupport.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=277"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}