Installing and Administering Internet Services

214 Chapter 7
Configuring NTP
Configuration
Configuration
This section covers the following topics:
Overview of the xntpd configuration file and the steps needed to
configure xntpd.
Guidelines for configuring a synchronization subnet.
Descriptions of how to configure various characteristics of xntpd in
the /etc/ntp.conf file.
Configuration Overview
When xntpd starts, it reads a configuration file to find out its operating
characteristics. The configuration file is called /etc/ntp.conf. This file
is owned by root and is writeable only by root (it is readable by anyone).
Modifying the configuration file is usually the responsibility of the
system administrator.
To configure xntpd:
1. Edit the xntpd configuration file /etc/ntp.conf. You can also use
SAM to configure xntpd.
Determine how you want to configure xntpd by reading the rest of
this chapter and the xntpd man page. Then add the appropriate
statements in /etc/ntp.conf.
2. Set the environment variable XNTPD to 1 in the file
/etc/rc.config.d/netdaemons. This causes xntpd to start
automatically whenever the system is booted.
3. Set the appropriate value for your local time zone in the file
/etc/TIMEZONE.
4. Run the xntpd startup script with the following command:
/sbin/init.d/xntpd start
5. Run the ntpq program with the -p switch to verify that xntpd is
forming the correct relationships with other NTP hosts. (See
“Querying xntpd” on page 228.)