Install & Configure NTP Server and Client on Ubuntu 20.04 LTS
Testing Environment Setup-
Server - Ubuntu 20.04 LTS
Hostname - ntp.example.com
ip Address - 192.168.1.204
Client - Ubuntu 16.04 LTS
Hostname - www.example.com ,
ip Address - 192.168.1.101
[On NTP Server]
#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
#vi /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
[On NTP Client]
#sudo apt-get update
#sudo apt-get install ntpdate -y
#sudo vi /etc/hosts
192.168.1.50 ntp.example.com
#sudo service ntp stop
#sudo timedatectl set-ntp on
#sudo ntpdate ntp.example.com
#sudo service ntp start
Server - Ubuntu 20.04 LTS
Hostname - ntp.example.com
ip Address - 192.168.1.204
Client - Ubuntu 16.04 LTS
Hostname - www.example.com ,
ip Address - 192.168.1.101
[On NTP Server]
#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
#vi /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
[On NTP Client]
#sudo apt-get update
#sudo apt-get install ntpdate -y
#sudo vi /etc/hosts
192.168.1.50 ntp.example.com
#sudo service ntp stop
#sudo timedatectl set-ntp on
#sudo ntpdate ntp.example.com
#sudo service ntp start
Comments
Post a Comment