📄 ntp.conf.5
字号:
.TH ntp.conf 5.SH Namentp.conf \- Network Time Protocol configuration file.SH DescriptionThe .PN /etc/ntp.conf .NXR "ntp.conf file" "described".NXR "named configuration file" "described"file is the configuration file for the NetworkTime Protocol (NTP) daemon, .PN ntpd . This file must be configured on your system before running .PN ntpd . You must be superuser to modify this file ..NTAny host names that you specify inthe .PN /etc/ntp.conffile must have an entry in the.PN /etc/hostsfile, or an entry in the master.PN hostsdatabase, if the database is being served to your systemby BIND/Hesiod or Yellow Pages..NE.PP The .PN /etc/ntp.conf file has four entry formats:.IP "trusting no" 5This entry guarantees that your system synchronizesonly to the NTP servers identified in the peer and server entries specified. Digital recommends that all systems includethe .PN "trusting no" entry..IP "peer \fIserver\fP"This entry identifies \fIserver\fP as one of the NTP serversthat your system trusts, and from which your systemwill accept time synchronization. Your system may alsoprovide time synchronization to this server. Serverscan be identified by host name or internet address. .IPNTP servers should be configured with .PN peerentries. .IP "server \fIserver\fP"This entry identifies \fIserver\fP as one of the NTP serversthat your system trusts, and from which your systemwill accept time synchronization. Your system can notprovide time synchronization to this server. Servers can be identified by host name or internet address..IPNTP clients should be configured with .PN serverentries..nf.IP "peer /dev/null LOCL 1 \-5 local".fiThis entry identifies your system as a local referenceclock. A local reference clock is the most accurate system clock available at your site. If you receive timesynchronization from the Internet NTP service, you should not includethis entry on any of your systems. At most, one system in a set of nodes running .PN ntpd should be identified as a local reference clock. .IPA host which specifies this entry should not specify any.PN peeror .PN serverentries..SH ExamplesThis is a sample configuration file for an NTP client which receives time synchronization from the NTP servers: .PN server1 , .PN server2, and .PN server3.Lines beginning with a number sign (#) are comments..EX## NTP Configuration File# This file is mandatory for the ntpd daemon#### ** A L L **## "trusting no" prevents this host from synchronizing# to any host that is not listed below. It is recommended# that all hosts include the line "trusting no".#trusting no### ** S E R V E R **## If you are configuring a server, use "peer" entries to# synchronize to other NTP servers. For example, server1,# server2, and server3.# #peer server1#peer server2#peer server3##### ** C L I E N T **## If you are configuring a client, use "server" entries to# synchronize to NTP servers. For example, server1, server2,# and server3.#server server1server server2server server3#### ** L O C A L R E F E R E N C E C L O C K **## If you are configuring a local reference clock, include the# following entry and the "trusting no" entry ONLY.##peer /dev/null LOCL 1 -5 local# .EE.SH See Alsontp(1), ntpd(8), ntpdc(8).br\fIRFC 1129\(emInternet time synchronization: The Network Time Protocol\fP.br.I "Introduction to Networking and Distributed System Services"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -