TECHIES WORLD

For Techs.... Techniques.... Technologies....

Linux

How to configure ntp in Ubuntu

Network Time Protocol (NTP) is a networking protocol for clock synchronization between computer systems over packet-switched, variable-latency data networks.

This tutorial explains the detailed steps to configure ntp server and client in Ubuntu.

NTP Server Configuration

Step1: Install ntp package

#apt-get install ntp

Step2: Open ntp config file and update the ntp server configuration

#vi /etc/ntp.conf

server 0.ubuntu.pool.ntp.org

server 1.ubuntu.pool.ntp.org

server 2.ubuntu.pool.ntp.org

server 3.ubuntu.pool.ntp.org

Step3: Restart the ntp service

#/etc/init.d/ntp restart

Step4: Check the status of ntp server

#ntpq -p

NTP Client Configuration

Step1: Install ntp package

#apt-get install ntp

Step2: Open ntp config file and update the ntp server configuration

#vi /etc/ntp.conf

server ntpserverhostname/ipaddress

Step3: Restart the ntp service

#/etc/init.d/ntp restart

 

Leave a Reply