I got VMs that attempt to perform a sync but failed to do so. Checking the connection to the Mikrotik works though
# systemctl is-active chronyd
active
# chronyc tracking
Reference ID : 00000000 ()
Stratum : 0
Ref time (UTC) : Thu Jan 01 00:00:00 1970
System time : 0.000000007 seconds slow of NTP time
Last offset : +0.000000000 seconds
RMS offset : 0.000000000 seconds
Frequency : 389.664 ppm fast
Residual freq : +0.000 ppm
Skew : 0.000 ppm
Root delay : 1.000000000 seconds
Root dispersion : 1.000000000 seconds
Update interval : 0.0 seconds
Leap status : Not synchronised
# chronyc sources
MS Name/IP address Stratum Poll Reach LastRx Last sample
===============================================================================
^? mikrotik. 0 7 0 - +0ns[ +0ns] +/- 0ns
# nc -zvu mikrotik 123
Connection to mikrotik (192.168.68.1) 123 port [udp/ntp] succeeded!
This has been boggling me a bit as to why it can’t sync in spite of a successful connection test. If i ‘forcibly’ sync it, it says it can’t regardless if IP is used.
# chronyd -q 'server mikrotik iburst'
2023-03-12T13:54:51Z chronyd version 4.3 starting (+CMDMON +NTP +REFCLOCK +RTC +PRIVDROP +SCFILTER +SIGND +ASYNCDNS +NTS +SECHASH +IPV6 +DEBUG)
2023-03-12T13:54:51Z Could not open command socket on [::1]:323
2023-03-12T13:54:51Z Initial frequency 389.664 ppm
2023-03-12T13:54:59Z No suitable source for synchronisation
2023-03-12T13:54:59Z chronyd exiting
# chronyd -q 'server 192.168.68.1 iburst'
2023-03-12T13:56:31Z chronyd version 4.3 starting (+CMDMON +NTP +REFCLOCK +RTC +PRIVDROP +SCFILTER +SIGND +ASYNCDNS +NTS +SECHASH +IPV6 +DEBUG)
2023-03-12T13:56:31Z Could not open command socket on [::1]:323
2023-03-12T13:56:31Z Initial frequency 389.664 ppm
2023-03-12T13:56:40Z No suitable source for synchronisation
2023-03-12T13:56:40Z chronyd exiting
A question you have to ask because the poster assumed he knew where the problem lies and did not provide the full config but only parts of the config…
Therefore its not clear if both server and client are configured…
Also I use NTP server settings without stating any broadcast entry??
Very understandable spyghost, I entered the thread, calm descended and problems magically got solved.
Now only if mikrotik could weave a little magic AND PROVIDE
Zerotrust Cloudflare tunnel as an options package for all MT devices!!!
@spyghost: when client status says “freq-drift: 0 PPM”, then either device has a perfect oscillator (highly unlikely) or NTP client didn’t do the synchronization properly yet … it takes hours if not days for NTP client to settle to usable accuracy after it’s configured from scratch (frequency drift is later stored to non-volatile storage so next time service starts, it can initialize to last good state). The “system-offset: 495.198 ms” is indicating that it’s the later (offset of roughly 1/2 second is excessive in NTP world). So I’d say that letting NTP client on ROS to do it’s magic for a day actually solved the issue. Now, it might have a bug or two and having to disable/enable server is one of those.
My experience with NTP server on 6.49.7 is that even if it synchronizes properly, it’s not accepted by NTP client on ROS 7.8. ROS 7.8 server is fine for other 7.8 clients though.
@anav: you’re risking of getting a special badge: “zerotrust spammer of the month”