NTP Network Time Protocol

Sourabh Dey
3 min readJan 14, 2022

--

NTP is an old widely know and cross platform protocol designed to sync the clocks of computer over a network. It commonly sync a computer to internet

Important Point

In Rhel 8 + , the ntp package is no longer supported and it’s implemented by the chronyd(a daemon that runs in user-space) which is provided in the crony package

Crony works both as an ntp server and as an ntp client , which is used to sync the system clock with ntp server and can be used to sync the system clock

Server Side Configuration:

Install the crony Package

Install all the packages

Start and Enable the crony service

Add NTP service in the firewall

Reload the firewall

Make an entry in network configuration file of NTP (chrony)

nano /etc/chrony.conf

File Configuration
it will sync all the client clock in LAN

Restart the service again :

Now Check How Many Client NTP Client are connected to your network

As you can see there no client are currently Connected within network

Client Site Configuration :

Install the Package :

Enable & Start the Service

Add the Service to the Firewall

Reload the Firwall Configuration

Add the Server Ip Configuration in Client configuration file

This is a client Machine under which I put down the server IP address to Configure the Time

Now on the Server site you can see the Client.local is added :

Now to configure the NTP Server in the Windows Machine

Go to Date & Time Setting
Put the Server IP in the Internet Time Setting Tab

Server Site

After you configure in the windows client it will show the window client IP which is 192.168.43.20

Now to Check and Verify:

If you change the date and system in any client it automatically assign the Server IP address

Example :

Let’s just say I want to change some random date on the windows & Linux client but after some time due to sync NTP it will automatically change the Date according to the Server Date and Time configuration

Server Site View

Two Client are connected First one is linux and second one is windows

Client Site View

On the client Site it will show the server Added Configuration

Done

--

--

Sourabh Dey
Sourabh Dey

Written by Sourabh Dey

Trying To learn as much as possible about different Techonology. About me I am just a normal Boy who lives in terminal

No responses yet