{"id":319,"date":"2025-01-13T15:38:22","date_gmt":"2025-01-13T12:08:22","guid":{"rendered":"https:\/\/zharfpouyan.net\/docs\/?p=319"},"modified":"2025-01-13T15:38:22","modified_gmt":"2025-01-13T12:08:22","slug":"%d8%b3%d8%b1%d9%88%db%8c%d8%b3-ntp","status":"publish","type":"post","link":"https:\/\/zharfpouyan.net\/docs\/%d8%b3%d8%b1%d9%88%db%8c%d8%b3-ntp\/","title":{"rendered":"\u0633\u0631\u0648\u06cc\u0633 NTP"},"content":{"rendered":"<p><strong>\u0633\u0646\u0627\u0631\u06cc\u0648 peer \u0642\u0631\u0627\u0631 \u062f\u0627\u062f\u0646 \u0631\u0648\u062a\u0631\u0647\u0627\u06cc \u0698\u0631\u0641 \u062f\u0631 \u0645\u062c\u0627\u0648\u0631\u062a \u06cc\u06a9\u062f\u06cc\u06af\u0631<br \/>\n<\/strong><\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"size-full wp-image-320 aligncenter\" src=\"https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/ntp1.jpg\" alt=\"\" width=\"1066\" height=\"190\" srcset=\"https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/ntp1.jpg 1066w, https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/ntp1-300x53.jpg 300w, https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/ntp1-1024x183.jpg 1024w, https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/ntp1-768x137.jpg 768w\" sizes=\"(max-width: 1066px) 100vw, 1066px\" \/><\/p>\n<p><strong>1-1. \u0647\u062f\u0641<\/strong><\/p>\n<p>\u062f\u0631 \u0627\u06cc\u0646 \u0633\u0646\u0627\u0631\u06cc\u0648 \u062f\u0648 \u0631\u0648\u062a\u0631 Zharf1 \u0648 Zharf2 \u0631\u0627 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 peer \u062f\u0631 \u06a9\u0646\u0627\u0631 \u06cc\u06a9\u062f\u06cc\u06af\u0631 \u0642\u0631\u0627\u0631 \u062f\u0627\u062f\u0647 \u062a\u0627 \u0628\u062a\u0648\u0627\u0646\u0646\u062f \u0632\u0645\u0627\u0646 \u0631\u0627 \u0628\u0627 \u06cc\u06a9\u062f\u06cc\u06af\u0631 sync \u06a9\u0646\u0646\u062f. \u062f\u0631 \u0627\u06cc\u0646 \u0633\u0646\u0627\u0631\u06cc\u0648 \u0631\u0648\u062a\u0631 R2 \u06a9\u0647 \u0633\u06cc\u0633\u06a9\u0648 \u0645\u06cc\u00ad\u0628\u0627\u0634\u062f \u0646\u0642\u0634 master \u0631\u0627 \u0628\u0627\u0632\u06cc \u0645\u06cc\u00ad\u06a9\u0646\u062f \u0648 \u0628\u0646\u0627\u0628\u0631\u0627\u06cc\u0646 \u0631\u0648\u062a\u0631 Zharf1 \u0627\u06cc\u0646 \u0631\u0648\u062a\u0631 \u0631\u0627 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 Server \u062e\u0648\u062f \u0645\u06cc\u0634\u0646\u0627\u0633\u062f. \u0631\u0648\u062a\u0631 \u0647\u0627\u06cc Zharf1 \u0648 Zharf2 \u0628\u0627 \u06cc\u06a9\u062f\u06cc\u06af\u0631 peer \u0645\u06cc\u00ad\u0634\u0648\u0646\u062f.<\/p>\n<p>\u0646\u06a9\u062a\u0647 : \u0628\u0631 \u0631\u0648\u06cc \u0631\u0648\u062a\u0631 R2 \u0628\u0631\u0627\u06cc \u0627\u06cc\u0646\u06a9\u0647 Time zone \u0628\u0627 \u0631\u0648\u062a\u0631 \u0698\u0631\u0641 \u06cc\u06a9\u06cc \u0634\u0648\u062f \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 clock timezone IRDT 3 30 \u062f\u0631 config mode \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u06a9\u0646\u06cc\u0645<\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>\u062a\u0646\u0638\u06cc\u0645\u0627\u062a \u0631\u0648\u062a\u0631 R2<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true \">R2(config)#clock timezone IRDT 3 30\r\nR2(config)#interface FastEthernet0\/0\r\nR2(config-if)# ip address 12.12.12.1 255.255.255.0\r\nR2(config)# ntp master\r\n<\/pre>\n<ul>\n<li>\u062a\u0646\u0638\u06cc\u0645\u0627\u062a Zharf1<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true \">Zharf1(config)#interface gbeth0\r\nZharf1(config-if)#no shutdown\r\nZharf1(config-if)#ip address 12.12.12.2\/24\r\nZharf1(config)#interface gbeth9\r\nZharf1(config-if)#ip address 13.13.13.2\/24\r\nZharf1(config)#ntp server 12.12.12.1\r\nZharf1(config)#ntp peer 13.13.13.1\r\n<\/pre>\n<ul>\n<li>\u062a\u0646\u0638\u06cc\u0645\u0627\u062a Zharf2<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true \">Zharf2(config)# interface gbeth0\r\nZharf2(config-if)# ip address 13.13.13.1\/24\r\nZharf2(config-if)# no shutdown\r\nZharf2(config)# ntp peer 13.13.13.2\r\nZharf2(config)#clock timezone IRDT 3 30\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>1-2. \u062f\u0631\u0633\u062a\u06cc \u06cc\u0627\u0628\u06cc<br \/>\n<\/strong><\/p>\n<p>\u0647\u0645\u0627\u0646\u0637\u0648\u0631 \u06a9\u0647 \u062f\u0631 \u0630\u06cc\u0644 \u0646\u0634\u0627\u0646 \u062f\u0627\u062f\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a \u062c\u0647\u062a \u0646\u0634\u0627\u0646 \u062f\u0627\u062f\u0646 \u062f\u0631\u0633\u062a\u06cc \u0639\u0645\u0644\u06a9\u0631\u062f \u0627\u0628\u062a\u062f\u0627 \u0628\u0631 \u0631\u0648\u06cc \u0631\u0648\u062a\u0631 \u0633\u06cc\u0633\u06a9\u0648 \u0628\u0627 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0627\u0632 master \u0634\u062f\u0646 \u0631\u0648\u062a\u0631 R2 \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u06a9\u0631\u062f\u0647 . \u0647\u0645\u06cc\u0646 \u062f\u0633\u062a\u0648\u0631 \u0631\u0627 \u062f\u0631 \u0631\u0648\u062a\u0631 \u0647\u0627\u06cc \u0698\u0631\u0641 \u0647\u0645 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u06a9\u0646\u06cc\u0645.<\/p>\n<pre class=\"lang:default decode:true \">R2# show ntp associations\r\n\r\n      address         ref clock     st  when  poll reach  delay  offset    disp\r\n*~127.127.7.1      127.127.7.1       7     8    64  377     0.0    0.00     0.0\r\n * master (synced), # master (unsynced), + selected, - candidate, ~ configured\r\n<\/pre>\n<p>\u062e\u0631\u0648\u062c\u06cc \u0631\u0648\u062a\u0631 Zharf1 \u06a9\u0647 \u0646\u0634\u0627\u0646 \u0645\u06cc\u00ad\u062f\u0647\u062f \u0631\u0648\u062a\u0631 \u0633\u06cc\u0633\u06a9\u0648 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 master \u0627\u0646\u062a\u062e\u0627\u0628 \u0634\u062f\u0647 \u0627\u0633\u062a \u0648 \u0628\u0627 \u0639\u0644\u0627\u0645\u062a * \u0646\u0634\u0627\u0646 \u0645\u06cc\u062f\u0647\u062f \u06a9\u0647 \u0632\u0645\u0627\u0646 \u062e\u0648\u062f \u0631\u0627 \u0628\u0647 \u0635\u0648\u0631\u062a \u067e\u06cc\u0634 \u0641\u0631\u0636 \u0628\u0627 \u0631\u0648\u062a\u0631 \u0633\u06cc\u0633\u06a9\u0648 \u062a\u0646\u0638\u06cc\u0645 \u0645\u06cc\u06a9\u0646\u062f (\u062a\u0627 \u0648\u0642\u062a\u06cc \u06a9\u0647 \u0631\u0648\u062a\u0631 R@ \u062f\u0631 \u062f\u0633\u062a\u0631\u0633 \u0628\u0627\u0634\u062f).<\/p>\n<pre class=\"lang:default decode:true \">Zharf1# show ntp associations\r\nremote          refid      st t when poll reach   delay   offset  jitter\r\n========================================================================\r\n*12.12.12.1    LOCAL       8 u   81  128  377    2.201    4.517   15.462\r\n13.13.13.1    13.13.13.2  10 u    -  256    0    0.313   -72.003   2.943\r\n<\/pre>\n<p>\u062e\u0631\u0648\u062c\u06cc \u0631\u0648\u062a\u0631 Zharf2 \u06a9\u0647 \u0622\u062f\u0631\u0633 \u0631\u0648\u062a\u0631 Zharf1 \u0631\u0627 \u0646\u0634\u0627\u0646 \u0645\u06cc\u00ad\u062f\u0647\u062f \u06a9\u0647 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 peer \u06cc\u0627 remote \u0622\u0646 \u0648 \u0645\u0631\u062c\u0639 \u062e\u0648\u062f \u0631\u0627 refid \u0631\u0648\u062a\u0631 R2 \u0642\u0631\u0627\u0631 \u0645\u06cc\u00ad\u062f\u0647\u062f.<\/p>\n<pre class=\"lang:default decode:true \">Zharf2# show ntp associations \r\nremote           refid      st t when poll reach   delay   offset  jitter\r\n========================================================================\r\n*13.13.13.2      12.12.12.1       9 u   33   64  377    0.329  -34.155   2.845\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>1-3. \u0639\u06cc\u0628 \u06cc\u0627\u0628\u06cc<br \/>\n<\/strong><\/p>\n<p>\u062f\u0631 \u0635\u0648\u0631\u062a \u0639\u062f\u0645 \u062a\u0646\u0638\u06cc\u0645 \u0633\u0627\u0639\u062a \u0628\u06cc\u0646 \u0631\u0648\u062a\u0631 \u0647\u0627 \u060c \u0627\u0628\u062a\u062f\u0627 \u062a\u0648\u0635\u06cc\u0647 \u0645\u06cc\u0634\u0648\u062f \u0628\u0647 \u0628\u0631\u0631\u0633\u06cc \u0627\u0631\u062a\u0628\u0627\u0637 \u0628\u06cc\u0646 \u0631\u0648\u062a\u0631 \u0647\u0627 \u067e\u0631\u062f\u0627\u062e\u062a\u0647 \u0648 \u0627\u0632 \u0627\u0639\u0645\u0627\u0644 \u062a\u0646\u0638\u06cc\u0645\u0627\u062a \u0635\u062d\u06cc\u062d \u0628\u0631 \u0631\u0648\u06cc \u0631\u0648\u062a\u0631 \u0647\u0627 \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u0641\u0631\u0645\u0627\u06cc\u06cc\u062f. \u062f\u0631 \u0627\u0646\u062a\u0647\u0627 \u0627\u0632 \u06cc\u06a9\u06cc \u0628\u0648\u062f\u0646 timezone \u0631\u0648\u062a\u0631 \u0647\u0627 \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u06a9\u0631\u062f\u0647 \u060c \u062f\u0631 \u0646\u0647\u0627\u06cc\u062a \u062a\u0648\u0635\u06cc\u0647 \u0645\u06cc\u00ad\u0634\u0648\u062f \u06a9\u0647 \u0628\u0627\u0632\u0647 \u0632\u0645\u0627\u0646\u06cc \u0627\u0646\u062a\u0638\u0627\u0631 \u062e\u0648\u062f \u0631\u0627 \u06a9\u0645\u06cc \u0632\u06cc\u0627\u062f \u06a9\u0631\u062f\u0647 \u0648 \u062f\u0631 \u0627\u06cc\u0646 \u0628\u0627\u0632\u0647 \u0628\u0631 \u0631\u0648\u06cc \u062a\u0646\u0638\u06cc\u0645\u0627\u062a \u0645\u0631\u0628\u0648\u0637 \u0628\u0647 NTP \u0647\u06cc\u0686\u06af\u0648\u0646\u0647 \u062a\u063a\u06cc\u06cc\u0631\u06cc \u0627\u06cc\u062c\u0627\u062f \u0646\u06a9\u0646\u06cc\u062f.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>2. \u0633\u0646\u0627\u0631\u06cc\u0648 \u062a\u0633\u062a NTP Client \u0648 <\/strong><strong>Master<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" class=\"size-full wp-image-322 aligncenter\" src=\"https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/ntp2.jpg\" alt=\"\" width=\"1144\" height=\"187\" srcset=\"https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/ntp2.jpg 1144w, https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/ntp2-300x49.jpg 300w, https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/ntp2-1024x167.jpg 1024w, https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/ntp2-768x126.jpg 768w\" sizes=\"(max-width: 1144px) 100vw, 1144px\" \/><\/p>\n<p><strong>2-1. \u0647\u062f\u0641<\/strong><\/p>\n<p>\u062f\u0631 \u0627\u06cc\u0646 \u0633\u0646\u0627\u0631\u06cc\u0648 \u0631\u0648\u062a\u0631 Zharf2 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 Master \u0627\u0646\u062a\u062e\u0627\u0628 \u0645\u06cc\u0634\u0648\u062f \u0648 \u062f\u0631 \u0637\u0631\u0641\u06cc\u0646 \u0622\u0646 \u062f\u0648 \u0631\u0648\u062a\u0631 Zharf1 \u0648 R2 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 Client \u0642\u0631\u0627\u0631 \u062f\u0627\u0631\u0646\u062f.<\/p>\n<p>\u0646\u06a9\u062a\u0647 : \u0628\u0631 \u0631\u0648\u06cc \u0631\u0648\u062a\u0631 R2 \u0628\u0631\u0627\u06cc \u0627\u06cc\u0646\u06a9\u0647 time zone \u0628\u0627 \u0631\u0648\u062a\u0631 \u0698\u0631\u0641 \u06cc\u06a9\u06cc \u0634\u0648\u062f \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 clock timezone IRDT 3 30 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u00ad\u06a9\u0646\u06cc\u0645.<\/p>\n<ul>\n<li>\u062a\u0646\u0638\u06cc\u0645\u0627\u062a Zharf1<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true \">Zharf1(config)#interface gbeth2\r\nZharf1(config-if)# no shutdown\r\nZharf1(config-if)# ip address 10.10.10.2\/24\r\nZharf1(config-if)#exit\r\nZharf1(config)#ntp server 10.10.10.1\r\n<\/pre>\n<ul>\n<li>\u062a\u0646\u0638\u06cc\u0645\u0627\u062a Zharf2<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true \">Zharf2(config)#interface gbeth0\r\nZharf2(config-if)# no shutdown\r\nZharf2(config-if)# ip address 10.10.10.1 255.255.255.0\r\nZharf2(config-if)#exit\r\nZharf2(config)#interface gbeth1\r\nZharf2(config)# no shutdown\r\nZharf2(config)# ip address  20.20.20.1  255.255.255.0\r\nZharf2(config)#ntp master\r\n<\/pre>\n<ul>\n<li>\u062a\u0646\u0638\u06cc\u0645\u0627\u062a R2<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true\">R2(config)#clock timezone IRDT 3 30\r\nR2(config)# interface FastEthernet0\/0\r\nR2(config-if)# no shutdown\r\nR2(config-if)# ip address 20.20.20.2 255.255.255.0\r\nR2(config-if)#exit\r\nR2(config)# ntp server 20.20.20.1\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>2-2. \u062f\u0631\u0633\u062a\u06cc \u06cc\u0627\u0628\u06cc<\/strong><\/p>\n<p>\u0647\u0645\u0627\u0646\u0637\u0648\u0631 \u06a9\u0647 \u062f\u0631 \u0632\u06cc\u0631 \u062f\u06cc\u062f\u0647 \u0645\u06cc\u0634\u0648\u062f \u0631\u0648\u062a\u0631 Zharf1 \u0628\u0627 \u0622\u062f\u0631\u0633 20.20.20.1 \u0628\u0631 \u0631\u0648\u06cc \u0631\u0648\u062a\u0631 R2 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 master \u0628\u0627 \u0639\u0644\u0627\u0645\u062a (*) \u0648 configured \u0628\u0627 \u0639\u0644\u0627\u0645\u062a (~) \u0627\u0646\u062a\u062e\u0627\u0628 \u0634\u062f\u0647 \u0627\u0633\u062a. \u0647\u0645\u0686\u0646\u06cc\u0646 \u0686\u0648\u0646 \u0631\u0648\u062a\u0631 Zharf2 \u062e\u0648\u062f \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 master \u062a\u0639\u0631\u06cc\u0641 \u0634\u062f\u0647 \u062f\u0631 \u0646\u0645\u0627\u06cc\u0634 \u062f\u0633\u062a\u0648\u0631 show ntp associations \u062f\u0631 \u0642\u0633\u0645\u062a remote \u0622\u062f\u0631\u0633 LOCAL \u06cc\u0639\u0646\u06cc \u062e\u0648\u062f\u0634 \u0631\u0627 \u0645\u0634\u062e\u0635 \u06a9\u0631\u062f\u0647 \u0627\u0633\u062a \u0648 \u062f\u0631 \u0631\u0648\u062a\u0631 Zharf1 \u0622\u062f\u0631\u0633 \u0631\u0648\u062a\u0631 Zharf2 (10.10.10.1) \u00a0\u062f\u0631 \u0642\u0633\u0645\u062a remote \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 NTP Server \u0642\u0631\u0627\u0631 \u062f\u0627\u062f\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a.<\/p>\n<ul>\n<li>\u0646\u062a\u06cc\u062c\u0647 \u062e\u0631\u0648\u062c\u06cc \u0628\u0631 \u0631\u0648\u06cc \u0631\u0648\u062a\u0631 R2<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true \">R2# show ntp associations\r\n      address         ref clock     st  when  poll reach  delay  offset    disp\r\n*~20.20.20.1       127.127.1.0       6    40    64    3     2.1   -3.78  7883.9\r\n * master (synced), # master (unsynced), + selected, - candidate, ~ configured\r\n\r\nR2#show clock\r\n14:40:11.049 IRDT Mon Aug 8 2019\r\n<\/pre>\n<ul>\n<li>\u0646\u062a\u06cc\u062c\u0647 \u062e\u0631\u0648\u062c\u06cc \u0628\u0631 \u0631\u0648\u06cc \u0631\u0648\u062a\u0631 Zharf2<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true \">Zharf2# show ntp associations\r\n remote           refid      st t when poll reach   delay   offset  jitter\r\n=============================================================================\r\n*LOCAL(0)        .LOCL.           5 l   10   64  377    0.000    0.000   0.000\r\n<\/pre>\n<ul>\n<li>\u0646\u062a\u06cc\u062c\u0647 \u062e\u0631\u0648\u062c\u06cc \u0628\u0631 \u0631\u0648\u06cc \u0631\u0648\u062a\u0631 Zharf1<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true \">Zharf1# show ntp associations \r\n remote           refid      st t when poll reach   delay   offset  jitter\r\n==============================================================================\r\n 10.10.10.1      LOCAL(0)        6 u    3   64    1    0.477    1.533   0.000\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>2-3. \u0639\u06cc\u0628 \u06cc\u0627\u0628\u06cc<\/strong><\/p>\n<p>\u067e\u06cc\u0634\u0646\u0647\u0627\u062f \u0645\u06cc\u00ad\u0634\u0648\u062f \u062f\u0631 \u0627\u0628\u062a\u062f\u0627 \u0647\u0645\u0647 \u062a\u0646\u0638\u06cc\u0645\u0627\u062a \u0645\u062c\u062f\u062f\u0627 \u0628\u0631\u0631\u0633\u06cc \u0634\u0648\u0646\u062f \u062f\u0631 \u0635\u0648\u0631\u062a\u06cc \u06a9\u0647 \u0627\u0632 \u0635\u062d\u062a \u0622\u0646 \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u0634\u062f \u060c \u0647\u06cc\u0686 \u062a\u0646\u0638\u06cc\u0645\u06cc \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0627\u062f\u0647 \u0646\u0634\u0648\u062f \u0648 \u0628\u0627\u0632\u0647 \u0632\u0645\u0627\u0646\u06cc \u0628\u06cc\u0634\u062a\u0631\u06cc \u062c\u0647\u062a \u062f\u0631\u06cc\u0627\u0641\u062a \u062e\u0631\u0648\u062c\u06cc \u0645\u0648\u0631\u062f \u0646\u0638\u0631 \u0635\u0628\u0631 \u0634\u0648\u062f . \u062f\u0631 \u0646\u0647\u0627\u06cc\u062a \u062f\u0631 \u0635\u0648\u0631\u062a \u0639\u062f\u0645 \u062f\u0631\u06cc\u0627\u0641\u062a \u0646\u062a\u06cc\u062c\u0647 \u0645\u0637\u0644\u0648\u0628 \u0646\u0633\u0628\u062a \u0628\u0647 \u0630\u062e\u06cc\u0631\u0647 \u062a\u0646\u0638\u06cc\u0645\u0627\u062a \u0648 reboot \u0631\u0648\u062a\u0631 \u0627\u0642\u062f\u0627\u0645 \u0634\u0648\u062f.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>3. \u0633\u0646\u0627\u0631\u06cc\u0648 NTP broadcast<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" class=\"size-full wp-image-324 aligncenter\" src=\"https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/ntp-broadcast.png\" alt=\"\" width=\"448\" height=\"198\" srcset=\"https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/ntp-broadcast.png 448w, https:\/\/zharfpouyan.net\/docs\/wp-content\/uploads\/2025\/01\/ntp-broadcast-300x133.png 300w\" sizes=\"(max-width: 448px) 100vw, 448px\" \/><\/p>\n<p><strong>3-1. \u0647\u062f\u0641<\/strong><\/p>\n<p>\u062f\u0631 \u0627\u06cc\u0646 \u0633\u0646\u0627\u0631\u06cc\u0648 \u0647\u062f\u0641 \u0628\u0631\u0631\u0633\u06cc \u0639\u0645\u0644\u06a9\u0631\u062f NTP Broadcast\u00a0 \u0645\u06cc \u0628\u0627\u0634\u062f. \u062f\u0631 \u0627\u06cc\u0646\u062c\u0627 \u0631\u0648\u062a\u0631 Zharf1 \u062f\u0631 \u0646\u0642\u0634 NTP broadcast server \u0648 \u0631\u0648\u062a\u0631 \u0647\u0627\u06cc R1 \u0648 \u00a0Zharf2 \u062f\u0631 \u0646\u0642\u0634 broadcast client \u0645\u06cc \u0628\u0627\u0634\u0646\u062f. \u0628\u0627 \u062f\u0633\u062a\u0648\u0631 clock set \u0632\u0645\u0627\u0646 \u0631\u0627 \u0628\u0631 \u0631\u0648\u06cc \u0631\u0648\u062a\u0631 \u0647\u0627\u06cc Zharf2 \u0648 R1 \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0627\u062f\u06cc\u0645 \u06a9\u0647 \u0632\u0645\u0627\u0646 \u0622\u0646\u0647\u0627 \u062a\u0648\u0633\u0637 \u0631\u0648\u062a\u0631Zharf1 \u062a\u0646\u0638\u06cc\u0645 \u0634\u0648\u062f.<\/p>\n<ul>\n<li>\u06a9\u0627\u0646\u0641\u06cc\u06af Zharf1<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true \">Zharf1(config)#int gbeth0\r\nZharf1(config-if)# ip address 192.160.10.1\/24\r\nZharf1(config-if)#no shut\r\nZharf1(config)# ntp broadcast 192.160.10.255\r\n<\/pre>\n<ul>\n<li>\u06a9\u0627\u0646\u0641\u06cc\u06af Zharf2<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true \">Zharf2(config)#int gbeth0\r\nZharf2(config-if)# ip address 192.160.10.2\/24\r\nZharf2(config-if)#no shut\r\nZharf2(config)# ntp broadcast client\r\n<\/pre>\n<ul>\n<li>\u06a9\u0627\u0646\u0641\u06cc\u06af R1<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true \">R1(config)#interface FastEthernet0\/0\r\nR1(config-if)# ip address 192.160.10.3 255.255.255.0\r\nR1(config-if)# no shutdown\r\nR1(config-if)# ntp broadcast client\r\nR1(config)# clock timezone IRST 3 30\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>3-2<\/strong><strong>. \u062f\u0631\u0633\u062a\u06cc \u06cc\u0627\u0628\u06cc<\/strong><\/p>\n<p>\u0628\u0631\u0627\u06cc \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u0627\u0632 \u0635\u062d\u062a \u0639\u0645\u0644\u06a9\u0631\u062f \u0633\u0631\u0648\u06cc\u0633 \u062f\u0631 \u0631\u0648\u062a\u0631 Zharf1 \u0628\u0627 \u062e\u0631\u0648\u062c\u06cc \u062f\u0633\u062a\u0648\u0631 show ntp associations \u0645\u0637\u0645\u0626\u0646 \u0645\u06cc\u0634\u0648\u06cc\u0645 \u06a9\u0647 \u0631\u0648\u062a\u0631 \u0646\u0642\u0634 Master \u0631\u0627 \u062f\u0631\u06cc\u0627\u0641\u062a \u06a9\u0631\u062f\u0647 \u0627\u0633\u062a \u0648 \u0647\u0645\u0686\u0646\u06cc\u0646 \u062e\u0631\u0648\u062c\u06cc \u062f\u0633\u062a\u0648\u0631 show clock \u0632\u0645\u0627\u0646\u06cc \u0631\u0627 \u0646\u0645\u0627\u06cc\u0634 \u0645\u06cc \u062f\u0647\u062f \u06a9\u0647 \u0628\u0627\u06cc\u062f \u0628\u0639\u062f \u0627\u0632 \u0647\u0645\u0632\u0645\u0627\u0646\u06cc \u062f\u0631 \u06a9\u0644\u0627\u06cc\u0646\u062a \u0647\u0627 \u0645\u0634\u0627\u0647\u062f\u0647 \u0634\u0648\u062f.<\/p>\n<pre class=\"lang:default decode:true \">Zharf1# show ntp associations \r\n     remote           refid      st t when poll reach   delay   offset  jitter\r\n==============================================================================\r\n 192.19.10.255  .BCST.          16 u    -   64    0    0.000    0.000   0.000\r\n*LOCAL(0)        .LOCL.           5 l   15   64  377    0.000    0.000   0.000\r\n\r\n\r\nZharf1# show clock\r\n12:40:46 IRST Tue Nov  6 2019\r\n<\/pre>\n<p>\u062f\u0631 Client \u0647\u0627 \u0628\u0627\u06cc\u062f \u062e\u0631\u0648\u062c\u06cc \u062f\u0633\u062a\u0648\u0631 show clock \u0631\u0627 \u0628\u0627 \u0632\u0645\u0627\u0646 NTP Server \u0645\u0642\u0627\u06cc\u0633\u0647 \u06a9\u0631\u062f \u0648 \u0627\u0632 \u06cc\u06a9\u0633\u0627\u0646 \u0628\u0648\u062f\u0646 \u0632\u0645\u0627\u0646 Server \u0648 Client \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u0646\u0645\u0648\u062f. \u0647\u0645\u0686\u0646\u06cc\u0646 \u062f\u0631 \u062e\u0631\u0648\u062c\u06cc \u062f\u0633\u062a\u0648\u0631 \u0646\u0645\u0627\u06cc\u0634\u06cc show ntp associations\u00a0 \u0622\u062f\u0631\u0633 IP \u0631\u0648\u062a\u0631 NTP Server (192.160.10.1) \u0648 sync \u0634\u062f\u0646 \u0628\u0627 \u0622\u0646 \u0642\u0627\u0628\u0644 \u0645\u0634\u0627\u0647\u062f\u0647 \u0627\u0633\u062a.<\/p>\n<pre class=\"lang:default decode:true \">R1#show ntp association\r\n  address         ref clock       st   when   poll reach  delay  offset   disp\r\n* 192.160.10.1     127.127.1.0      6      0     64     1 64.249  15.071 3937.5\r\n* sys.peer, # selected, + candidate, - outlyer, x falseticker, ~ configured\r\n\r\nR1#show clock\r\n12:44:18.546 IRST Tue Nov 6 2019\r\n\r\n\r\nZharf 2# show ntp ass\r\n     remote           refid      st t when poll reach   delay   offset  jitter\r\n=============================================================================\r\n*192.160.10.1     LOCAL(0)         6 u   19   64  377    1.325    4.222  50.713\r\n\r\nZharf 2# show clock \r\n12:48:13 IRST Tue Nov  6 2019\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>3-3. \u0639\u06cc\u0628 \u06cc\u0627\u0628\u06cc<\/strong><\/p>\n<p>\u062f\u0631 \u0635\u0648\u0631\u062a \u0628\u0631\u0648\u0632 \u0645\u0634\u06a9\u0644 \u0645\u0648\u0627\u0631\u062f \u0632\u06cc\u0631 \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u0646\u0645\u0627\u06cc\u06cc\u062f :<\/p>\n<ul>\n<li>\u0627\u0632 \u0628\u0631\u0642\u0631\u0627\u0631\u06cc \u0648 \u0635\u062d\u062a \u0627\u0631\u062a\u0628\u0627\u0637 \u0641\u06cc\u0632\u06cc\u06a9\u06cc \u0648 ping \u0631\u0648\u062a\u0631 \u0647\u0627 \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u0634\u0648\u062f.<\/li>\n<li>\u0627\u0632 \u0627\u0639\u0645\u0627\u0644 \u062f\u0633\u062a\u0648\u0631\u0627\u062a ntp broadcast client \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u0634\u0648\u062f.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0633\u0646\u0627\u0631\u06cc\u0648 peer \u0642\u0631\u0627\u0631 \u062f\u0627\u062f\u0646 \u0631\u0648\u062a\u0631\u0647\u0627\u06cc \u0698\u0631\u0641 \u062f\u0631 \u0645\u062c\u0627\u0648\u0631\u062a \u06cc\u06a9\u062f\u06cc\u06af\u0631 1-1. \u0647\u062f\u0641 \u062f\u0631 \u0627\u06cc\u0646 \u0633\u0646\u0627\u0631\u06cc\u0648 \u062f\u0648 \u0631\u0648\u062a\u0631 Zharf1 \u0648 Zharf2 \u0631\u0627 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 peer \u062f\u0631 \u06a9\u0646\u0627\u0631 \u06cc\u06a9\u062f\u06cc\u06af\u0631 \u0642\u0631\u0627\u0631 \u062f\u0627\u062f\u0647 \u062a\u0627 \u0628\u062a\u0648\u0627\u0646\u0646\u062f \u0632\u0645\u0627\u0646 \u0631\u0627 \u0628\u0627 \u06cc\u06a9\u062f\u06cc\u06af\u0631 sync \u06a9\u0646\u0646\u062f. \u062f\u0631 \u0627\u06cc\u0646 \u0633\u0646\u0627\u0631\u06cc\u0648 \u0631\u0648\u062a\u0631 R2 \u06a9\u0647 \u0633\u06cc\u0633\u06a9\u0648 \u0645\u06cc\u00ad\u0628\u0627\u0634\u062f \u0646\u0642\u0634 master \u0631\u0627 \u0628\u0627\u0632\u06cc \u0645\u06cc\u00ad\u06a9\u0646\u062f \u0648 \u0628\u0646\u0627\u0628\u0631\u0627\u06cc\u0646 \u0631\u0648\u062a\u0631 Zharf1 \u0627\u06cc\u0646 \u0631\u0648\u062a\u0631 &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/zharfpouyan.net\/docs\/%d8%b3%d8%b1%d9%88%db%8c%d8%b3-ntp\/\"> <span class=\"screen-reader-text\">\u0633\u0631\u0648\u06cc\u0633 NTP<\/span> \u0627\u062f\u0627\u0645\u0647 \u00bb<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-319","post","type-post","status-publish","format-standard","hentry","category-6"],"_links":{"self":[{"href":"https:\/\/zharfpouyan.net\/docs\/wp-json\/wp\/v2\/posts\/319","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zharfpouyan.net\/docs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zharfpouyan.net\/docs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zharfpouyan.net\/docs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zharfpouyan.net\/docs\/wp-json\/wp\/v2\/comments?post=319"}],"version-history":[{"count":3,"href":"https:\/\/zharfpouyan.net\/docs\/wp-json\/wp\/v2\/posts\/319\/revisions"}],"predecessor-version":[{"id":325,"href":"https:\/\/zharfpouyan.net\/docs\/wp-json\/wp\/v2\/posts\/319\/revisions\/325"}],"wp:attachment":[{"href":"https:\/\/zharfpouyan.net\/docs\/wp-json\/wp\/v2\/media?parent=319"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zharfpouyan.net\/docs\/wp-json\/wp\/v2\/categories?post=319"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zharfpouyan.net\/docs\/wp-json\/wp\/v2\/tags?post=319"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}