This is an old revision of the document!
Synchronize Time Using Other NTP Peers
General Information
Synchronizing time to a central time server and also keeping in sync with a peer server.
This type of setup would be a tier two NTP setup, allowing for redundancy if the central source of time is lost. The two peers could agree on a time and provide it locally to other servers.
NTP: Time Server
- Server: ipa.example.com (192.168.1.152)
Ensure that the firewall allows NTP in
firewall-cmd --permanent --add-service=ntp firewall-cmd --reload
NTP: Client Peering
Setup a NTP client to peer/sync with the NTP server.
Install required package
yum install ntp
Enable and start the service
systemctl enable ntpd
systemctl start ntpd
Edit the NTP config file
vim /etc/ntp.conf # Comment out all server lines, add peer for the newly created NTP server peer 192.168.1.200
Restart the service
systemctl restart ntpd
Open the firewall for ntp
firewall-cmd --permanent --add-service=ntp firewall-cmd --reload