Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 08-30-2007, 09:46 PM   #1
Registered: Aug 2005
Posts: 235

Rep: Reputation: 30
Question NTP's ntp.conf

For something as basic as time, I would think that this file would be a little easier to understand.

I'm running Slackware 12.0 and it comes with an pre-configured /etc/ntp.conf file.

# Sample /etc/ntp.conf:  Configuration file for ntpd.
# Undisciplined Local Clock. This is a fake driver intended for backup
# and when no outside source of synchronized time is available. The
# default stratum is usually 3, but in this case we elect to use stratum
# 0. Since the server line does not have the prefer keyword, this driver
# is never used for synchronization, unless no other other
# synchronization source is available. In case the local host is
# controlled by some external source, such as an external oscillator or
# another protocol, the prefer keyword would cause the local host to
# disregard all other synchronization sources, unless the kernel
# modifications are in use and declare an unsynchronized condition.
server	# local clock
fudge stratum 10	

# Drift file.  Put this in a directory which the daemon can write to.
# No symbolic links allowed, either, since the daemon updates the file
# by creating a temporary in the same directory and then rename()'ing
# it to the file.
driftfile /etc/ntp/drift
multicastclient			# listen on default
broadcastdelay	0.008

# Keys file.  If you want to diddle your server at run time, make a
# keys file (mode 600 for sure) and define the key number to be
# used for making requests.
# systems might be able to reset your clock at will.
#keys		/etc/ntp/keys
#trustedkey	65535
#requestkey	65535
#controlkey	65535

# Don't serve time or stats to anyone else by default (more secure)
restrict default noquery nomodify
# Trust ourselves.  :-)
I've done a little searching and found what certain statements mean but there is still a few things I don't understand. The documentation of NTP is just as complex as this configuration file. "stratum", "broadcastdelay", "fudge", etc. Huh? I'm one that likes to know exactly what each line in a configuration file means.

All I'm trying to do is get this computer syncing with a number of servers and allow other computers on my LAN (running Windows XP) syncing with this box.

What do I need to do this? (I don't expect anyone to write the file for me, just a point in the right direction.)

Thanks to any replies.
Old 08-30-2007, 10:24 PM   #2
Senior Member
Registered: Mar 2002
Location: Oklahoma
Posts: 1,154

Rep: Reputation: 187Reputation: 187
add this to your /etc/ntp.conf
this is all mine has, none of the other stuff the default has...

as far as syncing XP on your lan goes i have no clue...

Last edited by Okie; 08-30-2007 at 10:26 PM.
Old 08-30-2007, 10:34 PM   #3
Registered: Sep 2003
Location: Sydney Australia
Distribution: Redhat, Centos, Solaris, Ubuntu, SUSE
Posts: 282

Rep: Reputation: 45

I'm no expert in NTP, but here goes:

server	# local clock
fudge stratum 10
This is the local system time and I think the fudge it to give it a stratum. This is in case you lose your internet connection, ntp will use the internal system clock.
A stratum is the accuracy of the source clock. Stratum 1 clocks are the most accurate, and are driven by a GPS clock, or an atomic clock.
There are a few public stratum one clocks about but not many. a Stratum 2 clock is not as accurate, but might have its source as a stratum 1 clock.
Therefore the lower the stratum number the more accurate the clock is.
There is a list of publicly available clocks on the ntp site some where.
I think therefore if you create a ntp server on you internal network and its sources are stratum 2 your server would then be a stratum 3 source.(not 100% sure about this)
You can point your ntp config at as many as you like.
Some public clocks like you to subscribe to there mail list etc so they can keep track of the number of users.

I'm sorry not sure about this one.

One thing you can try once you have your ntp setup is run ntpq
then type peers. This will show you which clocks you are syncing from, accuracy etc.


ntp, ntpconf, ntpd

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ntp.conf rewriting on reboot to install-default dfowensby Slackware 2 02-16-2005 12:01 PM
9.1... ntp.conf overwritten on boot german Slackware 2 02-16-2005 12:01 PM
NTP cannot work with timeserver, NTP-d can jerryvapps Linux - Networking 0 08-04-2004 03:04 PM
NTPd - ntp.conf warath Linux - Software 8 04-05-2004 09:42 AM
ntp.conf overwritten larand54 Linux - Networking 3 10-08-2003 03:03 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:24 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration