Hi guys,
I'm just doing some learning with my home lab and had some questions. I have a Fedora 23 VM called net1, which I'm trying to make an NTP server. I've decided to use Chrony. Here is my chrony.conf file on net1:
pool 2.fedora.pool.ntp.org iburst driftfile /var/lib/chrony/drift makestep 1.0 3 rtcsync allow 10.0/16 local stratum 10 logdir /var/log/chrony log measurements statistics tracking
For my test environment so far, I'm trying to make another VM, called lindev (Fedora 24), sync its time with and only with net1. Here is the chrony.conf file on lindev:
server net1 driftfile /var/lib/chrony/drift makestep 1.0 3 rtcsync logdir /var/log/chrony log measurements statistics tracking
So, to summarize, net1 is the NTP server, and lindev is the NTP client.
I'm very new to this NTP stuff, but it appears as though net1 is successfully syncing its time from the pool:
dave@net1 etc $ sudo chronyc sources 210 Number of sources = 4 MS Name/IP address Stratum Poll Reach LastRx Last sample =============================================================================== ^- ntp1.torix.ca 2 6 177 37 -1870us[-1870us] +/- 527ms ^+ hydrogen.constant.com 2 6 177 37 +10ms[ +10ms] +/- 42ms ^+ 92.246.24.228 1 6 177 36 -537us[ -537us] +/- 68ms ^* regar42.fr 3 6 177 38 -10ms[ -11ms] +/- 64ms
Hmm. When I started typing this post, lindev kept showing net1 as "unreachable", but it seems as though it is now working:
dave@lindev chrony $ sudo chronyc sources 210 Number of sources = 5 MS Name/IP address Stratum Poll Reach LastRx Last sample =============================================================================== ^* net1 3 6 377 3 +1698us[+3979us] +/- 45ms ^- cheezum.mattnordhoff.net 3 7 377 60 -4991us[-2910us] +/- 100ms ^- 207.196.240.30 3 7 377 62 -504us[+1570us] +/- 144ms ^- caprica.willglynn.com 2 7 377 61 -1743us[ +333us] +/- 59ms ^+ helium.constant.com 2 7 377 60 -281us[+1798us] +/- 31ms
So instead of wasting my time typing the above, my question now is: Where is chrony getting those other four servers from? (cheezum, caprica, etc.) They're not specified in my chrony.conf file, so it's very confusing to me.
Also, am I correct to assume that seeing the ^* next to one of the servers is sufficient evidence that the host is indeed syncing its time?