How to synchronize the timing of two or more distributed wireless nodes?
What is the best approach(s)/ method(s) to synchronize the timing (clocks) of two or more distributed wireless nodes such that these are coherent with each other and not slipping cycles?
Solution 1:
Usually, we would use something like ntp
, ntpdate
or chrony
.
apt-get install ntp
[or yum -y install ntp]
cat <<EOF >/etc/ntp.conf
driftfile /var/lib/ntp/ntp.drift
server pool.ntp.org
restrict -4 default kod notrap nomodify nopeer noquery
restrict -6 default kod notrap nomodify nopeer noquery
restrict 127.0.0.1
restrict ::1
EOF
systemctl start ntp
systemctl enable ntp