ntpq -p commands are timing out for me in a centos 6 server.
# ntpq -pn 127.0.0.1: timed out, nothing received ***Request timed out
tcpdump result shows me that it is using eth0 instead of loopback interface.
14:42:11.392517 IP 10.122.5.2.45969 > 127.0.0.1.ntp: NTPv2, Reserved, length 12 14:42:16.397594 IP 10.122.5.2.45969 > 127.0.0.1.ntp: NTPv2, Reserved, length 12 14:42:29.528535 IP 10.122.5.2.35338 > 127.0.0.1.ntp: NTPv2, Reserved, length 12
Looks as if like there is something wrong with the network configuration. But where?
my ntp.conf contents.
# cat /etc/ntp.conf tinker panic 0 driftfile /var/lib/ntp/drift server x.x.x.x iburst server x.x.x.x iburst # By default, exchange time with everybody, but don't allow configuration. # See /usr/share/doc/ntp-doc/html/accopt.html for details. restrict -4 default kod notrap nomodify nopeer noquery restrict -6 default kod notrap nomodify nopeer noquery # Local users may interrogate the ntp server more closely. restrict 127.0.0.1 restrict ::1 keys /etc/ntp/keys