跳到主要内容

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

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

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

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



此任务和示例使用以下 profile 配置表:

交换机光纤网IPStorage 接口IP 地址端口类型FCIP 接口FCIP profilePort(端口)对端 IP/端口VSAN 标识
光纤网 1
FC_switch_A_1IPStorage1/1 a.a.a.a FC-VIfcip 1153220 c.c.c.c /323010
Storagefcip 2203221 c.c.c.c /323120
IPStorage1/2 b.b.b.b FC-VIfcip 3253222 d.d.d.d /323210
Storagefcip 4303223 d.d.d.d /323320
FC_switch_B_1IPStorage1/1 c.c.c.c FC-VIfcip 1153230 a.a.a.a /322010
Storagefcip 2203231 a.a.a.a /322120
IPStorage1/2 d.d.d.d FC-VIfcip 3253232 b.b.b.b /322210
Storagefcip 4303233 b.b.b.b /322320
光纤网 2
FC_switch_A_2IPStorage1/1 e.e.e.e FC-VIfcip 1153220 g.g.g.g /323010
Storagefcip 2203221 g.g.g.g /323120
IPStorage1/2 f.f.f.f FC-VIfcip 3253222 h.h.h.h /323210
Storagefcip 4303223 h.h.h.h /323320
FC_switch_B_2IPStorage1/1 g.g.g.g FC-VIfcip 1153230 e.e.e.e /322010
Storagefcip 2203231 e.e.e.e /322120
IPStorage1/2 h.h.h.h FC-VIfcip 3253232 f.f.f.f /322210
Storagefcip 4303233 f.f.f.f /322320
  1. 进入配置模式:config t
  2. 启用 FCIP:feature fcip
  3. 在每台交换机上,配置两个 IPStorage 接口(IPStorage1/1 和 IPStorage1/2):
    1. 进入配置模式:conf t
    2. 指定要创建的 IPStorage 接口:interface ipstorage

      ipstorage 参数值为 IPStorage1/1IPStorage1/2
    3. 指定先前指定的 IPStorage 接口的 IP 地址和子网掩码:interface ip-address subnet-mask

      在每台交换机上,IPStorage 接口 IPStorage1/1 和 IPStorage1/2 必须具有不同的 IP 地址。
    4. 将 MTU 大小指定为 2500switchport mtu 2500
    5. 启用端口:no shutdown
    6. 退出配置模式:exit
    7. 重复步骤 3.aa 到 3.ff,为 IPStorage1/2 GbE 接口配置不同的 IP 地址。
  4. 使用 profile 配置表中给出的 profile 名称配置 FC-VI 和存储流量的 FCIP profile:
    1. 进入配置模式:conf t
    2. 使用以下 profile 名称配置 FCIP profile:fcip profile FCIP-profile-name

      以下列表提供了 FCIP-profile-name 参数的值:

      • 对于 IPStorage1/1 上的 FC-VI,15
      • 对于 IPStorage1/1 上的存储,20
      • 对于 IPStorage1/2 上的 FC-VI,25
      • 对于 IPStorage1/2 上的存储,30
    3. 根据 profile 配置表分配 FCIP profile 端口:port port number
    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
  5. 创建 FCIP 接口:interface fcip FCIP interface

    如 profile 配置表所示,FCIP interface 参数值为 1234
    1. 将接口映射到先前创建的 profile:use-profile profile
    2. 设置对端 IP 地址和对端 profile 端口号:peer-info peer IPstorage ipaddr peer profile port number
    3. 选择 TCP 连接:tcp-connection connection #

      FC-VI profile 的 connection # 参数值为 2,存储 profile 的该参数值为 5
    4. 禁用压缩:no ip-compression
    5. 启用接口:no shutdown
    6. 将控制 TCP 连接配置为 48 并将数据连接配置为 26,从而标记具有差分服务代码点(DSCP)值的所有数据包:qos control 48 data 26
    7. 退出配置模式:exit
  6. 在每个 FCIP 接口上配置交换机端口设置:
    1. 进入配置模式:config t
    2. 指定要配置的端口:interface fcip 1
    3. 关闭端口:shutdown
    4. 将端口设置为 E 模式:switchport mode E
    5. 启用端口的聚合模式:switchport trunk mode on
    6. 指定特定 VSAN 上允许的聚合:switchport trunk allowed vsan vsan

      FC-VI profile 的 vsan 参数值为 VSAN 10,存储 profile 的该参数值为 VSAN 20
    7. 设置端口的速度:switchport speed speed
    8. 退出配置模式:exit
  7. 将更新后的配置拷贝到两台交换机上的启动配置中:copy running-config startup-config

以下示例显示了光纤网 1 交换机 FC_switch_A_1 和 FC_switch_B_1 中的双 ISL 的 FCIP 端口配置。

对于 FC_switch_A_1:

FC_switch_A_1# config t
FC_switch_A_1(config)# no in-order-guarantee vsan 10
FC_switch_A_1(config-vsan-db)# end
FC_switch_A_1# copy running-config startup-config

