FreeBSD Install OpenNTPD NTP Server / Client To Synchronize The Local Clock

www‮.‬lautturi.com
FreeBSD Install OpenNTPD NTP Server / Client To Synchronize The Local Clock

To install the OpenNTPD NTP server and client on a FreeBSD system, you will need to do the following:

  1. Install the OpenNTPD package using the pkg package manager:
# pkg install openntpd
  1. Edit the OpenNTPD configuration file, /usr/local/etc/ntpd.conf, to specify the NTP servers that the client should use to synchronize the local clock. You can use the following format to specify the NTP servers:
server ntp1.example.com
server ntp2.example.com

Replace ntp1.example.com and ntp2.example.com with the hostnames or IP addresses of the NTP servers you want to use. You can specify multiple NTP servers by adding more server lines to the configuration file.

  1. Enable the OpenNTPD service by adding the following line to the /etc/rc.conf file:
ntpd_enable="YES"
  1. Start the OpenNTPD service by running the following command:
# service ntpd start

This will install and configure the OpenNTPD NTP server and client on your FreeBSD system. The client will use the specified NTP servers to synchronize the local clock.

For more information about using OpenNTPD on a FreeBSD system, you can refer to the OpenNTPD documentation and the ntpd man page by running man ntpd on the command line.

Created Time:2017-10-28 20:40:34  Author:lautturi