OpenNTPd: Setting up an NTP server on OpenBSD
Introduction
Having your machines synchronized to the correct time is very practical! Especially when you’re trying to read logs from two different machines.
For those who need microsecond-level precision, OpenNTPd is not the right solution - use the traditional NTP server instead.
Installation
Nothing to do :-)
Configuration
Open the /etc/ntpd.conf
file and configure it as follows:
|
|
This is a basic configuration, but it works well.
Next, edit the /etc/rc.conf.local
file to indicate that the NTP server should start at boot time, and modify the line as follows:
|
|
Now, if you want to start the daemon to see how it works:
|
|
Verification
To ensure that everything is working, use this command:
|
|
It can take up to about 4 minutes to synchronize your machine.
Manual Synchronization
If you want to perform a manual synchronization, use this command:
|
|
Resources
Last updated 21 May 2009, 11:40 CEST.