Thursday, February 24, 2022

Steps To Configure Chrony as NTP Server & Client On Rocky Linux 8.5

 in This Tutorial you will Learn " Steps To Configure Chrony as NTP Server & Client On Rocky Linux 8.5 | chrony is an implementation of the Network Time Protocol (NTP). You can use chrony |
_________________________________________________________________________________________
Server - Os:  Rocky Linux 8.5  64Bit      |    IP -192.168.1.20        |     Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; dnf groupinstall "Development Tools" -y

timedatectl set-timezone Asia/Kolkata
dnf install chrony -y
systemctl start chronyd ; systemctl enable --now chronyd ; systemctl status chronyd
nano /etc/chrony.conf
timedatectl set-ntp true
systemctl restart chronyd
chronyc sources
firewall-cmd --permanent --add-service=ntp --permanent ; firewall-cmd --reload
chronyc clients
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Configure Chrony Client -
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y

timedatectl set-timezone Asia/Kolkata
dnf install chrony -y
nano /etc/chrony.conf
server chrony-server-ip         [ server 192.168.1.20 ]
timedatectl set-ntp true
systemctl stop chronyd  ;systemctl start chronyd ; systemctl enable --now chronyd
firewall-cmd --permanent --add-service=ntp --permanent ; firewall-cmd --reload
chronyc sources
_________________________________________________________________________________________

No comments:

Post a Comment