跳到主要内容

配置基本交换机设置

必须为 Brocade 交换机配置基本全局设置,包括域 ID。

此任务包含必须对两个 MetroCluster 站点的每台交换机执行的步骤。

在此过程中,需要为每台交换机设置唯一的域 ID,如以下示例中所示。在该示例中,域 ID 5 和 7 形成 fabric_1,域 ID 6 和 8 形成 fabric_2。

  • FC_switch_A_1 分配给域 ID 5

  • FC_switch_A_2 分配给域 ID 6

  • FC_switch_B_1 分配给域 ID 7

  • FC_switch_B_2 分配给域 ID 8

  1. 进入配置模式:configure
  2. 按提示继续操作:
    1. 设置交换机的域 ID。
    2. 按 Enter 以响应提示,直到进入 RDP 轮询周期,然后将该值设置为 0 以禁用轮询。
    3. 按 Enter 直至返回到交换机提示符处。

      FC_switch_A_1:admin> configure
      Fabric parameters = y
      Domain_id = 5
      .
      .

      RSCN Transmission Mode [yes, y, no, no: [no] y

      End-device RSCN Transmission Mode
      (0 = RSCN with single PID, 1 = RSCN with multiple PIDs, 2 = Fabric RSCN): (0..2) [1]
      Domain RSCN To End-device for switch IP address or name change
      (0 = disabled, 1 = enabled): (0..1) [0] 1

      .
      .
      RDP Polling Cycle(hours)[0 = Disable Polling]: (0..24) [1] 0


  3. 如果每个光纤网使用两个或更多 ISL,则可以配置帧的有序传送(IOD)或帧的无序传送(OOD)。

    建议使用标准 IOD 设置。应仅在必要时配置 OOD。

    将 TDM/WDM 设备用于光纤网连接的 MetroCluster 配置的注意事项

    • 必须对每个交换机光纤网执行以下步骤来配置帧的 IOD:
      1. 启用 IOD:iodset

      2. 将高级性能调整(APT)策略设置为 1aptpolicy 1

      3. 禁用动态负载共享(DLS):dlsreset

      4. 使用 iodshowaptpolicydlsshow 命令验证 IOD 设置。

        例如,在 FC_switch_A_1 上发出以下命令:

        FC_switch_A_1:admin> iodshow
        IOD is set

        FC_switch_A_1:admin> aptpolicy
        Current Policy: 1 0(ap)

        3 0(ap) : Default Policy
        1: Port Based Routing Policy
        3: Exchange Based Routing Policy
        0: AP Shared Link Policy
        1: AP Dedicated Link Policy
        command aptpolicy completed

        FC_switch_A_1:admin> dlsshow
        DLS is not set

      5. 对第二个交换机光纤网重复这些步骤。

    • 必须对每个交换机光纤网执行以下步骤来配置帧的 OOD:
      1. 启用 OOD:iodreset

      2. 将高级性能调整(APT)策略设置为 3aptpolicy 3

      3. 禁用动态负载共享(DLS):dlsreset

      4. 使用 iodshowaptpolicydlsshow 命令验证 OOD 设置。

        例如,在 FC_switch_A_1 上发出以下命令:

        FC_switch_A_1:admin> iodshow
        IOD is not set

        FC_switch_A_1:admin> aptpolicy
        Current Policy: 3 0(ap)
        3 0(ap) : Default Policy
        1: Port Based Routing Policy
        3: Exchange Based Routing Policy
        0: AP Shared Link Policy
        1: AP Dedicated Link Policy
        command aptpolicy completed


        FC_switch_A_1:admin> dlsshow
        DLS is set by default with current routing policy

      5. 对第二个交换机光纤网重复这些步骤。

      在控制器模块上配置 ONTAP 时,必须在 MetroCluster 配置中的每个控制器模块上显式配置 OOD。

      在 ONTAP 软件上配置帧的有序传送或无序传送

  4. 验证交换机是否正在使用动态端口许可方法。
    1. 运行 licensePort --show 命令。

      FC_switch_A_1:admin> licenseport -show 
      24 ports are available in this switch
      Full POD license is installed
      Dynamic POD method is in use
      8.0 之前的 FabOS 版本以管理员用户身份运行以下命令,而 8.0 及之后的版本以根用户身份运行这些命令。
    2. 启用根用户身份。

      如果 Brocade 已禁用根用户,请启用根用户,如以下示例所示:

      FC_switch_A_1:admin> userconfig --change root -e yes
      FC_switch_A_1:admin> rootaccess --set consoleonly
    3. 运行许可证命令:licensePort --show

      FC_switch_A_1:root> licenseport -show
      24 ports are available in this switch
      Full POD license is installed
      Dynamic POD method is in use
    4. 将许可证方法更改为动态:licenseport --method dynamic

      如果未使用动态许可证方法(如果方法是静态的),则必须将许可证方法更改为动态。如果正在使用动态许可证方法,请跳过此步骤。

      FC_switch_A_1:admin> licenseport --method dynamic
      The POD method has been changed to dynamic.
      Please reboot the switch now for this change to take effect
  5. 启用 T11-FC-ZONE-SERVER-MIB 的陷阱以便在 ONTAP 中提供成功的交换机运行状况监控:
    1. 启用 T11-FC-ZONE-SERVER-MIB:snmpconfig --set mibCapability -mib_name T11-FC-ZONE-SERVER-MIB -bitmask 0x3f
    2. 启用 T11-FC-ZONE-SERVER-MIB 陷阱:snmpconfig --enable mibcapability -mib_name SW-MIB -trap_name swZoneConfigChangeTrap
    3. 对第二个交换机光纤网重复上述步骤。
  6. 可选:如果将团体字符串设置为除“public”以外的值,则必须使用您指定的团体字符串来配置 ONTAP 运行状况监控器:
    1. 更改现有团体字符串:snmpconfig --set snmpv1
    2. 按 Enter 直至看到 Community (ro): [public] 文本。
    3. 输入所需的团体字符串。

    在 FC_switch_A_1 上:

    FC_switch_A_1:admin> snmpconfig --set snmpv1
    SNMP community and trap recipient configuration:
    Community (rw): [Secret C0de]
    Trap Recipient's IP address : [0.0.0.0]
    Community (rw): [OrigEquipMfr]
    Trap Recipient's IP address : [0.0.0.0]
    Community (rw): [private]
    Trap Recipient's IP address : [0.0.0.0]
    Community (ro): [public] mcchm <<<<<<<<<<<<< change the community string to the
    desired value, in this example it is set to 'mcchm'
    Trap Recipient's IP address : [0.0.0.0]
    Community (ro): [common]
    Trap Recipient's IP address : [0.0.0.0]
    Community (ro): [FibreChannel]
    Trap Recipient's IP address : [0.0.0.0]
    Committing configuration.....done.
    FC_switch_A_1:admin>

    在 FC_switch_B_1 上:
    FC_switch_B_1:admin> snmpconfig --set snmpv1
    SNMP community and trap recipient configuration:
    Community (rw): [Secret C0de]
    Trap Recipient's IP address : [0.0.0.0]
    Community (rw): [OrigEquipMfr]
    Trap Recipient's IP address : [0.0.0.0]
    Community (rw): [private]
    Trap Recipient's IP address : [0.0.0.0]
    Community (ro): [public] mcchm <<<<<<<<<<<<< change the community string to the
    desired value, in this example it is set to 'mcchm'
    Trap Recipient's IP address : [0.0.0.0]
    Community (ro): [common]
    Trap Recipient's IP address : [0.0.0.0]
    Community (ro): [FibreChannel]
    Trap Recipient's IP address : [0.0.0.0]
    Committing configuration.....done.
    FC_switch_B_1:admin>

  7. 重新启动交换机:reboot

    在 FC_switch_A_1 上:
    FC_switch_A_1:admin> reboot
    在 FC_switch_B_1 上:
    FC_switch_B_1:admin> reboot
  8. 永久启用交换机:switchcfgpersistentenable

    在 FC_switch_A_1 上:
    FC_switch_A_1:admin> switchcfgpersistentenable
    在 FC_switch_B_1 上:
    FC_switch_B_1:admin> switchcfgpersistentenable