4.11.5 Cisco 9300シリーズ管理ネットワーク・スイッチでのDNSサーバー・アドレスの変更

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

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

    ノート:

    SSHが構成されていない場合は、Telnetを使用して、adminユーザーとしてスイッチにアクセスします。
  2. 現在の構成を確認します。
    Switch# show running-config
    ...
    ip domain-name  example.com
    ip name-server 192.0.2.2 198.51.100.4 203.0.113.2
    ...
  3. 現在のDNSサーバーの情報を消去します。
    Switch# configure terminal
    Enter configuration commands,one per line.End with CNTL/Z.
    Switch(config)# no ip name-server 192.0.2.2
    Switch(config)# no ip name-server 198.51.100.4
    Switch(config)# no ip name-server 203.0.113.2
    Switch(config)# end
    Switch# copy running-config startup-config
    [########################################] 100%
    Copy complete, now saving to disk (please wait)...
    Copy complete.

    ノート:

    変更する現在の各DNS IPアドレスは消去する必要があります。無効なIPアドレスも消去する必要があります。
  4. ドメン名を設定してから、次の例に示すように、最大3つのDNSサーバーを構成します。
    Switch# configure terminal
    Enter configuration commands,one per line.End with CNTL/Z.
    Switch(config)# ip domain-name example.com
    Switch(config)# ip name-server 192.0.2.3
    Switch(config)# ip name-server 198.51.100.5
    Switch(config)# ip name-server 203.0.113.1
    Switch(config)# end
    Switch# copy running-config startup-config
    [########################################] 100%
    Copy complete, now saving to disk (please wait)...
    Copy complete.
  5. 変更を確認します。
    Switch# show running-config

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

    次に例を示します:

    
    !Command: show running-config
    ...
    ip domain-name example.com
    ip name-server 192.0.2.3 198.51.100.5 203.0.113.1
    ...
  6. セッションを終了します。
    Switch# exit