linux_wiki:synchronize_time_using_other_ntp_peers

This is an old revision of the document!


Synchronize Time Using Other NTP Peers

General Information

About this page/how-to/script.


NTP: Time Server

Setting up a local NTP server in order to practice the objective of synchronizing time.


Install the ntp package

yum install ntp


Enable and start ntpd

systemctl enable ntpd
systemctl start ntpd


Query NTP to view status

ntpq -p
  • -p →


NTP Statistics

ntpstat


Configure NTP Pool Sources

vim /etc/ntpd.conf
 
# Comment out other servers, add the below
server 127.127.1.0
  • 127.127.1.0 → Special IP address that syncs to the local server's clock


Restart the service for the change to apply

systemctl restart ntpd


Open the firewall for NTP

firewall-cmd --permanent --add-service=ntp
firewall-cmd --reload

NTP: Client Peering

Setup a NTP client to peer with the NTP server.


Install required package

yum install 

  • linux_wiki/synchronize_time_using_other_ntp_peers.1473538758.txt.gz
  • Last modified: 2019/05/25 23:50
  • (external edit)