NTP : Configure NTP Server2024/10/31 |
Install Chrony to Configure NTP Server for Time Synchronization.
|
|
[1] | Install and Configure Chrony. |
[root@dlp ~]#
dnf -y install chrony
[root@dlp ~]#
vi /etc/chrony.conf # line 3 : change servers to synchronize (replace to your own timezone NTP server) # need NTP server itself to sync time with other NTP servers # pool 2.fedora.pool.ntp.org iburst
pool ntp.nict.jp iburst
# line 27 : add network range to allow to receive time synchronization requests from NTP Clients # specify your local network and so on # if not specified, only localhost is allowed
allow 10.0.0.0/24
systemctl enable --now chronyd |
[2] | If Firewalld is running, allow NTP service. NTP uses [123/UDP]. |
[root@dlp ~]# firewall-cmd --add-service=ntp success [root@dlp ~]# firewall-cmd --runtime-to-permanent success |
[3] | Verify it works normally. |
[root@dlp ~]# chronyc sources MS Name/IP address Stratum Poll Reach LastRx Last sample =============================================================================== ^* ntp-b2.nict.go.jp 1 6 17 30 -109us[ +460us] +/- 9850us ^- ntp-b3.nict.go.jp 1 6 17 31 -1824us[-1824us] +/- 11ms ^- ntp-a2.nict.go.jp 1 6 17 31 -233us[ -233us] +/- 9829us ^- ntp-k1.nict.jp 1 6 17 31 -2041us[-2041us] +/- 8476us |
Sponsored Link |