Synchronize Time Using Other NTP Peers - set up local time server
## install required packages
[root@rhel7server1 ~]# yum install -y ntp
## check currently configured NTP servers
[root@rhel7server1 ~]# grep ^server /etc/ntp.conf server 0.rhel.pool.ntp.org iburst
server 1.rhel.pool.ntp.org iburst
server 2.rhel.pool.ntp.org iburst
server 3.rhel.pool.ntp.org iburst
## enable and start ntpd service
[root@rhel7server1 ~]# systemctl enable ntpd Created symlink from /etc/systemd/system/multi-user.target.wants/ntpd.service to /usr/lib/systemd/system/ntpd.service.
[root@rhel7server1 ~]# systemctl start ntpd
[root@rhel7server1 ~]# ntpq -p remote refid st t when poll reach delay offset jitter
==============================================================================
+nets.org.sg .NMC1. 1 u 41 64 1 6.095 0.583 0.797
*time1.maxonline .GPS. 1 u 40 64 1 6.558 6.094 1.767
-time.cloudflare 10.35.14.16 3 u 39 64 1 10.726 8.551 4.313
+time.cloudflare 10.35.14.16 3 u 11 64 3 3.591 5.652 1.406
## edit /etc/ntp.conf and comment out the following
## enable and start ntpd service and open firewall ports
[root@rhel7client1 ~]# systemctl enable ntpd Created symlink from /etc/systemd/system/multi-user.target.wants/ntpd.service to /usr/lib/systemd/system/ntpd.service.