Friday, 4 October 2013

How to configure NTP Server

[root@upload2 ~]# yum -y install ntp
[root@upload2 ~]# vim /etc/ntp.conf
 
# line 19: add the network range you allow to receive requests

restrict 10.0.0.0 mask 255.255.255.0 nomodify notrap
 
# change servers for synchronization
 
#server 0.rhel.pool.ntp.org
#server 1.rhel.pool.ntp.org
#server 2.rhel.pool.ntp.org
 
server ntp1.jst.mfeed.ad.jp
server ntp2.jst.mfeed.ad.jp
server ntp3.jst.mfeed.ad.jp 
 
[root@upload2 ~]# /etc/rc.d/init.d/ntpd start
Starting ntpd:                                             [  OK  ]
[root@upload2 ~]# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 ntp1.jst.mfeed. 172.29.3.50      2 u   11   64    1  209.194  -112312   0.000
 ntp2.jst.mfeed. 172.29.2.50      2 u   11   64    1  191.529  -112304   0.000
 ntp3.jst.mfeed. 172.29.3.50      2 u   12   64    1  185.499  -112319   0.000
[root@upload2 ~]# 

No comments:

Post a Comment