[chrony-dev] [RFC PATCH 9/9] doc: describe using NTP and NTP over PTP with same server

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-dev Archives ]


chronyd can now use a server or peer with both NTP and NTP over PTP at
the same time. Additionally, chronyc now displays and accepts addresses
of such sources with the port.

Add the documentation to match in the description of the ptpport
directive, describe the format of addresses with a port in the chronyc
sources command, and update the requirement of a different address for
each server, which now applies to the address and port.
---
 doc/chrony.conf.adoc | 20 +++++++++++---------
 doc/chronyc.adoc     |  5 +++++
 2 files changed, 16 insertions(+), 9 deletions(-)

diff --git a/doc/chrony.conf.adoc b/doc/chrony.conf.adoc
index 7b97245..56dc887 100644
--- a/doc/chrony.conf.adoc
+++ b/doc/chrony.conf.adoc
@@ -82,10 +82,11 @@ when the server is working normally (the interval can be configured by the
 <<refresh,*refresh*>> directive).
 +
 This directive can be used multiple times to specify multiple servers. Each
-server must have a different IP address to be usable by *chronyd*. If a server
-is specified by a hostname that resolves only to addresses already used by
-other servers, the server will be treated as having an unknown address (e.g.
-reported by the *chronyc* <<chronyc.adoc#activity,*activity*>> command).
+server must have a different IP address or port to be usable by *chronyd*. If a
+server is specified by a hostname that resolves only to addresses already used
+by other servers with the same port, the server will be treated as having an
+unknown address (e.g. reported by the *chronyc*
+<<chronyc.adoc#activity,*activity*>> command).
 +
 The directive supports the following options:
 +
@@ -2912,11 +2913,12 @@ not compatible with the final specification.
 The PTP port will be open even if *chronyd* is not configured to operate as a
 server or client. The directive does not change the default protocol of
 specified NTP sources. Each NTP source that should use NTP over PTP needs to
-be specified with the *port* option set to the PTP port. To actually enable
-hardware timestamping on NICs that can timestamp PTP packets only, the
-*rxfilter* option of the *hwtimestamp* directive needs to be set to _ptp_. The
-extension field _10A_ needs to be enabled to use the corrections provided by
-the PTP transparent clocks.
+be specified with the *port* option set to the PTP port. A server or peer can
+be specified also without the *port* option to use both NTP and NTP over PTP at
+the same time. To actually enable hardware timestamping on NICs that can
+timestamp PTP packets only, the *rxfilter* option of the *hwtimestamp*
+directive needs to be set to _ptp_. The extension field _10A_ needs to be
+enabled to use the corrections provided by the PTP transparent clocks.
 +
 An example of client configuration is:
 +
diff --git a/doc/chronyc.adoc b/doc/chronyc.adoc
index 48295d4..229230d 100644
--- a/doc/chronyc.adoc
+++ b/doc/chronyc.adoc
@@ -332,6 +332,11 @@ If the *-a* option is specified, all sources are displayed, including those that
 do not have a known address yet. Such sources have an identifier in the format
 _ID#XXXXXXXXXX_, which can be used in other commands expecting a source address.
 +
+NTP sources using a port different from the standard NTP port are displayed
+with the port, e.g. _192.0.2.1:319_ or _[2001:db8::1]:319_. This format can be
+used in other commands expecting a source address. Without the port, they select
+the source using the standard NTP port if multiple sources have the address.
++
 The *-v* option enables a verbose output. In this case,
 extra caption lines are shown as a reminder of the meanings of the columns.
 +
-- 
2.43.0


-- 
To unsubscribe email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "unsubscribe" in the subject.
For help email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "help" in the subject.
Trouble?  Email listmaster@xxxxxxxxxxxxxxxxxxxx.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/