Getting in Sync: A Look at NTP
January 25, 1999


Further reading on NTP as well as the home of the NTP/XNTP packages can be found here: http://www.eecis.udel.edu/~ntp/

All examples assume that the hosts at 10.1.1.2 and 10.2.1.2 are NTP servers.

NTPD (on UNIX) sample configuration:

(/etc/ntp/conf)

#

# NTP configuration file (ntp.conf)

#

server 10.1.1.2 # internal stratum 5

server 10.2.1.2 # internal stratum 2

#

# Miscellaneous stuff

#

driftfile /etc/ntp.drift # path for drift file

statsdir /var/log/ntp/ # directory for statistics files

filegen peerstats file peerstats type day enable

filegen loopstats file loopstats type day enable

filegen clockstats file clockstats type day enable

NTP on Windows NT using TimeServ (available in the MS resource kit):

[TimeServ]

Type=NTP

REM Period 0 below means to use the default delay between each time set

REM Default is daily for modem or every 8-12 hours for network

REM Period can also be set to a number which means that many times daily

Period=0

REM NTPServer is the name or numeric address of an NTP server

REM No default is given, since you should contact a timekeeper

REM (If you don't know what this is, you shouldn't try NTP)

REM (The names BroadcastClient and MulticastClient are reserved)

NTPServer=10.9.47.1

REM It should typically be set to yes when Type is Primary

;timesource=no

timesource=yes

REM Log is a flag used to indicate that you want an entry in the

REM Application log of the Event Viewer upon every sucessful time set

;Log=no

Log=yes

REM TAsync no means to use TimeAdjustment API to disable CMOS sync

TAsync=no

MS Windows Client:

(NetWare login scripts): SET_TIME=ON or SET STATION TIME = ON

(NT login script): "net time \\<servername> /set /yes"

Using Cisco IOS as an NTP client and server:

(from config mode)

4500M(config)#ntp update-calendar

4500M(config)#ntp server 10.1.1.2



Page 1 | 2 | 3


Print This Page


e-mail E-mail this URL

Research and Reports

Storage Virtualization Guide
May 2012

Network Computing: May 2012

TechWeb Careers