Article Directory :: Computers & Technology Articles

Configuring NTP on a LINUX Server

By David Evans

Subscribe to David Evans's RSS feed using any feed reader!

Republish: EasyPublish
Published: 13Jul2007
Word count: 486
Viewed: 360 time(s)
Bookmark this article using any bookmark manager!
Get Free Content For Your Site

NTP (Network Time Protocol) is an application developed to provide the synchronisation of computers and computer network devices. NTP defines algorithms and a protocol structure to accurately synchronise computer time. This article discusses how to install and configure the NTP Server application on a Linux machine to synchronise time with an Internet based public NTP Server.

Internet based NTP time server systems fall into two categories: primary and secondary reference servers. Primary reference servers utilise a highly accurate external timing reference, such as GPS or radio clocks, to provide precise time. Secondary reference time servers obtain time from primary reference servers and offer reduced accuracy. Primary reference time servers are stratum one servers, while secondary servers have a stratum greater than one.

The NTP source code is freely downloadable under the GNU public license from the NTP web site at 'ntp.org'. NTP was originally developed for the LINUX operating system, however, a port to Windows NT is also available. Once the source code has been obtained, it should be installed, compiled and configured on the host computer. This process is automated with the installation and configuration scripts supplied in the distribution. Many Linux based operating systems have the NTP package pre-installed. However, it may be prudent to download and install the latest version, which is currently 4.2.4.

The NTP daemon is configured via a configuration file 'ntp.conf'. This configuration file may contain a list of public NTP server references that can be used by the host to synchronise time. Public NTP time servers are specified using the 'server' command, any characters after the '#' symbol are comments:

server time-a.nist.gov # Public NTP server: NIST, Gaithersburg, Maryland server time-c.timefreq.bldrdoc.gov # Public NTP Server: NIST, Boulder, Colorado

When the configuration file is complete the NTP daemon can be started using the 'ntpd start' script. Other scripts are available to stop and restart the daemon: 'ntpd stop', 'ntpd restart'. There is also a query script available that shows the current synchronisation status of the daemon: 'ntpq -p'.

NTP provides access control permissions to the NTP server using the 'restrict' configuration command. There are a number of permutations or the 'restrict' command; a few examples are listed below.

restrict default ignore #Restrict all access to the time server restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap # Only allow local computers access

Multiple commands can be specified to restrict or disallow access to a range of computers.

NTP provides an additional level of security by utilising authentication codes. This is a mechanism where matching key codes can be specified on a client and server which are encrypted and passed between the server and client. This allows a client to confirm the source of a time message. Authentication keys are configured in the 'ntp.keys' file. They are specified using a key reference, encryption code and authentication key. Additionally, trusted authentication keys can be specified using the 'trusted key' command is the 'ntpd.conf' configuration file.

David Evans is a Linux technical author who specialises in NTP Server and time synchronisation systems to ensure accurate time on PC's and computer networks. Please click here for more information about NTP Server systems.

Bookmark this article using any bookmark manager! Subscribe to David Evans's RSS feed using any feed reader!

EasyPublish™ this article - publishers click here

More articles by David Evans

Free Report!
Ten Essential Secrets Of Article Marketing ... Grab Your Free
Copy
Now:




We respect your privacy.


Need Content?
Regular Top Quality Content for your Blog, Ezine or Website ...
Delivered Direct,
For Free!

Click For Details



Arts & Entertainment
Automotive
Business - General
Computers & Technology
Finance & Investment
Food & Drink
Health & Fitness
Home & Family
Internet Marketing/Online Business
Legal
Pets & Animals
Politics & Government
Reference & Education
Religion & Faith
Self-Improvement/Motivation
Social
Sports & Recreation
Travel & Leisure
Writing & Speaking

More computing articles:

  • What The Superior SDSL Companies Might Give To Your Company (Dirik Hameed)
    SDSL services are extremely helpful with a variety of broadband queries

  • Why You Should Be Using Tool Management Software (A. Noton)
    Tool management software offers several benefits to those who are trying to construct or even repair a business. Tools happen to play a vital role in both the production and manufacturing aspects of a business or company. They essentially serve the same purpose in both huge enterprises as well as small businesses.

  • 4 Approaches To Solve IPhone Freezing Troubles (Patricia Strasser)
    A few of the ways to fix iPhone freezing issues are the following: restarting your iPhone, resetting your iPhone, restoring factory configurations, and carrying your iPhone to an Apple service center.

  • 4 Items to Find Out About Web Hosting (Patricia Strasser)
    Items you need to be familiar with internet hosting include the following: significance, performance, availability, and also space capacity.

  • Samsung Galaxy S III Concept Is Here (San Lee)
    Samsung has amazed all the market with its cell phone deals in the past few years. They have started with the great Samsung Omnia and now they have phones that can rival some of the notebooks that you can find on the market.

  • Apple Stock Price Hits New Milestones Daily (San Lee)
    Apple is one of the most well know companies on the market of mobile phones. They have a different market strategy and they try to win the hearts of customers by launching a new phone each year.

We Automatically Distribute Articles
To Thousands Of Publishers And Web Sites:

Submit Article
All content is viewed and used by you at your own risk and we do not warrant the accuracy or reliability of any of the information. The views expressed are those of the individual contributing authors and not necessarily those of this web site, or its owner, Takanomi Limited.
 
Copyright © 2012 Takanomi Ltd. Company no. 5629683. All rights reserved. | Privacy | Legal | Contact Information