Difference between revisions of "NTP: Setup NTP Server Lokal"

From OnnoWiki
Jump to navigation Jump to search
Line 18: Line 18:
  
 
==Check Menggunakan==
 
==Check Menggunakan==
 +
 +
Gunakan perintah
  
 
  watch ntpq -c lpee
 
  watch ntpq -c lpee
  
 +
akan tampak pada layar
 +
 +
      remote          refid      st t when poll reach  delay  offset  jitter
 +
==============================================================================
 +
  192.168.0.255  .BCST.          16 u    -  64    0    0.000    0.000  0.002
 +
*LOCAL(1)        .NIST.          8 l  62  64  377    0.000    0.000  0.002
  
 
==Referensi==
 
==Referensi==

Revision as of 20:17, 17 June 2011

Instalasi NTP seperti biasa. Kemudian, edit

vi /etc/ntp.conf

Tambahkan

server 127.127.1.1
fudge 127.127.1.1 stratum 8 refid NIST
restrict default notrust nomodify
restrict 127.127.0.0 mask 255.255.0.0 nomodify
driftfile       /var/lib/ntp/drift
broadcastdelay  0.008
keys            /etc/ntp/keys

Restart

/etc/init.d/ntp restart

Check Menggunakan

Gunakan perintah

watch ntpq -c lpee

akan tampak pada layar

     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 192.168.0.255   .BCST.          16 u    -   64    0    0.000    0.000   0.002
*LOCAL(1)        .NIST.           8 l   62   64  377    0.000    0.000   0.002

Referensi

Pranala Menarik