Skip to content

Commit 6f8398c

Browse files
committed
Update HowTo to on using the pool
* default to use of pool directive * default to us of 2. pools (for IPv6) * document us of chrony and timedatectl * provide updated samples * fix dead links * use tab for indent throughout the file
1 parent 0a2227c commit 6f8398c

File tree

4 files changed

+64
-27
lines changed

4 files changed

+64
-27
lines changed

docs/ntppool/en/use.html

Lines changed: 50 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,48 @@ <h3 id="use">How do I use pool.ntp.org?</h3>
1313
The 0, 1, 2 and 3.pool.ntp.org names point to a random set of servers that will
1414
change every hour. Make sure your computer's clock is set to something
1515
sensible (within a few minutes of the 'true' time) - you could use <code>ntpdate
16-
pool.ntp.org</code>, or you could just use the <code>date</code> command and set it
16+
2.pool.ntp.org</code>, or you could just use the <code>date</code> command and set it
1717
to your wristwatch. Start ntpd, and after some time (this could take as long as
1818
half an hour!), <code>ntpq -pn</code> should output something like:
1919
</p>
2020

21-
[% INCLUDE "ntppool/use/sample-ntpq.html" %]
21+
[% INCLUDE "ntppool/use/sample-pool-ntpq.html" %]
2222

