LoginSignup
0
0

More than 1 year has passed since last update.

通信遅延実験 NTPサーバー設定のメモ

Posted at

遅延実験

今回は, 遅延実験を行った際に必要なNTPサーバーでの設定のメモを残しておく.

想定環境

Ubuntu20.04LTS

NTPをインストール

もし, NTPをインストールしていない場合は下記コマンドを実行し, インストールする.

sudo apt install ntp

使用するNTPサーバー

時刻同期に使用したNTPサーバーは国内で一番信頼が高いとされる
国立研究開発法人情報通信研究機構のntp.nict.jpを使用した.

設定方法

下記コマンドを実行し, NTPサーバーの設定を書き換える.

sudo vim /etc/ntp.conf
/etc/ntp.conf
# Use servers from the NTP Pool Project. Approved by Ubuntu Technical Board
# on 2011-02-08 (LP: #104525). See http://www.pool.ntp.org/join.html for
# more information.
#pool 0.ubuntu.pool.ntp.org iburst #コメントアウト
#pool 1.ubuntu.pool.ntp.org iburst #コメントアウト
#pool 2.ubuntu.pool.ntp.org iburst #コメントアウト
#pool 3.ubuntu.pool.ntp.org iburst #コメントアウト

pool ntp.nict.jp iburst # 追加

ファイルの変更が完了後, NTPサービスを起動する.

sudo systemctl enable ntp.service
sudo systemctl start ntp.service

以上を行うことで, 信頼性の高い時刻同期を行うことが出来る.

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0