Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
linux_wiki:network_services_overview_ntp [2016/10/08 17:25] billdozor [Network Services Overview NTP] |
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 17: | Line 26: | ||
====== Install the packages needed to provide the service ====== | ====== Install the packages needed to provide the service ====== | ||
- | Install the service | + | Install the service |
<code bash> | <code bash> | ||
- | yum install | + | yum install |
</ | </ | ||
Line 42: | Line 51: | ||
Check Current Service Status | Check Current Service Status | ||
<code bash> | <code bash> | ||
- | systemctl status | + | systemctl status |
</ | </ | ||
* 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 | + | systemctl enable |
</ | </ | ||
Line 58: | Line 67: | ||
Enable and Start the service | Enable and Start the service | ||
<code bash> | <code bash> | ||
- | systemctl enable | + | systemctl enable |
- | systemctl start < | + | systemctl start chronyd |
</ | </ | ||
Line 68: | Line 77: | ||
===== Firewall ===== | ===== Firewall ===== | ||
- | Allow access through the firewall | + | Allow access through the firewall |
<code bash> | <code bash> | ||
- | firewall-cmd --permanent --add-service=< | + | firewall-cmd --permanent --add-service=ntp |
firewall-cmd --reload | firewall-cmd --reload | ||
</ | </ |