2323
<p>
2424
The IP addresses will be different, because you've been assigned random
2525
timeservers. The essential thing is that one of the lines starts with an
2626
asterisk (<code>*</code>), this means your computer gets the time from the internet
2727
- you'll never have to worry about it again!
2828
</p>
29+
<p>On more recent Linux operating systems, time setting has been delegated to
30+
<code>systemd</code>. You can use <code>timedatectl</code> to set the time:
31+
</p>
32+
33+
[% INCLUDE "ntppool/use/sample-timedatectl.html" %]
34+
35+
<p>
36+
On RedHat et al. (Fedora, CentOS, etc.) <a href="https://chrony.tuxfamily.org/"><code>chronyd</code></a>
37+
has replaced <code>ntpd</code> as the default NTP client (and server). With respect
38+
to the time source configuration it uses the same syntax as <code>ntpd</code>,
39+
so you can use the example above. Usually, the shipped configuration comes with a
40+
a sensible default using the distribution's vendor pool and doesn't need any adjusting at all.
41+
For checking on the synchronization status, use <code>chronyc -n sources</code>.
42+
The output is similar to <code>ntpq</code> including the asterisk designating
43+
the current time source.
44+
</p>
45+
<p> On older systems, <code>ntpd</code> may not support the pool configuration described
46+
above. The following should work with legacy <code>ntpd</code> versions:
47+
</p>
48+
49+
[% INCLUDE "ntppool/use/sample-ntpq.html" %]
50+
2951
<p>
30-
Looking up <code>pool.ntp.org</code> (or <code>0.pool.ntp.org</code>,
52+
Looking up <code>2.pool.ntp.org</code> (or <code>0.pool.ntp.org</code>,
3153
<code>1.pool.ntp.org</code>, etc) will usually return IP addresses for servers
32-
in or close to your country. For most users this will give the best results.
54+
in or close to your country. For most users this will give the best results.<br>
55+
<strong>Note:</strong> For historical reasons only <code>2.pool.ntp.org</code> will
56+
return both IPv4 <emphasize>and</emphasize> IPv6 addresses. The other names only
57+
return IPv4 addresses.
3358
</p>
3459

3560
<p>You can also use the <a href="/zone/@">continental zones</a> (For example
@@ -46,13 +71,13 @@ <h3 id="use">How do I use pool.ntp.org?</h3>
4671
If you're using <b>a recent Windows version</b>, you can use the ntp
4772
client that is built into the system. As administrator enter</p>
4873
<pre class="code">
49-
w32tm /config /syncfromflags:manual /manualpeerlist:"0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org 3.pool.ntp.org"
74+
w32tm /config /syncfromflags:manual /manualpeerlist:"2.pool.ntp.org 3.pool.ntp.org 0.pool.ntp.org 1.pool.ntp.org"
5075
</pre>
5176
<p>
5277
at the command prompt. This will work on Windows 2003 and newer. If you use an
5378
older version of windows you can try</p>
5479
<pre class="code">
55-
net time /setsntp:"0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org"
80+
net time /setsntp:"2.pool.ntp.org 3.pool.ntp.org 0.pool.ntp.org"
5681
</pre>
5782
<p>
5883
The same can be achieved by, as administrator, right-clicking the clock in the taskbar,
@@ -73,23 +98,23 @@ <h3 id="use">How do I use pool.ntp.org?</h3>
7398
<div class="block">
7499
<h3 id="notes">Additional Notes</h3>
75100

76-
<p><span class="hook">Consider if the NTP Pool is appropriate
77-
for your use</span>. If business, organization or human life
78-
depends on having correct time or can be harmed by it being
79-
wrong, you shouldn't "just get it off the internet". The NTP
80-
Pool is generally very high quality, but it is a service run
81-
by volunteers in their spare time. Please talk to your
82-
equipment and service vendors about getting local and reliable
83-
service setup for you. See also our <a href="/tos.html">terms
84-
of service</a>.
85-
86-
We recommend time servers from
87-
<a href="http://www.meinbergglobal.com/english/products/ntp-time-server.htm">Meinberg</a>,
88-
but you can also find time servers from
89-
<a href="http://www.endruntechnologies.com/NTP-Servers/gps-cdma-ntp.htm">End Run</a>,
90-
<a href="http://spectracom.com/products-services/precision-timing#anchor-2172">Spectracom</a>
91-
and many others.
92-
</p>
101+
<p><span class="hook">Consider if the NTP Pool is appropriate
102+
for your use</span>. If business, organization or human life
103+
depends on having correct time or can be harmed by it being
104+
wrong, you shouldn't "just get it off the internet". The NTP
105+
Pool is generally very high quality, but it is a service run
106+
by volunteers in their spare time. Please talk to your
107+
equipment and service vendors about getting local and reliable
108+
service setup for you. See also our <a href="/tos.html">terms
109+
of service</a>.
110+
111+
We recommend time servers from
112+
<a href="http://www.meinbergglobal.com/english/products/ntp-time-server.htm">Meinberg</a>,
113+
but you can also find time servers from
114+
<a href="https://endruntechnologies.com/products/ntp-time-servers">End Run</a>,
115+
<a href="https://www.orolia.com/solution/timing-and-synchronization/">Orolia</a>
116+
and many others.
117+
</p>
93118

94119
<p><span class="hook">If you have a static IP address and a reasonable Internet connection</span> (bandwidth
95120
is not so important, but it should be stable and not too highly loaded), please
@@ -114,7 +139,7 @@ <h3 id="notes">Additional Notes</h3>
114139
servers are really file or mail or webservers which just happen to also run ntp.
115140
So don't use more than four time servers in your configuration, and don't play
116141
tricks with <code>burst</code> or <code>minpoll</code> - all you will gain is extra
117-
load on the volunteer time servers.</p>
142+
load on the volunteer time servers.</p>
118143

119144
<p><span class="hook">Make sure that the <i>time zone configuration</i> of your computer is correct</span>.
120145
ntpd itself does not do anything about the time zones, it just uses UTC
@@ -123,7 +148,7 @@ <h3 id="notes">Additional Notes</h3>
123148
<p><span class="hook">If you are synchronising a network to pool.ntp.org</span>, please set up one of your
124149
computers as a time server and synchronize the other computers to that one.
125150
(you'll have some reading to do - it's not difficult though. And there's always
126-
the <a href="news:comp.protocols.time.ntp">comp.protocols.time.ntp newsgroup</a>.)</p>
151+
the <a href="https://community.ntppool.org/">community</a> to help out.)</p>
127152

128153
<p class="thanks">At this point, I'd like to thank those donating their time and timeservers to
129154
this network.</p>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<pre class="code">
22
driftfile /var/lib/ntp/ntp.drift
33

4-
server 0.pool.ntp.org
5-
server 1.pool.ntp.org
64
server 2.pool.ntp.org
75
server 3.pool.ntp.org
6+
server 0.pool.ntp.org
7+
server 1.pool.ntp.org
88
</pre>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<pre class="code">
2+
driftfile /var/lib/ntp/ntp.drift
3+
4+
pool 2.pool.ntp.org iburst
5+
pool 3.pool.ntp.org iburst
6+
pool 0.pool.ntp.org iburst
7+
pool 1.pool.ntp.org iburst
8+
</pre>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<pre class="code">
2+
timedatectl set-timezone "Europe/Kiev"
3+
timedatectl set-time "2012-10-30 18:17:16"
4+
</pre>

0 commit comments

Comments
 (0)