linux_wiki:network_services_overview_ntp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux_wiki:network_services_overview_ntp [2016/10/08 17:26]
billdozor [Install the packages needed to provide the service]
linux_wiki:network_services_overview_ntp [2019/05/25 23:50] (current)
Line 12: Line 12:
   * Configure the service for basic operation   * Configure the service for basic operation
   * Configure host-based and user-based security for the service   * Configure host-based and user-based security for the service
 +
 +----
 +
 +====== Lab Setup ======
 +
 +The following virtual machines will be used:
 +  * ipa.example.com (192.168.1.152) -> Central Time Server
 +  * server1.example.com (192.168.1.150) -> NTP Server1 syncs with central (also peers with server2)
 +  * server2.example.com (192.168.1.151) -> NTP Server2 syncs with central (also peers with server1)
  
 ---- ----
Line 42: Line 51:
 Check Current Service Status Check Current Service Status
 <code bash> <code bash>
-systemctl status <service-name>+systemctl status chronyd
 </code> </code>
   * Also displays if the service is enabled or disabled   * Also displays if the service is enabled or disabled
Line 49: Line 58:
 Enabling a service to start on boot Enabling a service to start on boot
 <code bash> <code bash>
-systemctl enable <service-name>+systemctl enable chronyd
 </code> </code>
  
Line 58: Line 67:
 Enable and Start the service Enable and Start the service
 <code bash> <code bash>
-systemctl enable <service-name> +systemctl enable chronyd 
-systemctl start <service-name>+systemctl start chronyd
 </code> </code>
  
Line 68: Line 77:
 ===== Firewall ===== ===== Firewall =====
  
-Allow access through the firewall+Allow access through the firewall if you want other servers to sync to this system
 <code bash> <code bash>
-firewall-cmd --permanent --add-service=<service-name>+firewall-cmd --permanent --add-service=ntp
 firewall-cmd --reload firewall-cmd --reload
 </code> </code>
  • linux_wiki/network_services_overview_ntp.1475962017.txt.gz
  • Last modified: 2019/05/25 23:50
  • (external edit)