Output perintah ntpstat menunjukkan "tidak sinkron":
# ntpstat unsynchronised time server re-starting
Output perintah “ntpq -p ” menunjukkan tidak ada server ntp yang dipilih:
# ntpq -p ========================================== remote refid st t when poll reach delay offset jitter =============================================== ntp-server .INIT. 16 u - 16 0 0.000 0.000 0.000 ntp-server .INIT. 16 u - 16 0 0.000 0.000 0.000
Output perintah as menunjukkan kedua server ntp ditolak:
# ntpq> as ind assID status conf reach auth condition last_event cnt =========================================================== 1 54459 8000 yes yes none reject 2 54460 8000 yes yes none reject
Output perintah rv menunjukkan kedua server ntp dalam status "tidak terjangkau":
# ntpq> rv 54459 assID=54459 status=8000 unreach, conf, no events, srcadr=, srcport=123, dstadr=x.x.x.x, dstport=123, leap=11, ..........
# ntpq> rv 54460 assID=54460 status=8000 unreach, conf, no events, srcadr=, srcport=123, dstadr=x.x.x.x, dstport=123, leap=11, ..........
Solusinya
“batasi abaikan default ” dalam file konfigurasi ntp mencegah akses dari server ntp jarak jauh. File konfigurasi ntp adalah sebagai berikut:
# cat /etc/ntp.conf restrict default kod nomodify notrap nopeer noquery ignore restrict -6 default kod nomodify notrap nopeer noquery ignore ...
“membatasi pengabaian default” akan mencegah akses tidak hanya dari semua klien tetapi juga dari semua server ntp jarak jauh.
Solusi 1
1. Edit /etc/ntp.conf dan ubah konfigurasi untuk mengizinkan akses tak terbatas dari semua mesin:
Ubah dari:
restrict default kod nomodify notrap nopeer noquery ignore restrict -6 default kod nomodify notrap nopeer noquery ignore
Untuk
restrict default restrict -6 default
2. Mulai ulang layanan ntpd:
# service ntpd restart
3. Tunggu beberapa menit, lalu jalankan “ntpq -p” untuk memeriksa apakah berhasil.
Solusi 2
1. Edit /etc/ntp.conf dan ubah konfigurasi untuk mengizinkan akses tak terbatas dari server ntp tertentu:
Ubah dari:
restrict default kod nomodify notrap nopeer noquery ignore restrict -6 default kod nomodify notrap nopeer noquery ignore
Untuk
restrict default kod nomodify notrap nopeer noquery restrict -6 default kod nomodify notrap nopeer noquery restrict xxx.xxx.xxx.xxx (IP address of a specific ntp server)
2. Mulai ulang layanan ntpd:
# service ntpd restart
3. Tunggu beberapa menit, lalu jalankan “ntpq -p” untuk memeriksa apakah berhasil.