跳到主要内容

在 Cisco 9250i FC 交换机上为单 ISL 配置 FCIP 端口

必须通过以下方式配置连接 ISL(E 端口)的 FCIP 交换机端口:创建 FCIP profile 和接口,然后将它们分配给 IPStorage1/1 GbE 接口。

此任务仅适用于每个交换机光纤网使用单 ISL 的配置(每台交换机上使用 IPStorage1/1 接口)。

必须对每台 FC 交换机执行此任务。

在每台交换机上创建两个 FCIP profile:

  • 光纤网 1

    • 为 FC_switch_A_1 配置 FCIP profile 11 和 111。

    • 为 FC_switch_B_1 配置 FCIP profile 12 和 121。

  • 光纤网 2

    • 为 FC_switch_A_2 配置 FCIP profile 13 和 131。

    • 为 FC_switch_B_2 配置 FCIP profile 14 和 141。

  1. 进入配置模式:config t
  2. 启用 FCIP:feature fcip
  3. 配置 IPStorage1/1 GbE 接口:
    1. 进入配置模式:conf t
    2. 指定 IPStorage1/1 接口:interface IPStorage1/1
    3. 指定 IP 地址和子网掩码:interface ip-address subnet-mask
    4. 将 MTU 大小指定为 2500switchport mtu 2500
    5. 启用端口:no shutdown
    6. 退出配置模式:exit

    以下示例显示了 IPStorage1/1 端口的配置:
    conf t
    interface IPStorage1/1
    ip address 192.168.1.201 255.255.255.0
    switchport mtu 2500
    no shutdown
    exit
  4. 为 FC-VI 流量配置 FCIP profile:
    1. 配置 FCIP profile 并进入 FCIP profile 配置模式:fcip profile FCIP-profile-name

      profile 名称取决于正在配置的交换机。
    2. 将 IPStorage1/1 接口的 IP 地址分配给 FCIP profile:ip address ip-address
    3. 将 FCIP profile 分配给 TCP 端口 3227port 3227
    4. 设置 TCP 设置:tcp keepalive-timeout 1 tcp max-retransmissions 3 max-bandwidth-mbps 5000 min-available-bandwidth-mbps 4500 round-trip-time-ms 3 tcp min-retransmit-time 200 tcp keepalive-timeout 1 tcp pmtu-enable reset-timeout 3600 tcp sack-enable no tcp cwm

    以下示例显示了 FCIP profile 的配置:
    conf t
    fcip profile 11
    ip address 192.168.1.333
    port 3227
    tcp keepalive-timeout 1
    tcp max-retransmissions 3
    max-bandwidth-mbps 5000 min-available-bandwidth-mbps 4500 round-trip-time-ms 3
    tcp min-retransmit-time 200
    tcp keepalive-timeout 1
    tcp pmtu-enable reset-timeout 3600
    tcp sack-enable
    no tcp cwm
  5. 为存储流量配置 FCIP profile:
    1. 配置名为 111 的 FCIP profile 并进入 FCIP profile 配置模式:fcip profile 111
    2. 将 IPStorage1/1 接口的 IP 地址分配给 FCIP profile:ip address ip-address
    3. 将 FCIP profile 分配给 TCP 端口 3229port 3229
    4. 设置 TCP 设置:tcp keepalive-timeout 1 tcp max-retransmissions 3 max-bandwidth-mbps 5000 min-available-bandwidth-mbps 4500 round-trip-time-ms 3 tcp min-retransmit-time 200 tcp keepalive-timeout 1 tcp pmtu-enable reset-timeout 3600 tcp sack-enable no tcp cwm

    以下示例显示了 FCIP profile 的配置:
    conf t
    fcip profile 111
    ip address 192.168.1.334
    port 3229
    tcp keepalive-timeout 1
    tcp max-retransmissions 3
    max-bandwidth-mbps 5000 min-available-bandwidth-mbps 4500 round-trip-time-ms 3
    tcp min-retransmit-time 200
    tcp keepalive-timeout 1
    tcp pmtu-enable reset-timeout 3600
    tcp sack-enable
    no tcp cwm
  6. 创建两个 FCIP 接口中的第一个:interface fcip 1

    此接口用于 FC-IV 流量。
    1. 选择先前创建的 profile 11:use-profile 11
    2. 在伙伴交换机上设置 IPStorage1/1 端口的 IP 地址和端口:peer-info ipaddr partner-switch-port-ip port 3227
    3. 选择 TCP 连接 2tcp-connection 2
    4. 禁用压缩:no ip-compression
    5. 启用接口:no shutdown
    6. 将控制 TCP 连接配置为 48 并将数据连接配置为 26,从而标记基于该差分服务代码点(DSCP)值的所有数据包:qos control 48 data 26
    7. 退出接口配置模式:exit

    以下示例显示了 FCIP 接口的配置:
    interface fcip  1
    use-profile 11
    # the port # listed in this command is the port that the remote switch is listening on
    peer-info ipaddr 192.168.32.334 port 3227
    tcp-connection 2
    no ip-compression
    no shutdown
    qos control 48 data 26
    exit
  7. 创建两个 FCIP 接口中的第二个:interface fcip 2

    此接口用于存储流量。
    1. 选择先前创建的 profile 111:use-profile 111
    2. 在伙伴交换机上设置 IPStorage1/1 端口的 IP 地址和端口:peer-info ipaddr partner-switch-port-ip port 3229
    3. 选择 TCP 连接 2tcp-connection 5
    4. 禁用压缩:no ip-compression
    5. 启用接口:no shutdown
    6. 将控制 TCP 连接配置为 48 并将数据连接配置为 26,从而标记基于该差分服务代码点(DSCP)值的所有数据包:qos control 48 data 26
    7. 退出接口配置模式:exit

    以下示例显示了 FCIP 接口的配置:
    interface fcip  2
    use-profile 11
    # the port # listed in this command is the port that the remote switch is listening on
    peer-info ipaddr 192.168.32.33e port 3229
    tcp-connection 5
    no ip-compression
    no shutdown
    qos control 48 data 26
    exit
  8. 在 fcip 1 接口上配置交换机端口设置:
    1. 进入配置模式:config t
    2. 指定要配置的端口:interface fcip 1
    3. 关闭端口:shutdown
    4. 将端口设置为 E 模式:switchport mode E
    5. 启用端口的聚合模式:switchport trunk mode on
    6. 将 trunk allowed vsan 设置为 10switchport trunk allowed vsan 10
    7. 设置端口的速度:switchport speed speed
  9. 在 fcip 2 接口上配置交换机端口设置:
    1. 进入配置模式:config t
    2. 指定要配置的端口:interface fcip 2
    3. 关闭端口:shutdown
    4. 将端口设置为 E 模式:switchport mode E
    5. 启用端口的聚合模式:switchport trunk mode on
    6. 将 trunk allowed vsan 设置为 20switchport trunk allowed vsan 20
    7. 设置端口的速度:switchport speed speed
  10. 对第二台交换机重复上述步骤。

    唯一的区别是相应的 IP 地址和唯一的 FCIP profile 名称。
    • 配置第一个交换机光纤网时,为 FC_switch_B_1 配置 FCIP profile 12 和 121。

    • 配置第一个交换机光纤网时,为 FC_switch_A_2 配置 FCIP profile 13 和 131,并为 FC_switch_B_2 配置 FCIP profile 14 和 141。

  11. 重新启动两台交换机上的端口:no shutdown
  12. 在两台交换机上退出接口配置:end
  13. 将更新后的配置拷贝到两台交换机上的启动配置中:copy running-config startup-config

    FC_switch_A_1(config-if)# end
    FC_switch_A_1# copy running-config startup-config

    FC_switch_B_1(config-if)# end
    FC_switch_B_1# copy running-config startup-config
  14. 对第二个交换机光纤网重复上述步骤。