2017年10月30日月曜日

ntpクライアント導入と設定について

OS:Centos7.x
対象のntpサーバー:192.168.10.107


1)ntpクライアントをインストールする。
# yum -y install chrony

2)ntpdサービスは不要なので停止する。
# systemctl stop ntpd.service
# systemctl disable ntpd.service

3)chronyd.serviceを起動する。
# systemctl start chronyd.service
  

4)chrony.confの編集を行う。
# vi /etc/chrony.conf
==========chrony.conf =================
①以下をコメント化する
#server 0.centos.pool.ntp.org iburst
#server 1.centos.pool.ntp.org iburst
#server 2.centos.pool.ntp.org iburst
#server 3.centos.pool.ntp.org iburst

②対象のntpサーバーを追記する。
server 192.168.10.107 iburst

③ネットワーク範囲を指定する。
# Allow NTP client access from local network.

allow 192.168.10.0/24
====================================


5)chronyd.serviceを再起動する。
# systemctl restart chronyd.service


6)以下のコマンドを投入して、"^*"が表示されているば同期完了
# chronyc sources
210 Number of sources = 1
MS Name/IP address         Stratum Poll Reach LastRx Last sample               
======================================================
^* xymon                         2   6   377    10  +2762ns[+7233ns] +/-   53ms

0 件のコメント:

コメントを投稿

Raspberry Pi 5 SSDブート設定まとめ (2026年版)

1. ブート順序の変更 (EEPROM) • `sudo raspi-config` を実行 • `Advanced Options` > `Boot Order` > `NVMe/USB Boot` を選択 • 再起動して設定を反映 2. SSD起動時の重要パス •...