KONFIGURASI NTP SERVER
NTP server (Network Time Protocol)
gunanya : agar setiap perangkat dalam jaringan
memiliki waktu yg sama tersinkron satu dengan yg lain
port nya 123 protokol UDP
sejak th 1985 oleh David L Mills
konfigurasi nya:
1. instal paket ntp
#apt-get install ntp
2. seting file: ntp.conf
#nano /etc/ntp.conf1234
1root
a. cari script beri tanda # pada kalimat server 0 sampai 3
server0.debian.pool.ntp.org
server1.debian.pool.ntp.org
server2.debian.pool.ntp.org
server3.debian.pool.ntp.org
server 127.127.1.0
fudge 127.127.1.0 stratum 1
(tambahkan 2 kalimat di atas)
b. cari script restrict hapus tanda #
ganti dengan no network dan netmask yg eth ke klien
restrict 192.168.30.0 mask 255.255.255.0 nomodify notrap
3. restart ntp
#/etc/init.d/ntp restart
#service ntp restart
4. pengujian ntp
#ntpq -pn
cat: jika muncul :remote refrid jitter
0.001 atau 0.000
berhasil
jika muncul : No association ID's returned
gagal
solusi ketik perintah #dpkg-reconfigure ntp
5. seting di klien
a. Linux
instal paket ntpdate
#apt-get install ntpdate
#ntpdate - u 192.168.30.1(ip server)
b. Window
control panel ke clock, language ke date and time
ke menu internet time ke change settings
centang synchronize
isikan ip server 192.168.30.1 klik update now
jika berhasil akan adaa tulisan
this computer is set automatically synchronize on a scheduled basis
#date --set 12:37:10
#date --set 2018-09-24
.jpg)
Tidak ada komentar:
Posting Komentar