Sunday, May 3, 2020

How To Install & Configure NTP Server and Client on Ubuntu 20.04 LTS

 Video Tutorial -https://youtu.be/4pqktasscIc

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

NTP (Network Time Protocol) is a networking protocol designed to synchronize the clocks of computers over a network. NTP allows you to synchronize the clocks of all the systems within the network. NTP server synchronizes its time by contacting a number of servers around the world.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Testing Environment Setup-
Server - Ubuntu 20.04 LTS             Hostname - www.yourdomain.com  , ip Address - 192.168.1.50 
Client -Linux Mint 19.3 Tricia     
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
lsb_release -cd
apt update ; apt install -y build-essential net-tools curl git software-properties-common

sudo apt-get update ; sudo apt-get install ntp -y
sntp --version
sudo nano /etc/ntp.conf
https://support.ntp.org/bin/view/Servers/NTPPoolServers

pool 0.asia.pool.ntp.org iburst
pool 1.asia.pool.ntp.org iburst
pool 2.asia.pool.ntp.org iburst
pool 3.asia.pool.ntp.org iburst
sudo service ntp restart ; sudo service ntp status


NTP Client -
sudo apt-get update ; sudo apt-get install ntpdate -y
sudo nano /etc/hosts
192.168.1.50    www.yourdomain.com    
sudo service ntp stop
sudo ntpdate www.yourdomain.com
sudo service ntp start

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

No comments:

Post a Comment