NTPサーバー構築(chrony)

NTPサーバー構築(chrony)                                 
NTPサーバーはOS インストールで同時インストールされており、
デスクトップ時刻設定確認ごも、正常表示されているので、あえて
設定の必要なし。


NTPサーバーインストール
[root@falcon21 ~]# dnf -y install chrony 
メタデータの期限切れの最終確認: 4:23:22 前の 2025年11月10日 07時31分05秒
に実施しました。
パッケージ chrony-4.6.1-1.el10.x86_64 は既にインストールされています。
依存関係が解決しました。
行うべきことはありません。
完了しました!


NTPサーバー設定
ntp設定ファイル編集
[root@falcon21 ~]# vi /etc/chrony.conf 
# Use public servers from the pool.ntp.org project.
# Please consider joining the pool (http://www.pool.ntp.org/join.html).
↓ 時刻同期先NTPサーバーを変更
# 日本標準時を提供しているNTPサーバー(stratum 1)
server ntp.nict.jp iburst
# 上記サーバーと直接同期しているNTPサーバー(stratum 2)
server ntp.jst.mfeed.ad.jp iburst


# Allow NTP client access from local network.
#allow 192.168.0.0/16
allow 192.168.10.0/24 ← 内部(例:192.168.1.0/24)からの時刻同期を許可


NTPサーバー起動
NTPサーバー起動
[root@falcon21 ~]# systemctl start chronyd 


NTPサーバー自動起動設定
[root@falcon21 ~]# systemctl enable chronyd 

NTPサーバー確認     NTPサーバーへの時刻同期状態確認 [root@falcon21 ~]# chronyc sources
MS Name/IP address Stratum Poll Reach LastRx Last sample
===============================================================================
^+ vmi2899903.contaboserver> 4 10 77 468 -1850us[-1850us] +/- 11ms
^- time.cloudflare.com 3 10 77 462 +4700us[+4700us] +/- 71ms
^- ntp1.hnd.jp.hojmark.net 2 10 177 460 -510us[ -509us] +/- 11ms
^- 160.25.135.55 3 9 377 474 -676us[ -676us] +/- 9893us
^+ 2001:a7ff:102::a 1 8 377 196 -178us[ -173us] +/- 2987us
^- 2001:a7ff:102::b 1 8 377 63 -389us[ -389us] +/- 3130us
^* 2001:a7ff:102::c 1 8 377 196 -305us[ -300us] +/- 3261us

クライアントの時刻同期インターネットで時計合わせを参照