Fedora 24
Sponsored Link

NTPd : Configure NTP Server
2016/06/22
 
Install NTPd and Configure NTP server for time adjustment.
[1] Install NTPd.
[root@dlp ~]#
dnf -y install 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

#
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 iburst
server ntp2.jst.mfeed.ad.jp iburst
server ntp3.jst.mfeed.ad.jp iburst
[root@dlp ~]#
systemctl start ntpd

[root@dlp ~]#
systemctl enable ntpd

[2] If Firewalld is running, allow NTP service. NTP uses 123/UDP.
[root@dlp ~]#
firewall-cmd --add-service=ntp --permanent

success
[root@dlp ~]#
firewall-cmd --reload

success
[3] Verify it works normally like follows.
[root@dlp ~]#
ntpq -p

     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*ntp1.jst.mfeed. 133.243.236.17   2 u    1   64    1   18.131    0.228   0.166
 ntp2.jst.mfeed. 133.243.236.17   2 u    -   64    1   18.085    0.263   0.137
 ntp3.jst.mfeed. 133.243.236.17   2 u    1   64    1   18.124    0.442   0.053
Matched Content
 
Tweet