The server statement sets the local ntpd daemon to "client" mode for the specified server. In this mode, the local ntpd is synchronized by the remote NTP server, but not vice versa.
server host_addr [ autokey | key][ version #][ prefer][ minpoll minpoll][
maxpoll maxpoll]
host_addr
Host address in dotted notation, which specifies the server for which the local ntpd daemon is to be set to client mode.
Clocks are addressed analogously to partner hosts using pseudo IP addresses of the form 127.127.t.u
, which are invalid as normal IP addresses. t identifies the type of clock, and u is type-specific. The local system clock is specified with the pseudo IP address 127.127.1.0
and is the only clock possible in BS2000.
autokey
NTP packets are sent and received on an authenticated basis in accordance with the autokey schema. This option and the key option are mutually exclusive.
key
NTP packets are sent and received on an authenticated basis using a schema which is based on symmetrical keys. key specifies the key identifier, the range of values extending from 1 through 65534. This option and the autokey option are mutually exclusive.
version #
Version number for outgoing NTP packets. Possible values for # are 1, 2, 3 or 4.
Default: version 4
prefer
This option can be used to mark the host specified with host_addr as "preferred" and thus select it for synchronization over other candidates that have the same values.
minpoll
Integer that specifies the minimum polling interval for NTP messages as 2minpoll seconds.
Default: 6 (64 sec)
Values permitted in BS2000: ≥ 6 (64 sec)
maxpoll
Integer that specifies the maximum polling interval for NTP messages as 2minpoll seconds.
Default: 10 (1024 sec)
Values permitted in BS2000: up to 14 (approx. 4 hours, 30 minutes)
Example (client mode)
# ntp.conf # # server 127.127.1.0 #own clock server 172.24.4.121 prefer #time server server 172.25.113.36 #unix machine server 172.25.109.118 #linux pc