FreeBSD 14
Sponsored Link

NTP : Configure NTP Client2023/12/19

 
Configure NTP Client.
[1] Client configuration is mostly the same with Server's one,
however NTP Clients does not need to receive time synchronization requests from other hosts, so it does not need to specify the line [restrict ***].
root@node01:~ #
pkg install -y ntpd
root@node01:~ #
vi /etc/ntp.conf
# line 32 : comment out default settings and add NTP Servers for your timezone

#pool 0.freebsd.pool.ntp.org iburst
#pool 2.freebsd.pool.ntp.org iburst
pool dlp.srv.world iburst 

root@node01:~ #
echo 'ntpd_enable="YES"' >> /etc/rc.conf

root@node01:~ #
service ntpd start

Security policy loaded: MAC/ntpd (mac_ntpd)
Starting ntpd.
# verify status

root@node01:~ #
ntpq -p

     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 dlp.srv.world   .POOL.          16 p    -   64    0    0.000   +0.000   0.000
*dlp.srv.world   61.205.120.130   2 u    -   64    1    0.291  +13.266   0.756
[2] To Install NTPStat, it's possible to display time synchronization status.
root@node01:~ #
pkg install ntpstat
root@node01:~ #
ntpstat

synchronised to NTP server (10.0.0.30) at stratum 3
   time correct to within 90 ms
   polling server every 64 s
Matched Content