Fedora 21
Sponsored Link

Configure NTP Server2014/12/10

 
Configure NTP server for time adjustment. NTP uses 123/UDP.
[1] NTP is installed if you installed Fedora Server with minimum-install, so it's not necessarry to install new packages. But if it's not installed, do like follows.
[root@dlp ~]#
yum -y install ntp
[2] Configure NTP.
[root@dlp ~]#
vi /etc/ntp.conf
# line 18: 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 (replace to your timezone's one)

#
server 0.fedora.pool.ntp.org iburst
#
server 1.fedora.pool.ntp.org iburst
#
server 2.fedora.pool.ntp.org iburst
#
server 3.fedora.pool.ntp.org iburst
server ntp1.jst.mfeed.ad.jp
server ntp2.jst.mfeed.ad.jp
server ntp3.jst.mfeed.ad.jp
[root@dlp ~]#
systemctl start ntpd

[root@dlp ~]#
systemctl enable ntpd

Created symlink from /etc/systemd/system/multi-user.target.wants/ntpd.service to /usr/lib/systemd/system/ntpd.service.
[root@dlp ~]#
ntpq -p

     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*ntp1.jst.mfeed. 172.29.2.50      2 u   53   64    1   68.920   -0.823   0.000
 ntp2.jst.mfeed. 172.16.176.60    2 u   53   64    1   70.748    0.005   0.000
 ntp3.jst.mfeed. 172.29.3.50      2 u   53   64    1   69.337   -0.114   0.000
Matched Content