top of page

Running NTP, Chrony on LAN

If you are working on OpenStack or Distributed applications, you may have struggled with NTP. It is very simple but you need to know how to configure the server and client correctly.

I am assuming that you have installed chronyd on your system. Here is what you should change in the chrony.conf file.

  1. Comment all the statements starting with “server”

  1. Allow the subnet to access the time server, notice the statement in the following snapshot starting with “allow”.

  2. It uses local system time, look for statement starting with “local” in the snapshot below.

Now simply restart the chronyd service.

Then run the following command. “chronyc sources” and “chronyc tracking” they both should result into following. Notice the Reference ID

Now on the client side, open the chrony.conf file. Comment all the lines starting with server and add one for above server in this case “server 192.168.1.176” iburst”. That is it, now ensure following.

  1. NTP server is accessible to client node, if not, open appropriate firewall port on the NTP server.

  2. Run following command “timedatectl set-ntp true”

  3. Restart the chronyd service

Then run the following command. “chronyc sources” and “chronyc tracking” they both should result into following. Notice the Reference ID.

bottom of page