Re: [chrony-users] unconfigured server showing up in sources

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


To summarize for the mailinglist/Net, I can confirm the solution/explanation at the bottom

> Show us the whole thing.

You're right, sorry:

chrony.conf:
server ntp.myprovider.nl
stratumweight 0
driftfile /var/lib/chrony/drift
makestep 100 3
allow 192.168.110
broadcast 300 192.168.110.255
cmdallow 127.0.0.1/8
bindcmdaddress 127.0.0.1
keyfile /etc/chrony.keys
commandkey 1
noclientlog
logchange 0.5
logdir /var/log/chrony
rtcfile /var/lib/chrony/rtc
dumpdir /var/lib/chrony
dumponexit

The specific chrony version is:
chronyd (chrony) version 1.27-pre1 (binary distributed as part of some older Fedora distribution(F17))

> Is your dns reporting ntp.myprovider.nl as having that address?
That hostname resolves to another address than the 192.168.178.1 entry that appeared as well in the list.

Miroslav figured it out:

> Are you using Fedora chrony package? It includes a dhclient script
> which adds (via chronyc) NTP servers obtained from DHCP. It can be
> disabled by setting "PEERNTP=no" in /etc/sysconfig/network..

Yes, this is on Fedora (17). Adding "PEERNTP=no" to /etc/sysconfig/network stopped the entry from reappearing after reboots.
(Actually it didn't but after manually deleting /var/lib/dhclient/chrony.servers.<myethdevice> it was gone from then on,  I didn't try to find out exactly why the PEERNTP=no on it's own didn't seem enough)

I found the logic involved is in /etc/dhcp/dhclient.d/chrony..sh on F17.

Thanks for your help!


On Tue, Feb 18, 2014 at 11:12 AM, Miroslav Lichvar <mlichvar@xxxxxxxxxx> wrote:
On Mon, Feb 17, 2014 at 09:49:01PM +0100, Ferry de Jong wrote:
> My chrony.conf has just 1 server line:
>
> server ntp.myprovider.nl
>
> Why does my internet router at 192.168.178.1 (ADSL device to the internet)
> show up as a source, can I get rid of it? (delete 192.168.178.1 works but
> it reappears with each new start of chronyd)

Are you using Fedora chrony package? It includes a dhclient script
which adds (via chronyc) NTP servers obtained from DHCP. It can be
disabled by setting "PEERNTP=no" in /etc/sysconfig/network.

> sources:
> sources
> 210 Number of sources = 2
> MS Name/IP address         Stratum Poll Reach LastRx Last sample
> ===============================================================================
> ^* ntp.myprovider.nl             2   6   177     5  -7737ns[  -15us] +/-
> 24ms
> ^? 192.168.178.1                 0   7     0   10y     +0ns[   +0ns] +/-
> 0ns

--
Miroslav Lichvar

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




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