Re: Problem with ntp

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]





On 03/09/2015 03:42 PM, Paul Heinlein wrote:
On Mon, 9 Mar 2015, C.L. Martinez wrote:

Hi all,

I have a problem with ntpd daemon in my CentOS7 vm. When I try to list
peers, command fails: [....]

[root@c7tst ntpstats]# ntpq
ntpq>  pe
ntpq: read: Connection refused
ntpq>

Does "ntpq -4 -c peer" work? If so, then the problem is related to
access via IPv6 and this line in ntp.conf:

#  Permit all access over the loopback interface.  This could
#  be tightened as well, but to do so would effect some of
#  the administrative functions.
restrict 127.0.0.1
#restrict ::1

Uncommnent the IPv6 restrict entry, restart ntpd, and try again.

Yep, using "ntpq -4", works:

[root@c7tst tmp]$ ntpq -4
ntpq> pe
remote refid st t when poll reach delay offset jitter
==============================================================================
*lafkor.de 192.93.2.20 2 u 5 64 1 64.748 1.130 0.268 primary.server. 134.130.5.17 2 u 4 64 1 83.842 1.120 0.614 ntp1.warwicknet 195.66.241.10 2 u 5 64 1 66.697 -1.593 0.504 ntp.univ-poitie 193.50.27.66 3 u 5 64 1 72.149 10.225 2.323
ntpq> quit

Uhmm .. Then, my problem is with Ipv6. I have disabled all IPv6 stack using ipv6_disable=1 in grub.cfg ...

According to this I need to re-enable ... Correct??


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux