How To Configure Ntp Server

Posted on

How To Configure Ntp Server – The Network Time Protocol – NTP- is a protocol that goes over port 123 UDP at the transport level and allows computers to connect their time to the network at the correct time. Over time, a computer’s internal clock tends to drift, which can lead to inconsistent timing issues, especially in server and client log files, or when trying to replicate server resources or databases.

This tutorial shows you how to install and configure an NTP server on CentOS/RHEL 7 and use a list of public pool NTP time servers to automatically synchronize the time with the nearest geographically available peer in the server environment.

How To Configure Ntp Server

How To Configure Ntp Server

1. The NTP server package is provided by default in official CentOS/RHEL 7 repositories and can be installed using the following command:

Setting A Right Time Synchronisation In A Microsoft Windows Domain

2. After installing the server, first go to Official NTP Public Full Time Servers, select the region of the continent where the server is physically located, then search for the country and the list of NTP servers will appear.

3. Then open the default configuration file of the NTP daemon for editing and specify the default public server list in the pool.ntp.org project and replace it with the given list for your country as shown in the screenshot below.

4. You should also allow your network clients to synchronize their time with this server. To do this, add the following line to your NTP configuration file. The limit statement here controls which networks are allowed to query and the synchronization times. Replace the network IP accordingly.

The nomodify notrap statement indicates that the client cannot configure the server or use it as a time synchronization peer.

Maintain Consistent Time Across Servers Using Ntp Check

5. If there is a problem with the NTP daemon and you need more information to troubleshoot, add a log file report to log all NTP server problems in one dedicated log file.

6. After editing the file with all the settings described above, save and close the ntp.conf file. Your final configuration should look like the screenshot below.

7. The NTP service uses UDP port 123 in the OSI transport list (list 4). It is specially designed to resist the effects of variable latency (jitter). To open this port on RHEL/CentOS 7, run the following command against the Firewall service:

How To Configure Ntp Server

8. After opening the firewall port 123, start the NTP server and make sure that the system is enabled. Control the service using the following command:

Seven Best Practices To Keep Your Ntp Resilient

9. After the NTP daemon starts, wait a few minutes for the server to synchronize its time with the server’s list pool, then run the following command to check the synchronization status of the NTP peers and the system time:

10. To query and configure the selected pool, use the ntpdate command followed by the server address as suggested in the following command line example.

11. If your Windows system is not part of a domain controller, you can configure Windows to synchronize the time with the NTP server by going to Time on the right side of the taskbar -> Change date and time settings -> Internet Time tab -> Change. Settings -> Check Synchronize with Internet Time Server -> Enter the IP or FQDN of your server in the server field -> Update Now -> OK.

That’s it! By setting up a local NTP server on your network, all servers and clients are configured at the same time and are all synchronized with each other in the event of an internet connection failure.

Configuring Ntp Server

I am a computer addict who loves open source and Linux based software and I have 4 years of experience with Linux desktops, servers and bash scripting.

Configure cisco switch as ntp server, linux configure ntp server, configure windows ntp server, configure cisco router as ntp server, how to ntp server, how to configure ntp server in ubuntu, configure ntp server in windows 2008, configure ntp server redhat, configure ntp server 2012, configure ntp server, how to configure ntp, cisco configure ntp server