How to Configure a Simple NTP Server
How to Configure a Simple NTP Server
The Network Time Protocol (NTP) is a standard protocol for
synchronising time on computers and network equipment. NTP
allows client computers to synchronise time with a NTP
server over an Internet or Intranet network. The NTP
protocol was originally developed for the Linux operating
system. The standard NTP distribution is a freely
downloadable application supplied under the GNU public
licence. This article attempts to simplify the installation
and configuration of the Linux NTP server application. It
describes a simple NTP installation and goes through
step-by-step the configuration procedure required to
provide a NTP server on a Linux machine.
The NTP software distribution can be freely download from
the NTP website, ntp.org. As well as containing the NTP
daemon for Linux, the distribution also contains a number
of utilities and configuration scripts. These utilities and
scripts aid the installation process and provide debugging
facilities to trace installation problems. Many Linux
operating systems install the NTP distribution by default,
or at least offer it as a pre-configured RMP package.
The NTP daemon is configured using a configuration file
'ntp.conf'. A list of commands can be specified in the
configuration file to indicate which servers the daemon is
to synchronise to and also to specify various
authentication and access control options.
The NTP daemon synchronises to an external NTP server.
Often, Internet based NTP time servers are used as
reference clocks. External NTP servers are specified using
the 'server' command along with the IP address or domain
name of the server. Multiple external time servers can be
specified in the configuration file, which allows NTP to
select the most appropriate server.
The NTP daemon is controlled by a series of scripts, which
are used to start ('ntpd start'), stop ('ntp stop') or
restart ('ntpd restart') the daemon. The NTP daemon can be
queried and debugged using the 'ntpq' utility. This is a
very useful utility for debugging NTP server installations.
It provides information relating to the synchronisation
status of the NTP daemon.
There are a number of security commands that can be
specified in the configuration file to control access to
the time server and also to provide authentication. You can
easily configure NTP so that only a specified set of
computers on a network can access the NTP server. This is
achieved using the 'restrict' command, which is used in
conjunction with the IP address or computer name of the
computer to be allowed access. Multiple 'restrict' commands
can be specified to restrict access to a range of
computers. Authentication allows a matching set of keywords
to be used on a server and client to authenticate the
server. Shared keywords are specified in a 'ntp.keys' file
on both the server and client computers. The keyword that
are trusted and to be used for authentication purposes are
then specified in the NTP daemon configuration file
'ntp.conf'.
To summarise, the NTP distribution is easy and free to
obtain and easy to install, configure and debug. There is
no reason why anyone with a little computer know-how cannot
set up a local NTP time server for network time
synchronisation.
About the Author:
This article was written by David Evans, a technical author
in the field of computer network time synchronisation
systems and solutions. If you would like to read more of
David's articles about time synchronisation, GPS timing and
NTP server systems, please visit:
www.timetools.co.uk
----------
This article is distributed on behalf of the author by SubmitYOURArticle.com
SubmitYOURArticle.com is a trading name of Takanomi Limited.
Takanomi Limited is a limited company registered in England and Wales.
Registered number: 5629683. Registered office: 31 St Saviourgate, York YO1 8NQ.
Full contact details are at takanomi.com
----------
------------------------------------
|