目录:
说明:
相关设备
步骤:
sudo apt install chrony
sudo vi /etc/chrony/chrony.conf
- server 192.168.186.2 presend 0 minpoll 0 maxpoll 0 iburst prefer trust
- # Enable serving time to ntp clients on 192.168.186.0 subnet.
- allow 192.168.186.0/24
- # Serve time even if not synchronized to a time source
- local stratum 10
sudo service chrony restart
sudo chronyc clients
- Hostname NTP Drop Int IntL Last Cmd Drop Int Last
- ===============================================================================
- 192.168.186.2 51 0 5 - 32 0 0 - -
- localhost 0 0 - - - 31 0 7 4
user.notice ntpd: ntpd: reply from 192.168.186.3: delay ### is too high, ignoring