1.
instal paket” dari NTP yang diperlukan:
#apt-get install ntpdate ntp-server
2. lakukan editing file [Link]
#nano /etc/[Link]
3. edit file [Link] seperti dibawah ini:
#[Link]
# You do need to talk to an NTP server or two (or three).
#server [Link]
# [Link] maps to more than 300 low-stratum NTP servers.
# Your server will pick a different set every time it starts up.
# *** Please consider joining the pool! ***
# *** ***
#server [Link] iburst
#server [Link] iburst
#server [Link] iburst
#server [Link] iburst
#server [Link] # local clock
#fudge [Link]
server [Link] #local clock
fudge [Link] stratum 10
# By default, exchange time with everybody, but don’t allow configuration.
# See /usr/share/doc/ntp-doc/html/[Link] for details.
#restrict -4 default kod notrap nomodify nopeer noquery
#restrict -6 default kod notrap nomodify nopeer noquery
# Local users may interrogate the ntp server more closely.
restrict [Link]
#restrict ::1
# Clients from this (example!) subnet have unlimited access,
# but only if cryptographically authenticated
#restrict [Link] mask [Link] notrust
restrict [Link] mask [Link] nomodify notrap
# If you want to provide time to your local subnet, change the next line.
# (Again, the address is an example only.)
#broadcast [Link]
# If you want to listen to time broadcasts on your local subnet,
# de-comment the next lines. Please do this only if you trust everybody
# on the network!
#disable auth
#broadcastclient
keterangan yang bertuliskan bold:
bold pertama:
memasukkan alamat lokal yang akan kita pkai acuan time server
bold kedua:
dipagarkan
bold ketiga:
alamat network yang akan kita pakai pada network kita. apabila hanya menggunakan 1 network,
buat seperti diatas. namun apabila menggunakan 2 atau lebih, masukkan alamat network pada
baris dibawahnya.
4. simpan dan keluar dengan mengetikkan ctrl+x dan y, lalu tekan enter.
5. cek service dari NTP:
#ntpq- p
jika sudah ada output dari service tersebut (output local), berarti service NTP telah berjalan.
6. sinkronisasikan dengan ntp server lokal
#ntpdate -u [Link] (IP localhost)
[Link]
[Link]
coba liat di situ juga