1. instal paket” dari NTP yang diperlukan:
#apt-get install ntp ntpdate
#apt-get install ntp ntpdate
2. lakukan editing file ntp.conf
#mcedit /etc/ntp.conf
#mcedit /etc/ntp.conf
3. edit file ntp.conf seperti dibawah ini:
Perhatian : Tambahkan tulisan yang bercetak tebal saja
#ntp.conf
# You do need to talk to an NTP server or two (or three).
#server ntp.your-provider.example
# You do need to talk to an NTP server or two (or three).
#server ntp.your-provider.example
Server 192.168.1.1 ==> ip eth1
# pool.ntp.org 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 0.debian.pool.ntp.org iburst ==> tambahkan tanda #
#server 1.debian.pool.ntp.org iburst ==> tambahkan tanda #
#server 2.debian.pool.ntp.org iburst ==> tambahkan tanda #
#server 3.debian.pool.ntp.org iburst ==> tambahkan tanda #
server 127.127.1.1
# Your server will pick a different set every time it starts up.
# *** Please consider joining the pool! ***
# *** ***
#server 0.debian.pool.ntp.org iburst ==> tambahkan tanda #
#server 1.debian.pool.ntp.org iburst ==> tambahkan tanda #
#server 2.debian.pool.ntp.org iburst ==> tambahkan tanda #
#server 3.debian.pool.ntp.org iburst ==> tambahkan tanda #
server 127.127.1.1
fudge 127.127.1.1
# By default, exchange time with everybody, but don’t allow configuration.
# See /usr/share/doc/ntp-doc/html/accopt.html for details.
#restrict -4 default kod notrap nomodify nopeer noquery ==> tambahkan tanda #
#restrict -6 default kod notrap nomodify nopeer noquery ==> tambahkan tanda #
# See /usr/share/doc/ntp-doc/html/accopt.html for details.
#restrict -4 default kod notrap nomodify nopeer noquery ==> tambahkan tanda #
#restrict -6 default kod notrap nomodify nopeer noquery ==> tambahkan tanda #
# Local users may interrogate the ntp server more closely.
restrict 127.0.0.1
restrict 127.0.0.1
#restrict ::1 ==> tambahkan tanda #
restrict 192.168.1.1 ==> ip eth1
# Clients from this (example!) subnet have unlimited access,
# but only if cryptographically authenticated
#restrict 192.168.123.0 mask 255.255.255.0 notrust
restrict 0.0.0.0 mask 0.0.0.0 nomodify notrap
# but only if cryptographically authenticated
#restrict 192.168.123.0 mask 255.255.255.0 notrust
restrict 0.0.0.0 mask 0.0.0.0 nomodify notrap
save denagn F2 lalu exit Dengan F10.
Selanjutnya edit file ntpdate dengan cara
#mcedit /etc/default/ntpdate
Pada NTPSERVER isikan nama domain kamu
Kemudian pada NTP OPTION isi dengan -u
save denagn F2 lalu exit Dengan F10.
Restart paket NTP # /etc/init.d/ntp restart ==> jalankan perintah #ntpq –p untuk mengecek servicesnya.
Kemudian jalan kan perintah ntpdate –u 127.0.0.1 tunggu 5 – 10 menit lalu ulangi langkah tersebut.
Title : Konfigurasi NTP Pada Debian 5.0 Lenny
Description : 1. instal paket” dari NTP yang diperlukan: #apt-get install ntp ntpdate 2. lakukan editing file ntp.conf # mcedit /etc/ntp....
Description : 1. instal paket” dari NTP yang diperlukan: #apt-get install ntp ntpdate 2. lakukan editing file ntp.conf # mcedit /etc/ntp....
0 Response to " Konfigurasi NTP Pada Debian 5.0 Lenny"
Posting Komentar