4.12.6 Cisco 4948イーサネット・スイッチでのNTPサーバー・アドレスの設定

Cisco 4948イーサネット・スイッチでネットワーク・タイム・プロトコル(NTP)サーバーを設定または変更できます。

  1. ファームウェア・バージョンに基づいて、次のいずれかの方法を使用してスイッチにアクセスします。
    1. バージョン12.2より前のファームウェア・バージョン: Telnetを使用してスイッチにアクセスし、管理パスワードを使用して管理者としてログインします。
    2. バージョン12.2以降のファームウェア: SSHを使用してスイッチにアクセスし、管理パスワードを使用してadminユーザーとしてログインします。

      ノート:

      SSHが構成されていない場合は、Telnetを使用して、adminユーザーとしてスイッチにアクセスします。
  2. enableモードに変更します。パスワードを要求されたら、監理者のパスワードを使用します。
    Switch> enable
  3. 現在の構成を確認します。
    Switch# show running-config
  4. 現在のNTPサーバー構成を消去します。

    この例では、現在のIPアドレスは10.10.10.1および10.8.8.1です。

    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# write memory
    Building configuration...
    Compressed configuration from 2603 bytes to 1158 bytes [OK ]

    ノート:

    変更対象の現在の各NTP IPアドレスは消去する必要があります。無効なIPアドレスも消去する必要があります。
  5. 最大2台のNTPサーバーを構成します。
    Switch# configure terminal
    Enter configuration commands,one per line.End with CNTL/Z.
    Switch(config)# ntp server 10.7.7.1 prefer
    Switch(config)# ntp server 10.9.9.1
    Switch(config)# end
    Switch# write memory
    Building configuration...
    Compressed configuration from 2603 bytes to 1158 bytes [OK ]
  6. 変更を確認します。
    Switch# show running-config

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

    次に例を示します:

    
    Building configuration...
    ...
    ntp server 10.7.7.1 prefer
    ntp server 10.9.9.1
    ...
  7. 構成を保存します。
    Switch# copy running-config startup-config
    Destination filename [startup-config]? 
    Building configuration...
    Compressed configuration from 14343 bytes to 3986 bytes[OK]
  8. セッションを終了します。
    Switch# exit