Configuring NTP
Install NTP
- Linux: Install the NTP package using your package manager:
sudo apt update && sudo apt install ntp
or
sudo yum install ntpNote: Many current distributions (RHEL 8+, Debian 10+, Ubuntu 20.04+) use
chronyorsystemd-timesyncdby default. Ifntpisn’t available, installchronyinstead. - Windows: NTP functionality is built into the Windows Time service. No additional installation is required.
Configure the NTP server
- Linux:
Edit/etc/ntp.confand specify your NTP servers:
server 0.pool.ntp.org iburst
server 1.pool.ntp.org iburst
server 2.pool.ntp.org iburst
server 3.pool.ntp.org iburstThe
iburstoption speeds initial synchronization when a server is temporarily unreachable.Replace
pool.ntp.orgwith your organization’s internal NTP servers if you have them. - Windows:
Configure via Command Prompt:
w32tm /config /manualpeerlist:"0.pool.ntp.org 1.pool.ntp.org" /syncfromflags:manual /reliable:yes /update
w32tm /resyncOr use Group Policy: Computer Configuration > Administrative Templates > System > Windows Time Service > Time Providers.
Start the NTP service
- Linux:
sudo systemctl start ntp
sudo systemctl enable ntp - Windows:
Ensure the Windows Time service is running:
net start w32time
Verify NTP status
- Linux:
ntpq -p
or
timedatectlThis shows the peer list and synchronization status.
- Windows:
w32tm /query /statusDisplays the current synchronization state of the Windows Time service.
Troubleshooting NTP
1. Check service status
- Linux:
systemctl status ntp(orchronyd/systemd-timesyncd) - Windows:
w32tm /query /status
2. Firewall rules
- Ensure UDP port 123 is open for NTP traffic.
3. Verify time drift
- Query a trusted NTP server directly:
ntpdate -q <ntp-server>On systems where
ntpdateis deprecated, usentpd -q <server>orchronyc sources. - If drift exceeds your tolerance, investigate further.
4. Check network connectivity to NTP
- Don’t rely on ping (ICMP). Test the NTP port directly:
ntpdate -q 0.pool.ntp.org
or
nc -uvz <ntp-server> 123
5. Check logs
- Linux:
/var/log/syslog,/var/log/ntp.log, orjournalctl -u ntp - Windows: Event Viewer → Applications and Services Logs > Microsoft > Windows > Time-Service
6. Force synchronization
- Linux:
sudo ntpd -q <ntp-server>
sudo systemctl restart ntp - Windows:
w32tm /resync
7. Verify configuration
- Check
/etc/ntp.confor Windows NTP settings for typos or wrong server addresses.
8. Try a different NTP server
- If a specific server is unreachable, switch to another public or internal source.
9. Persistent clock drift
- On Linux, consider
chronyinstead ofntpdfor systems with unstable clocks (VMs, laptops, hardware with poor RTC).
10. Keep NTP software updated
- Apply security patches and updates for your NTP implementation.
Best practices
- Use multiple NTP servers for redundancy (minimum three, four is better).
- Prefer internal NTP servers in enterprise environments for lower latency and control.
- Monitor time synchronization with alerting on drift thresholds.
- Disable conflicting time services (e.g., SNTP, VMware Tools time sync) to avoid fights.
- Ensure hypervisors (ESXi, Hyper-V, KVM) run NTP so guests inherit correct time.

Ali YAZICI is a Senior IT Infrastructure Manager with 15+ years of enterprise experience. While a recognized expert in datacenter architecture, multi-cloud environments, storage, and advanced data protection and Commvault automation , his current focus is on next-generation datacenter technologies, including NVIDIA GPU architecture, high-performance server virtualization, and implementing AI-driven tools. He shares his practical, hands-on experience and combination of his personal field notes and “Expert-Driven AI.” he use AI tools as an assistant to structure drafts, which he then heavily edit, fact-check, and infuse with my own practical experience, original screenshots , and “in-the-trenches” insights that only a human expert can provide.
If you found this content valuable, [support this ad-free work with a coffee]. Connect with him on [LinkedIn].



