目次
【Juniper】NTPの設定方法
SRXのNTPのCLI設定コマンドを簡易的にまとめていきます。
NTPサーバの設定
configure
show system ntp server | display set
set system ntp boot-server 10.0.0.1
set system ntp server 10.0.0.1
set system ntp server 10.0.0.2
show system ntp server | display set
boot-serverはSRXが再起動した後に、正確な時間を問い合わせるNTPサーバを指定することで迅速にNTP同期ができる。
今回の例の場合、10.0.0.1と10.0.0.2のNTPサーバのうち、SRXが再起動したらすぐに10.0.0.1のNTPサーバにntpdateで最新の時間を問い合わせるように設定している。
設定内容の確認・保存
show | compare
commit check
commit
NTP動作の確認
run show ntp associations
アスタリスクが表示されているものが同期しているNTPサーバ