From: Miroslav Lichvar Date: Tue, 7 Jun 2016 09:08:47 +0000 (+0200) Subject: doc: add question about reference ID to FAQ X-Git-Tag: 2.4~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5cadaf8d55f44f3c4bdebc174c48e50133cc8ed0;p=thirdparty%2Fchrony.git doc: add question about reference ID to FAQ --- diff --git a/doc/faq.adoc b/doc/faq.adoc index de1b9225..01076ef9 100644 --- a/doc/faq.adoc +++ b/doc/faq.adoc @@ -285,6 +285,19 @@ configuration file needs to specify a file which contains keys (`keyfile` directive) and which key in the key file should be used for `chronyc` authentication (`commandkey` directive). +=== Why does `chronyc tracking` always print an IPv4 address as reference ID? + +The reference ID is a 32-bit value and is always printed in quad-dotted +notation, even if the reference source doesn't have an IPv4 address. For IPv4 +addresses, the reference ID is equal to the address, but for IPv6 addresses it +is the first 32 bits of the MD5 sum of the address. For reference clocks, the +reference ID is the value specified with the `refid` option in the `refclock` +directive. + +If you need to get the IP address of the current reference source, use the `-n` +option to disable resolving of IP addresses and read the second field (printed +in parentheses) on the `Reference ID` line. + === Is the `chronyc` / `chronyd` protocol documented anywhere? Only by the source code. See _cmdmon.c_ (`chronyd` side) and _client.c_