# fcip settings

feature fcip

conf t
interface IPStorage1/1
# IP address: a.a.a.a
# Mask: y.y.y.y
ip address <a.a.a.a y.y.y.y>
switchport mtu 2500
no shutdown
exit
conf t
fcip profile 15
ip address <a.a.a.a>
port 3220
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

conf t
fcip profile 20
ip address <a.a.a.a>
port 3221
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

conf t
interface IPStorage1/2
# IP address: b.b.b.b
# Mask: y.y.y.y
ip address <b.b.b.b y.y.y.y>
switchport mtu 2500
no shutdown
exit

conf t
fcip profile 25
ip address <b.b.b.b>
port 3222
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

conf t
fcip profile 30
ip address <b.b.b.b>
port 3223
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
interface fcip 1
use-profile 15
# the port # listed in this command is the port that the remote switch is listening on
peer-info ipaddr <c.c.c.c> port 3230
tcp-connection 2
no ip-compression
no shutdown
qos control 48 data 26
exit

interface fcip 2
use-profile 20
# the port # listed in this command is the port that the remote switch is listening on
peer-info ipaddr <c.c.c.c> port 3231
tcp-connection 5
no ip-compression
no shutdown
qos control 48 data 26
exit

interface fcip 3
use-profile 25
# the port # listed in this command is the port that the remote switch is listening on
peer-info ipaddr < d.d.d.d > port 3232
tcp-connection 2
no ip-compression
no shutdown
qos control 48 data 26
exit

interface fcip 4
use-profile 30
# the port # listed in this command is the port that the remote switch is listening on
peer-info ipaddr < d.d.d.d > port 3233
tcp-connection 5
no ip-compression
no shutdown
qos control 48 data 26
exit

conf t
interface fcip&#xa0; 1
shutdown
switchport mode E
switchport trunk mode on
switchport trunk allowed vsan 10
no shutdown
exit

conf t
interface fcip&#xa0; 2
shutdown
switchport mode E
switchport trunk mode on
switchport trunk allowed vsan 20
no shutdown
exit

conf t
interface fcip&#xa0; 3
shutdown
switchport mode E
switchport trunk mode on
switchport trunk allowed vsan 10
no shutdown
exit

conf t
interface fcip&#xa0; 4
shutdown
switchport mode E
switchport trunk mode on
switchport trunk allowed vsan 20
no shutdown
exit

对于 FC_switch_B_1:

FC_switch_A_1# config t
FC_switch_A_1(config)# in-order-guarantee vsan 10
FC_switch_A_1(config-vsan-db)# end
FC_switch_A_1# copy running-config startup-config

# fcip settings

feature fcip

conf t
interface IPStorage1/1
# IP address: c.c.c.c
# Mask: y.y.y.y
ip address <c.c.c.c y.y.y.y>
switchport mtu 2500
no shutdown
exit

conf t
fcip profile 15
ip address <c.c.c.c>
port 3230
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

conf t
fcip profile 20
ip address <c.c.c.c>
port 3231
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

conf t
interface IPStorage1/2
# IP address: d.d.d.d
# Mask: y.y.y.y
ip address <b.b.b.b y.y.y.y>
switchport mtu 2500
no shutdown
exit

conf t
fcip profile 25
ip address <d.d.d.d>
port 3232
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

conf t
fcip profile 30
ip address <d.d.d.d>
port 3233
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

interface fcip 1
use-profile 15
# the port # listed in this command is the port that the remote switch is listening on
peer-info ipaddr <a.a.a.a> port 3220
tcp-connection 2
no ip-compression
no shutdown
qos control 48 data 26
exit

interface fcip 2
use-profile 20
# the port # listed in this command is the port that the remote switch is listening on
peer-info ipaddr <a.a.a.a> port 3221
tcp-connection 5
no ip-compression
no shutdown
qos control 48 data 26
exit

interface fcip 3
use-profile 25
# the port # listed in this command is the port that the remote switch is listening on
peer-info ipaddr < b.b.b.b > port 3222
tcp-connection 2
no ip-compression
no shutdown
qos control 48 data 26
exit

interface fcip 4
use-profile 30
# the port # listed in this command is the port that the remote switch is listening on
peer-info ipaddr < b.b.b.b > port 3223
tcp-connection 5
no ip-compression
no shutdown
qos control 48 data 26
exit

conf t
interface fcip&#xa0; 1
shutdown
switchport mode E
switchport trunk mode on
switchport trunk allowed vsan 10
no shutdown
exit

conf t
interface fcip&#xa0; 2
shutdown
switchport mode E
switchport trunk mode on
switchport trunk allowed vsan 20
no shutdown
exit

conf t
interface fcip&#xa0; 3
shutdown
switchport mode E
switchport trunk mode on
switchport trunk allowed vsan 10
no shutdown
exit

conf t
interface fcip&#xa0; 4
shutdown
switchport mode E
switchport trunk mode on
switchport trunk allowed vsan 20
no shutdown
exit