Skip to end of banner
Go to start of banner

Use Revpi as NTP Server

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

« Previous Version 2 Current »

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

"sudo nano /etc/ntp.conf"
Important part need to be modified in the file.
"
pool http://0.debian.pool.ntp.org iburst #Standard time server from Internet
pool 1.debian.pool.ntp.org iburst
pool 2.debian.pool.ntp.org iburst
pool 3.debian.pool.ntp.org iburst

# 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 *.

Wie stelle ich einen eigenen Zeitserver ein

  1. sudo nano /etc/systemd/timesyncd.conf2

  2. Zeile #NTP= in NTP=172.16.59.134 ändern

  3. sudo systemctl restart systemd-timesyncd

Falls nach einer Weile die Zeit immer noch nicht synchronisiert wurde, kann das daran liegen, dass der Unterschied (clock skew) zu groß ist. Abhilfe kann wie folgt geschaffen werden:

  1. NTP Synchronisation anhalten timedatectl set-ntp false

  2. Zeit manuell setzen sudo timedatectl set-time "2021-10-18 09:19:00"

  3. NTP Synchronisation wieder aufnehmen timedatectl set-ntp true

  • No labels