ntp client beda zone waktu dengan ntp server

20 Dec

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

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: