How to Set up Chrony as NTP Server and Client

How to Set up Chrony as NTP Server and Client

- 4 mins

What is Chrony?

Chrony Server and client

Install chrony and start service

apt install chrony -y
systemctl enable chrony
systemctl start chrony

Configure chrony server

nano /etc/chrony.conf
# list servers

server 0.north-america.pool.ntp.org iburst
server 1.north-america.pool.ntp.org iburst
server 2.north-america.pool.ntp.org iburst
server 3.north-america.pool.ntp.org iburst

#Allowed clients
allow 192.168.64.0/24

chrony1

chronyc sources
chronyc sources -v

chrony2


Setting up Chrony as NTP Client

apt install chrony -y
systemctl enable chrony
systemctl start chrony
vi /etc/chrony.conf
server 192.168.64.15 iburst prefer

chrony3

sudo systemctl restart chronyd
chronyc tracking
chronyc ntpdata

chrony5


:metal: :metal: :metal: :metal: :metal: :metal: :metal:


:memo: Thanks for reading and do not forget set your watch correct time :clock1: :clock4: :clock9: :clock2: :joy: :joy:

Guneycan Sanli.


Guneycan Sanli

Guneycan Sanli

A person who like learning, music, travelling and sports.

comments powered by Disqus