Monday, May 4, 2020

How To install And configure Chrony as NTP Server & Client On Ubuntu 20

Video Tutorial - https://youtu.be/GoqzGN8dxxU

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

In this Tutorial, you will learn how to configure chrony as NTP server and NTP Client. With chrony suite you can synchronize the system clock with an external time server using the Network Time Protocol (NTP).
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Testing Environment Setup-
Server Ubuntu 20.04 LTS             Hostname - www.yourdomain.com  , ip Address - 192.168.1.50 
Chrony Client- Linux Mint 19.3 Tricia    
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
lsb_release -cd
apt update ; apt install -y build-essential net-tools curl git software-properties-common

apt update ; apt install chrony -y
systemctl start chrony ; systemctl enable chrony
nano /etc/chrony/chrony.conf
pool 0.jp.pool.ntp.org iburst maxsources 2
pool 1.jp.pool.ntp.org iburst maxsources 2
pool 2.jp.pool.ntp.org iburst maxsources 2
pool 3.jp.pool.ntp.org iburst maxsources 2

allow 192.168.1.50
allow 192.168.1.50/24
systemctl restart chrony
chronyc clients



Chrony Client Setup -
apt update ; apt install chrony -y
systemctl start chrony ; systemctl enable chrony
nano /etc/chrony/chrony.conf
server 192.168.1.50 prefer iburst
systemctl restart chrony
chronyc sources
chronyc sources -v

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

No comments:

Post a Comment