#freeze
/var/log/messagesに"synchronized"が表示されたら同期したと考えてよい

nomodify・・・時刻問い合わせには応答するが時刻変更要求などは無視
notrust・・・時刻問い合わせに応答するが自身の時刻合わせには使用しない(なので自身が参照するサーバには設定しない)
notrap・・・
nopeer・・・指定ホストと相互に同期しない
noquery・・・ソースからのNTPモード6および7パケット(情報照会および構成要求)をすべて無視


 # デフォルト全拒否
 restrict default ignore
 
 # ローカル許可
 restrict 127.0.0.1 
 
 # 同期するサーバ
 restrict ntp.jst.mfeed.ad.jp nomodify notrap nopeer noquery
 
 # クライアント指定
 restrict 192.168.0.0 netmask 255.255.255.0 notrust nomodify notrap
 
 driftfile /var/lib/ntp/drift
 
 keys /etc/ntp/keys
 
 # サーバ定義
 server ntp.jst.mfeed.ad.jp
 server 127.127.1.0
 
 # stratum明示的指定
 fudge	127.127.1.0 stratum 10


●ntpqコマンド
"ntpq -p"で表示される情報
remote・・・上位のNTPサーバのホスト名もしくはIPアドレス
refid・・・remoteが参照している上位のNTPサーバのホスト名もしくはIPアドレス