Differences
This shows you the differences between two versions of the page.
linux_wiki:synchronize_time_using_other_ntp_peers [2016/10/08 17:33] billdozor [NTP: Time Server] |
linux_wiki:synchronize_time_using_other_ntp_peers [2019/05/25 23:50] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== 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 ====== | ||
- | |||
- | Setting up the " | ||
- | |||
- | * Server: ipa.example.com (192.168.1.152) | ||
- | |||
- | \\ | ||
- | Ensure that the firewall allows NTP in | ||
- | <code bash> | ||
- | 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 | ||
- | <code bash> | ||
- | yum install ntp | ||
- | </ | ||
- | |||
- | \\ | ||
- | Enable and start the service | ||
- | <code bash> | ||
- | systemctl enable ntpd | ||
- | systemctl start ntpd | ||
- | </ | ||
- | |||
- | \\ | ||
- | Edit the NTP config file | ||
- | <code bash> | ||
- | vim / | ||
- | |||
- | # Comment out all server lines, add peer for the newly created NTP server | ||
- | peer 192.168.1.200 | ||
- | </ | ||
- | |||
- | \\ | ||
- | Restart the service | ||
- | <code bash> | ||
- | systemctl restart ntpd | ||
- | </ | ||
- | |||
- | \\ | ||
- | Open the firewall for ntp | ||
- | <code bash> | ||
- | firewall-cmd --permanent --add-service=ntp | ||
- | firewall-cmd --reload | ||
- | </ | ||
- | |||
- | ---- | ||