2

I am working with RHEL-6 64 bit server. When using ntpq -p I get the following result:

$ ntpq -p
localhost: timed out, nothing received
***Request timed out

With RHEL 5.4 we were using a ntp configuration as below:

# /etc/ntp.conf
server <ip> prefer key <keyval>

But it is not working with the RHEL 6 ?

earl
  • 2,971
  • 24
  • 16
Arunjith
  • 108
  • 1
  • 1
  • 7
  • Are you sure ntpd is running? – larsks Jul 02 '11 at 20:32
  • Issue has solved, This is because I had the option “restrict default ignore” set in /etc/ntp.conf. ntpq. This makes ntpd ignore EVERYTHING, even queries to the loopback interface. Ntpq queries ntpd over the loopback interface at 127.0.0.1. To allow these local queries, add: – Arunjith Jul 04 '11 at 04:52

1 Answers1

1

If you have restrict default ignore set in ntp.conf, then it will ignore everything.

Aaron
  • 2,968
  • 1
  • 23
  • 36