NTP服务器和客户端的设置及使用(EN版)
作者: 来源: 发布日期:2007-8-30 11:24:36 点击次数:
multiple times, with each occurrence indicat- ing greater detail of display
-e Specify the time (in seconds) it takes to compute the NTP encryption field on this com- puter
-f driftfile Specify the location of the drift file
-k Specify the location of the file which con- tains the NTP authentication keys -l logfile Specify a log file instead of logging to sys- log
-m Listen for multicast messages and synchronize to them if available (requires multicast ker- nel)
-p ----> Specify the name of the file to record the daemon's process id
-r Ordinarily, the daemon automatically compen- sates for the network delay between the broadcast/multicast server and the client; if the calibration procedure fails, use the specified default delay (in seconds)
-s Specify the directory to be used for creating statistics files
-t trustedkey Add a key number to the trusted key list
-v Add a system variable
-V Add a system variable listed by default
3. Setting up an NTP client
1. Copy over /etc/inet/ntp.client to /etc/inet/ntp.conf :
# cp /etc/inet/ntp.client /etc/inet/ntp.conf
The default ntp.client file uses multicast to receive NTP updates. This can be changed to broadcast as well if you wish to limit where the NTP client can get its updates. (Broadcast packets are not forwarded to other subnets whereas multicast packets are).
# # /etc/inet/ntp.client # # An example file that could be copied over to /etc/inet/ntp.conf;
it # provides a configuration for a host that passively waits for a
server
|