Set up NTP Server and Client
NTP Server
Step 1: Install Chrony NTP package
yum install chrony
Step 2: Enable Chrony to start after boot:
systemctl enable chronyd
Step 3: Set Chrony to act as an NTP server for a local network
To turn Chrony into an NTP server, add the following line to the main Chrony /etc/chrony.conf
configuration file. Change the address to your network address.
allow 10.1.1.0/24
Step 4: Restart Chrony NTP daemon to apply the changes
systemctl restart chronyd
Step 5: Open the firewall port to allow for incoming NTP requests
firewall-cmd --permanent --add-service=ntp
firewall-cmd --reload
NTP Client
Step 1: Install Chrony NTP package
yum install chrony
Step 2: Enable Chrony to start after boot:
systemctl enable chronyd
Step 3: Set Chrony to act as an NTP client
Add the following line in the Chrony /etc/chrony.conf
configuration file: Change the IP address to your NTP server.
Server 10.1.1.10
Step 4: Restart Chrony NTP daemon to apply the changes
systemctl restart chronyd
Step 5: Check for NTP server sources.
Your local NTP server should be listed:
chronyc sources
MS Name/IP address Stratum Poll Reach LastRx Last sample
===============================================================================
^? LAB-DC1.lab.local 4 6 1 2 +31us[ +31us] +/- 44ms