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

您必须通过创建 FCIP 配置文件和接口,然后将其分配给 IPStorage1/1 和 IPStorage1/2 GbE 接口来配置连接 ISL 的 FCIP 交换机端口(E 端口)。

关于本任务

此任务仅适用于每个交换机网络结构使用双 ISL 并在每个交换机上使用 IPStorage1/1 和 IPStorage1/2 GbE 接口的配置。

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



该任务和示例使用以下配置文件配置表:

交换机网络结构 IPStorage 接口 IP 地址 端口类型 FCIP 接口 FCIP 配置文件 端口 对等 IP/端口 VSAN ID
网络结构 1
FC_switch_A_1 IPStorage1/1 a.a.a.a FC-VI fcip 1 15 3220 c.c.c.c/3230 10
存储 fcip 2 20 3221. c.c.c.c/3231 20
IPStorage1/2 b.b.b.b FC-VI fcip 3 25 3222. d.d.d.d/3232 10
存储 fcip 4 30 3223 d.d.d.d/3233 20
FC_switch_B_1 IPStorage1/1 c.c.c.c FC-VI fcip 1 15 3230 a.a.a.a/3220 10
存储 fcip 2 20 3231 a.a.a.a/3221 20
IPStorage1/2 d.d.d.d FC-VI fcip 3 25 322. b.b.b.b/3222 10
存储 fcip 4 30 3233 b.b.b.b/3223 20
网络结构 2
FC_switch_A_2 IPStorage1/1 e.e.e.e FC-VI fcip 1 15 3220 g.g.g.g/3230 10
存储 fcip 2 20 3221. g.g.g.g/3231 20
IPStorage1/2 f.f.f.f FC-VI fcip 3 25 3222. h.h.h.h/3232 10
存储 fcip 4 30 3223 h.h.h.h/3233 20
FC_switch_B_2 IPStorage1/1 g.g.g.g FC-VI fcip 1 15 3230 e.e.e.e/3220 10
存储 fcip 2 20 3231 e.e.e.e/3221 20
IPStorage1/2 h.h.h.h FC-VI fcip 3 25 322. f.f.f.f/3222 10
存储 fcip 4 30 3233 f.f.f.f/3223 20

步骤

  1. 进入配置模式:config t
  2. 启用 FCIP:feature fcip
  3. 在每个交换机上,配置两个 IPStorage 接口(IPStorage1/1 和 IPStorage1/2):
    1. 进入配置模式:conf t
    2. 指定要创建的 IP 存储接口: interface ipstorage
      ipstorage 参数值为 IPStorage1/1IPStorage1/2
    3. 指定先前指定的 IP 存储接口的 IP 地址和子网掩码: interface ip-address subnet-mask
      注:在每个交换机上,IPStorage 接口 IPStorage1/1 和 IPStorage1/2 必须具有不同的 IP 地址。
    4. 将 MTU 大小指定为 2500switchport mtu 2500
    5. 启用端口:no shutdown
    6. 退出配置模式:exit
    7. 重复步骤 a f 以使用不同的 IP 地址配置 IPStorage1/2 GbE 接口。
  4. 使用配置文件配置表中提供的配置文件名称来为 FC-VI 和存储流量配置 FCIP 配置文件:
    1. 进入配置模式:conf t
    2. 使用以下配置文件名称配置 FCIP 配置文件: fcip profile FCIP-profile-name

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

      • 15,用于 IPStorage1/1 上的 FC-VI
      • 20,用于 IPStorage1/1 上的存储
      • 25,用于 IPStorage1/2 上的 FC-VI
      • 30,用于 IPStorage1/2 上的存储
    3. 根据配置文件配置表分配 FCIP 配置文件端口: port port number
    4. 设置 TCP 设置:tcp keepalive-timeout 1tcp max-retransmissions 3max-bandwidth-mbps 5000 min-available-bandwidth-mbps 4500 round-trip-time-ms 3tcp min-retransmit-time 200tcp keepalive-timeout 1tcp pmtu-enable reset-timeout 3600tcp sack-enableno tcp cwm
  5. 创建 FCIP 接口: interface fcip FCIP interface
    FCIP interface 参数值为 1234,如配置文件配置表中所示。
    1. 将接口映射到先前创建的配置文件: use-profile profile
    2. 设置对等 IP 地址和对等配置文件端口号: peer-info peer IPstorage ipaddr peer profile port number
    3. 选择 TCP 连接: tcp-connection connection #
      connection # 参数值为 2(对于 FC-VI 配置文件)和 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
      vsan 参数值为 VSAN 10(对于 FC-VI 配置文件)和 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  1
shutdown
switchport mode E
switchport trunk mode on
switchport trunk allowed vsan 10
no shutdown
exit

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

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

conf t
interface fcip  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  1
shutdown
switchport mode E
switchport trunk mode on
switchport trunk allowed vsan 10
no shutdown
exit

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

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

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