4.12.5 Cisco 9300シリーズ管理ネットワーク・スイッチでのNTPサーバー・アドレスの設定

この手順では、Cisco 9300シリーズ管理ネットワーク・スイッチでネットワーク・タイム・プロトコル(NTP)サーバー・アドレスを変更する方法について説明します。

  1. SSHを使用してスイッチにアクセスし、管理者のパスワードを使用してadminユーザーとしてログインします。

    ノート:

    SSHが構成されていない場合は、Telnetを使用して、adminユーザーとしてスイッチにアクセスします。
  2. 現在の構成を確認します。
    Switch# show running-config

    コマンド出力に、現在のNTPサーバーのエントリが表示されます。

    次に例を示します:

    ...
    ntp server 10.10.10.1 prefer use-vrf default
    ntp server 10.8.8.1 use-vrf default
    ...
  3. 現在のNTPサーバー構成を消去します。
    Switch# configure terminal
    Enter configuration commands,one per line.End with CNTL/Z.
    Switch(config)# no ntp server 10.10.10.1
    Switch(config)# no ntp server 10.8.8.1
    Switch(config)# end
    Switch# copy running-config startup-config
    [########################################] 100%
    Copy complete, now saving to disk (please wait)...
    Copy complete.

    ノート:

    変更対象の現在の各NTP IPアドレスは消去する必要があります。無効なIPアドレスも消去する必要があります。
  4. 最大2台のNTPサーバーを構成します。

    この例では、新しいNTPサーバーIPアドレスは10.7.7.1および10.9.9.1です。

    Switch# configure terminal
    Enter configuration commands,one per line.End with CNTL/Z.
    Switch(config)# feature ntp
    Switch(config)# ntp server 10.7.7.1 prefer
    Switch(config)# ntp server 10.9.9.1
    Switch(config)# clock protocol ntp
    Switch(config)# end
  5. 変更を確認します。
    Switch# show running-config

    コマンド出力に、新しいNTPサーバーのエントリが表示されます。

    次に例を示します:

    ...
    ntp server 10.7.7.1 prefer use-vrf default
    ntp server 10.9.9.1 use-vrf default
    ...
  6. 構成を保存します。
    Switch# copy running-config startup-config
    [########################################] 100%
    Copy complete, now saving to disk (please wait)...
    Copy complete.
  7. セッションを終了します。
    Switch# exit