1837905 Members
3098 Online
110124 Solutions
New Discussion

Re: NTP issues

 
Stuart Driver
Advisor

NTP issues


I am trying to configure NTP

I can ping the remote NTP server.

When I start the xnptd process.
The ntpq command comes back succesfully

When I stop the xntpd process to run a ntpdate
command to the remote NTP server it fails with

ntpdate[1661]: no server suitable for synchronization found

When I run the ntpq -q server command with the xntpd not running it fails with

timed out, nothing received
***Request timed out
10 REPLIES 10
Marcel Boogert_1
Trusted Contributor

Re: NTP issues

Hi there,

Please post your ntp config file here.

MB.
Shaikh Imran
Honored Contributor

Re: NTP issues

Hi,

maybe you made some mistakes configuring
ntp.conf

Check /etc/ntp.conf For:
1) Server name or IP
2) Stratum level
3) drift file.(optional)

I have heard for the first synchronisaton it will take time ( say about 15 minutes also)

Pls revert back with /etc/ntp.conf file ...


Regards,







I'll sleep when i am dead.
Stuart Driver
Advisor

Re: NTP issues

server server_name version 3 prefer
Marcel Boogert_1
Trusted Contributor

Re: NTP issues

Ron Kinner
Honored Contributor

Re: NTP issues

Could there be a firewall or other filter blocking the ntp ports? (UDP 123)

When you pinged did you ping by IP address or name? Do both work?

Are you sure the ntp server is setup correctly and working? Do other devices already sync to it?

Make sure your system clock is set to something very close to and preferably slightly behind ntp time. ntp doesn't like to make large changes and Unix gets very nervous about running the clock backwards.

Ron

kamal_9
Super Advisor

Re: NTP issues

Hi Stuart
Pls check your reference server and the check the conf file.
Sanjay_6
Honored Contributor

Re: NTP issues

Hi,

If the ntp daemon "xntpd" is not running, how do you expect to get and output from ntpq -p command.

Hope this helps.

Regds
rick jones
Honored Contributor

Re: NTP issues

indeed, there could be some firewall or other connectivity issue - while your xntpd is running, you can get ntpq output even if the xntpd is not successful in syncing with your time sources - btw, you _should_ configure more than one time source in your ntp.conf file...

Anyhow, you should see non-zero values for "reach" or "reachable" or whatever that column is called in the output of "peers" in ntpq. And then before too long you should see a "*" (IIRC, doublecheck the ntpq manpage) next to the name of one of your time sources indicating that time is now synchronized.

also, as a longshot, you might triple check the spelling on server_name and verify you have the complete syntax correct for ntpdate - IIRC there should be an ntpdate manpage to assist with the latter.
there is no rest for the wicked yet the virtuous have no pillows
Mark Greene_1
Honored Contributor

Re: NTP issues

Fire up ntpd, and then run ntpq. Run the "associations" command, and then the "pstatus" command using the ID from the "associations" output. The output is a bit cryptic, this page may help with that:

http://www.opus1.com/mnetdoc/admin_guide/Ch14.htm

mark
the future will be a lot like now, only later
Stuart Driver
Advisor

Re: NTP issues

The issue was caused by firewall issues

Thanks

Stuart