Skip to main content
ONTAP MetroCluster
本繁體中文版使用機器翻譯,譯文僅供參考,若與英文版本牴觸,應以英文版本為準。

設定Cisco IP交換器

貢獻者

您必須設定Cisco IP交換器作為叢集互連和後端MetroCluster 的靜態IP連線。

關於這項工作

本節中的幾個程序是獨立的程序、您只需要執行您被導向或與您的工作相關的程序。

將Cisco IP交換器重設為原廠預設值

在安裝任何RCF檔案之前、您必須先清除Cisco交換器組態並執行基本組態。如果您想在先前的安裝失敗之後重新安裝相同的RCF檔案、或是想要安裝新版RCF檔案、則需要執行此程序。

關於這項工作
  • 您必須在MetroCluster 各個採用EIP組態的IP交換器上重複這些步驟。

  • 您必須使用序列主控台連線至交換器。

  • 此工作會重設管理網路的組態。

步驟
  1. 將交換器重設為原廠預設值:

    1. 清除現有組態:

      寫擦除

    2. 重新載入交換器軟體:

      "重裝"

      系統會重新開機並進入組態精靈。在開機期間、如果出現「Abort Auto Provisioning and Continue with normalSetup(中止自動資源配置並繼續正常設定)」提示訊息、(是/否)[n]」、您應該回應「是」以繼續。

    3. 在組態精靈中、輸入基本的交換器設定:

      • 管理密碼

      • 交換器名稱

      • 頻外管理組態

      • 預設閘道

      • SSH服務(RSA)

        完成組態精靈之後、交換器會重新開機。

    4. 出現提示時、輸入使用者名稱和密碼以登入交換器。

      以下範例顯示設定交換器時的提示和系統回應。角括弧(「<」)會顯示您輸入資訊的位置。

      ---- System Admin Account Setup ----
      Do you want to enforce secure password standard (yes/no) [y]:y  **<<<**
      
          Enter the password for "admin": password
        Confirm the password for "admin": password
               ---- Basic System Configuration Dialog VDC: 1 ----
      
      This setup utility will guide you through the basic configuration of
      the system. Setup configures only enough connectivity for management
      of the system.
      
      Please register Cisco Nexus3000 Family devices promptly with your
      supplier. Failure to register may affect response times for initial
      service calls. Nexus3000 devices must be registered to receive
      entitled support services.
      
      Press Enter at anytime to skip a dialog. Use ctrl-c at anytime
      to skip the remaining dialogs.

      您可以在下一組提示中輸入基本資訊、包括交換器名稱、管理位址和閘道、然後選取SSH with RSA。

      Would you like to enter the basic configuration dialog (yes/no): yes
        Create another login account (yes/no) [n]:
        Configure read-only SNMP community string (yes/no) [n]:
        Configure read-write SNMP community string (yes/no) [n]:
        Enter the switch name : switch-name **<<<**
        Continue with Out-of-band (mgmt0) management configuration? (yes/no) [y]:
          Mgmt0 IPv4 address : management-IP-address  **<<<**
          Mgmt0 IPv4 netmask : management-IP-netmask  **<<<**
        Configure the default gateway? (yes/no) [y]: y **<<<**
          IPv4 address of the default gateway : gateway-IP-address  **<<<**
        Configure advanced IP options? (yes/no) [n]:
        Enable the telnet service? (yes/no) [n]:
        Enable the ssh service? (yes/no) [y]: y  **<<<**
          Type of ssh key you would like to generate (dsa/rsa) [rsa]: rsa **<<<**
          Number of rsa key bits <1024-2048> [1024]:
        Configure the ntp server? (yes/no) [n]:
        Configure default interface layer (L3/L2) [L2]:
        Configure default switchport interface state (shut/noshut) [noshut]: shut **<<<**
        Configure CoPP system profile (strict/moderate/lenient/dense) [strict]:

      最後一組提示會完成組態設定:

    The following configuration will be applied:
      password strength-check
      switchname IP_switch_A_1
    vrf context management
    ip route 0.0.0.0/0 10.10.99.1
    exit
      no feature telnet
      ssh key rsa 1024 force
      feature ssh
      system default switchport
      system default switchport shutdown
      copp profile strict
    interface mgmt0
    ip address 10.10.99.10 255.255.255.0
    no shutdown
    
    Would you like to edit the configuration? (yes/no) [n]:
    
    Use this configuration and save it? (yes/no) [y]:
    2017 Jun 13 21:24:43 A1 %$ VDC-1 %$ %COPP-2-COPP_POLICY: Control-Plane is protected with policy copp-system-p-policy-strict.
    
    [########################################] 100%
    Copy complete.
    
    User Access Verification
    IP_switch_A_1 login: admin
    Password:
    Cisco Nexus Operating System (NX-OS) Software
    .
    .
    .
    IP_switch_A_1#
  2. 儲存組態:

     IP_switch-A-1# copy running-config startup-config
  3. 重新啟動交換器、然後等待交換器重新載入:

     IP_switch-A-1# reload
  4. 在其他三個MetroCluster 交換器上重複上述步驟、以進行REIP組態設定。

下載並安裝Cisco交換器NX-OS軟體

您必須將交換器作業系統檔案和RCF檔案下載到MetroCluster 各個交換器、使其採用EWIP組態。

關於這項工作

此工作需要檔案傳輸軟體、例如FTP、TFTP、SFTP或scp。 將檔案複製到交換器。

這些步驟必須重複執行MetroCluster 於各個採用EIP組態的IP交換器上。

您必須使用支援的交換器軟體版本。

步驟
  1. 下載支援的NX-OS軟體檔案。

  2. 將交換器軟體複製到交換器:

    「copy sftp://root@server-ip-address/tftpboot/NX-os-name-name bootflash:VRF管理」

    在此範例中、nxos.7.0.3.I4.6.bin檔案會從SFTP伺服器10.10.99.99複製到本機bootflash:

    IP_switch_A_1# copy sftp://root@10.10.99.99/tftpboot/nxos.7.0.3.I4.6.bin bootflash: vrf management
    root@10.10.99.99's password: password
    sftp> progress
    Progress meter enabled
    sftp> get   /tftpboot/nxos.7.0.3.I4.6.bin  /bootflash/nxos.7.0.3.I4.6.bin
    Fetching /tftpboot/nxos.7.0.3.I4.6.bin to /bootflash/nxos.7.0.3.I4.6.bin
    /tftpboot/nxos.7.0.3.I4.6.bin                 100%  666MB   7.2MB/s   01:32
    sftp> exit
    Copy complete, now saving to disk (please wait)...
  3. 在每個交換器上、確認交換器NX-OS檔案是否存在於每個交換器的bootflash目錄中:

    《Dir bootflash:》

    下列範例顯示檔案存在於ip_switch_a_1上:

    IP_switch_A_1# dir bootflash:
                      .
                      .
                      .
      698629632    Jun 13 21:37:44 2017  nxos.7.0.3.I4.6.bin
                      .
                      .
                      .
    
    Usage for bootflash://sup-local
     1779363840 bytes used
    13238841344 bytes free
    15018205184 bytes total
    IP_switch_A_1#
  4. 安裝交換器軟體:

    「安裝所有nxos bootflash:nxos.version、number.bin」

    交換器軟體安裝完成後、交換器會自動重新載入(重新開機)。

    下列範例顯示在ip_switch_a_1上安裝軟體:

    IP_switch_A_1# install all nxos bootflash:nxos.7.0.3.I4.6.bin
    Installer will perform compatibility check first. Please wait.
    Installer is forced disruptive
    
    Verifying image bootflash:/nxos.7.0.3.I4.6.bin for boot variable "nxos".
    [####################] 100% -- SUCCESS
    
    Verifying image type.
    [####################] 100% -- SUCCESS
    
    Preparing "nxos" version info using image bootflash:/nxos.7.0.3.I4.6.bin.
    [####################] 100% -- SUCCESS
    
    Preparing "bios" version info using image bootflash:/nxos.7.0.3.I4.6.bin.
    [####################] 100% -- SUCCESS       [####################] 100%            -- SUCCESS
    
    Performing module support checks.            [####################] 100%            -- SUCCESS
    
    Notifying services about system upgrade.     [####################] 100%            -- SUCCESS
    
    
    
    Compatibility check is done:
    Module  bootable          Impact  Install-type  Reason
    ------  --------  --------------  ------------  ------
         1       yes      disruptive         reset  default upgrade is not hitless
    
    
    
    Images will be upgraded according to following table:
    Module       Image   Running-Version(pri:alt)         New-Version   Upg-Required
    ------  ----------   ------------------------  ------------------   ------------
         1        nxos                7.0(3)I4(1)         7.0(3)I4(6)   yes
         1        bios         v04.24(04/21/2016)  v04.24(04/21/2016)   no
    
    
    Switch will be reloaded for disruptive upgrade.
    Do you want to continue with the installation (y/n)?  [n] y
    
    
    Install is in progress, please wait.
    
    Performing runtime checks.         [####################] 100%    -- SUCCESS
    
    Setting boot variables.
    [####################] 100% -- SUCCESS
    
    Performing configuration copy.
    [####################] 100% -- SUCCESS
    
    Module 1: Refreshing compact flash and upgrading bios/loader/bootrom.
    Warning: please do not remove or power off the module at this time.
    [####################] 100% -- SUCCESS
    
    
    Finishing the upgrade, switch will reboot in 10 seconds.
    IP_switch_A_1#
  5. 等待交換器重新載入、然後登入交換器。

    交換器重新開機後、會顯示登入提示:

    User Access Verification
    IP_switch_A_1 login: admin
    Password:
    Cisco Nexus Operating System (NX-OS) Software
    TAC support: http://www.cisco.com/tac
    Copyright (C) 2002-2017, Cisco and/or its affiliates.
    All rights reserved.
    .
    .
    .
    MDP database restore in progress.
    IP_switch_A_1#
    
    The switch software is now installed.
  6. 驗證是否已安裝交換器軟體:+「show version」(顯示版本)

    下列範例顯示輸出:

    IP_switch_A_1# show version
    Cisco Nexus Operating System (NX-OS) Software
    TAC support: http://www.cisco.com/tac
    Copyright (C) 2002-2017, Cisco and/or its affiliates.
    All rights reserved.
    .
    .
    .
    
    Software
      BIOS: version 04.24
      NXOS: version 7.0(3)I4(6)   **<<< switch software version**
      BIOS compile time:  04/21/2016
      NXOS image file is: bootflash:///nxos.7.0.3.I4.6.bin
      NXOS compile time:  3/9/2017 22:00:00 [03/10/2017 07:05:18]
    
    
    Hardware
      cisco Nexus 3132QV Chassis
      Intel(R) Core(TM) i3- CPU @ 2.50GHz with 16401416 kB of memory.
      Processor Board ID FOC20123GPS
    
      Device name: A1
      bootflash:   14900224 kB
      usb1:               0 kB (expansion flash)
    
    Kernel uptime is 0 day(s), 0 hour(s), 1 minute(s), 49 second(s)
    
    Last reset at 403451 usecs after  Mon Jun 10 21:43:52 2017
    
      Reason: Reset due to upgrade
      System version: 7.0(3)I4(1)
      Service:
    
    plugin
      Core Plugin, Ethernet Plugin
    IP_switch_A_1#
  7. 在靜態IP組態的其餘三個IP交換器上重複上述步驟MetroCluster 。

下載並安裝Cisco IP RCF檔案

您必須將RCF檔案下載MetroCluster 到各個交換器、以供使用。

關於這項工作

此工作需要檔案傳輸軟體、例如FTP、TFTP、SFTP或scp。 將檔案複製到交換器。

這些步驟必須重複執行MetroCluster 於各個採用EIP組態的IP交換器上。

您必須使用支援的交換器軟體版本。

共有四個RCF檔案、MetroCluster 每個檔案分別對應於整個EIP組態中的四個交換器。您必須針對所使用的交換器機型使用正確的RCF檔案。

交換器

RCF檔案

ip_switch_a_1.

NX3232_v1.80_Switch-A1.txt

ip_switch_a_2

NX3232_v1.80_Switch-A2.txt

IP交換器_B_1

NX3232_v1.80_Switch-B1.txt

IP交換器_B_2

NX3232_v1.80_Switch-B2.txt

步驟
  1. 下載MetroCluster 《RCF》檔案。

    註 不支援下載後修改RCF檔案。
  2. 將RCF檔案複製到交換器:

    1. 將RCF檔案複製到第一個交換器:

      「copy sftp://root@ft-server-ip-address/tftpboot/switch-specif-rf bootflash: VRF management」

      在此範例中、NX3232_v1.80_Switch-A1.txt RCF檔案會從位於10.10.99.99的SFTP伺服器複製到本機bootflash。您必須使用TFTP/SFTP伺服器的IP位址、以及需要安裝的RCF檔案名稱。

    IP_switch_A_1# copy sftp://root@10.10.99.99/tftpboot/NX3232_v1.80_Switch-A1.txt bootflash: vrf management
    root@10.10.99.99's password: password
    sftp> progress
    Progress meter enabled
    sftp> get   /tftpboot/NX3232_v1.80_Switch-A1.txt /bootflash/NX3232_v1.80_Switch-A1.txt
    Fetching /tftpboot/NX3232_v1.80_Switch-A1.txt to /bootflash/NX3232_v1.80_Switch-A1.txt
    /tftpboot/NX3232_v1.80_Switch-A1.txt          100% 5141     5.0KB/s   00:00
    sftp> exit
    Copy complete, now saving to disk (please wait)...
    IP_switch_A_1#
    1. 對其他三個交換器重複上一個子步驟、請務必將相符的RCF檔案複製到對應的交換器。

  3. 在每個交換器上、確認每個交換器的bootflash目錄中都有RCF檔案:

    《Dir bootflash:》

    下列範例顯示檔案存在於ip_switch_a_1上:

    IP_switch_A_1# dir bootflash:
                      .
                      .
                      .
    5514    Jun 13 22:09:05 2017  NX3232_v1.80_Switch-A1.txt
                      .
                      .
                      .
    
    Usage for bootflash://sup-local
    1779363840 bytes used
    13238841344 bytes free
    15018205184 bytes total
    IP_switch_A_1#
  4. 在Cisco 3132Q-V和Cisco 3232C交換器上設定TCAM區域。

    註 如果您沒有Cisco 3132Q-V或Cisco 3232C交換器、請跳過此步驟。
    1. 在Cisco 3132Q-V交換器上、設定下列TCAM區域:

      conf t
      hardware access-list tcam region span 0
      hardware access-list tcam region racl 256
      hardware access-list tcam region e-racl 256
      hardware access-list tcam region qos 256
    2. 在Cisco 3232C交換器上、設定下列TCAM區域:

      conf t
      hardware access-list tcam region span 0
      hardware access-list tcam region racl-lite 0
      hardware access-list tcam region racl 256
      hardware access-list tcam region e-racl 256
      hardware access-list tcam region qos 256
    3. 設定「TCAM區域」之後、請儲存組態並重新載入交換器:

      copy running-config startup-config
      reload
  5. 將相符的RCF檔案從本機bootFlash複製到每個交換器上的執行組態:

    「copy bootflash:switch-specific-RCF.txt執行組態」

  6. 將RCF檔案從執行中的組態複製到每個交換器的啟動組態:

    「copy running-config startup-config」

    您應該會看到類似下列的輸出:

    IP_switch_A_1# copy bootflash:NX3232_v1.80_Switch-A1.txt running-config
    IP_switch-A-1# copy running-config startup-config
  7. 重新載入交換器:

    "重裝"

    IP_switch_A_1# reload
  8. 在其他三個MetroCluster 交換器上重複上述步驟、以進行REIP組態設定。

針對使用25-Gbps連線的系統設定轉送錯誤修正

如果您的系統設定為使用25-Gbps連線、則在套用RCF檔案之後、您需要手動將轉送錯誤修正(FEC)參數設定為關閉。RCF檔案不套用此設定。

關於這項工作

在執行此程序之前、必須先連接25 Gbps連接埠的纜線。

此工作僅適用於使用25-Gbps連線的平台:

  • 部分A300 AFF

  • zhTW 8200 FAS

  • 500f FAS

  • VA250 AFF

這項工作必須在MetroCluster 整個4台交換器上執行、且必須採用「靜態IP」組態。

步驟
  1. 將連接至控制器模組的每個25-Gbps連接埠的FEC參數設為「Off」(關)、然後將執行組態複製到啟動組態:

    1. 進入組態模式:「config t」

    2. 指定要設定的25-Gbps介面:「interface interface-ID」

    3. 將FEC設為關:「FEC關」

    4. 針對交換器上的每個25-Gbps連接埠、重複上述步驟。

    5. 退出組態模式:「exit」

      以下範例顯示交換器ip_switch_a_1上的乙太網路1/25/1命令:

    IP_switch_A_1# conf t
    IP_switch_A_1(config)# interface Ethernet1/25/1
    IP_switch_A_1(config-if)# fec off
    IP_switch_A_1(config-if)# exit
    IP_switch_A_1(config-if)# end
    IP_switch_A_1# copy running-config startup-config
  2. 在其他三個MetroCluster 交換器上重複上述步驟、以進行「靜態IP」組態設定。

停用未使用的 ISL 連接埠和連接埠通道

NetApp 建議停用未使用的 ISL 連接埠和連接埠通道、以避免不必要的健全狀況警示。

  1. 識別未使用的 ISL 連接埠和連接埠通道:

    「How介面簡介」

  2. 停用未使用的 ISL 連接埠和連接埠通道。

    您必須針對每個識別出的未使用連接埠或連接埠通道執行下列命令。

    SwitchA_1# config t
    Enter configuration commands, one per line. End with CNTL/Z.
    SwitchA_1(config)# int Eth1/14
    SwitchA_1(config-if)# shutdown
    SwitchA_12(config-if)# exit
    SwitchA_1(config-if)# copy running-config startup-config
    [########################################] 100%
    Copy complete, now saving to disk (please wait)...
    Copy complete.