IN this tutorial we will study about how to configure NTP server for time adjustment. NTP uses 123/UDP.
[root@easylinux ~]# yum -y install ntp
[root@easylinux ~]# vi /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 iburst
server ntp2.jst.mfeed.ad.jp iburst
server ntp3.jst.mfeed.ad.jp iburst
[root@easylinux ~]# /etc/rc.d/init.d/ntpd start
Starting ntpd:[ OK ]
[root@easylinux ~]# chkconfig ntpd on
[root@easylinux ~]# ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
ntp1.jst.mfeed. 210.173.160.56 2 u 8 64 1 24.214 1449.94 0.000
ntp2.jst.mfeed. 210.173.160.56 2 u 7 64 1 31.454 1445.03 0.000
ntp3.jst.mfeed. 210.173.160.86 2 u 6 64 1 26.589 1448.61 0.000
reference server-world.info
No comments:
Post a Comment