TimeTools Logo

Tel: +44 (0)1902 897400
Fax: +44 (0)870 123 1844
Email: Sales@TimeTools.co.uk

TimeTools is an ISO9001 Accredited Company
  Products About Us Contact Support  

Running a NTP Server on Your Linux Machine

 

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 server 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 NTP 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 NTP 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 server for network time synchronisation.

Products
NTP Network Time Servers
  Rack-Mountable NTP Servers
  Compact NTP Servers

PC Time Synchronisation
  GPS Time Servers
  LF Radio Time Servers

Network Clocks
  Ethernet NTP Time Displays

GPS Products
  GPS\LF Over Fiber Solutions
  Accessories

 

More Information

Name:

Telephone:

Email:

Product:

Message:

 

Contact Us
Email:
  Sales@TimeTools.co.uk
UK:
  Tel: 01902 897400
  Fax: 0870 123 1844

International:
  Tel: +44 1902 897400
  Fax: +44 870 123 1844

 

Customer List
TimeTools provides network timing solutions to organizations world-wide. Here's a selection: TimeTools Customers

More Information>

Global Partners

Smith of Derby

 

More Information
  Site Map
  Web-Site Terms & Conditions
  Useful Links

Product Information
  Product List

Useful Articles
  What is NTP?

Popular Categories
  NTP Server
  NTP Time Server
  Time Server
  Atomic Clock
  Digital Wall Clock
  Time Synchronisation
  Notes

Copyright © 2002-2012 TimeTools Limited. All Rights Reserved. All Trademarks Acknowledged.