ntp client beda zone waktu dengan ntp server
kasus :
ntp server berada di indonesia bagian WIB
ntp client berada di indonesia bagian WIT
================================
setup pada sisi client
================================
1. cek ikut wilayah mana ?
[root@orcl6 ~]# date
Tue Dec 20 10:15:47 WIT 2011
2. ubah zone komputer
[root@orcl6 ~]# mv /etc/localtime /etc/localtime.asli
[root@orcl6 ~]# ln -s /usr/share/zoneinfo/Asia/Makassar /etc/localtime
3. apakah sudah berapa wilayahnya ?
[root@orcl6 ~]# date
Tue Dec 20 11:27:20 CIT 2011
4. set ntp client dimana ntp server di ip 172.20.140.33
[root@orcl6 ~]# mv /etc/ntp.conf /etc/ntp.conf.asli
[root@orcl6 ~]# cat >> /etc/ntp.conf << EOF
restrict 127.0.0.1
server 172.20.140.33
driftfile /etc/ntp/drift
restrict 172.20.140.33 mask 255.255.0.0 nomodify notrap noquery
EOF
[root@orcl6 ~]# cat >> /etc/ntp/step-tickers << EOF
172.20.140.33
EOF
5. sinkronisasi dengan ntp server di ip 172.20.140.33
[root@orcl6 ~]# ntpdate 172.20.140.33
[root@orcl6 ~]# chkconfig ntpd on
[root@orcl6 ~]# service ntpd start
6. periksa apakah ada selisih jam ?
a. sisi ntp server
[root@linux34 ~]# date
Tue Dec 20 10:09:31 WIT 2011
b. sisi ntp client
[root@orcl6 ~]# date
Tue Dec 20 11:09:28 CIT 2011
Tags: How to Change the Timezone in Linux, ntp, ntp client, ntp server, Setting the system clock, Setting your timezone, zone waktu