This article will guide you on how to configure the #NTP server on Ubuntu. You will learn how to configure the NTP client on another #Ubuntu machine and synchronize it with the NTP server. By means of this, you can easily synchronize all system clocks in a network.
The Network Time Protocol (NTP) is a networking protocol for clock synchronization between computer systems over packet-switched, variable-latency data networks.
NTP is intended to synchronize all participating computers to within a few milliseconds of Coordinated Universal Time (UTC).
To Configure NTP server:
1. Install NTP Server. First, install NTP package on your server using the appropriate package management tool that is available on your Linux distro.
2. Setup Restrict values in ntp. conf.
3. Allow Only Specific Clients.
4. Add Local Clock as Backup.
5. Setup NTP Log Parameters.
6. Start the NTP Serrver.
To Configure NTP client:
1. To configure your Linux system as an NTP client, you will need to install the ntp daemon (ntpd).
2. The ntpd configuration file is located at /etc/ntp.conf.
3. This file contains the list of NTP servers that will be used for time synchronization.
4. Next, restart the NTP deamon with the sudo service ntp reload command