I am working on a NTP client(Linux PC) to synchronize the time from NTP server(Linux PC). The NTP server in turn will synchronize the time from router.
Router <- NTP server(Linux Machine) <- NTP client(Linux Machine)
My issue is when we power on the complete setup at a time, NTP client fetches/updates its date/time from NTP server before the NTP server update its date/time from Router. I know we can restart the NTP service and force reset date/time using NTP commands in NTP client using ntpdate/"ntpd -gq". But I am not using any commands.
Is there any way that NTP client can fetch and update the date and time from NTP Server continuously every 30seconds automatically using ntpd service?
I configured NTP client to get the time from NTP server in /etc/ntp.conf: server <SERVER_IP> iburst Because of this issue the NTP client's date/time is always not in sync with NTP server/Router.