Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description:

I want to use RevPi Core A as NTP client to get the standard time from Internet, while RevPi Core A s also set as NTP server to provide the time for my factory.

  1. Install NTP server

"sudo apt-get install ntp"

  1. Configure NTP server

...

How do I set up my own time server

  1. sudo nano /etc/systemd/

...

  1. timesyncd.conf

...

# If you want to provide time to your local subnet, change the next line.
# (Again, the address is an example only.)
##################################################
broadcast 192.168.20.255 #allowed local time client range, here is 192.168.20.1~192.168.20.254
##################################################
"

  1. restart NTP server

"sudo service ntp restart"

  1. Test

"ntpq -p"
If you have the similar feedback from the terminal, that means you are successful.
The IP address should be with *.

...

  1. Change line #NTP= in NTP=172.16.59.134

  2. sudo systemctl restart systemd-timesyncd

If the time is still not synchronised after a while, this may be because the difference (clock skew) is too large. This can be remedied as follows:

  1. Stop NTP synchronisation timedatectl set-ntp false

  2. Set time manually sudo timedatectl set-time "2021-10-18 09:19:00"

  3. Resume NTP synchronisation timedatectl set-ntp true

If you still have problems, please send a screenshot after entering this command.

systemctl status systemd-timesyncd