本文档介绍如何在安装在思科统一计算系统(UCS)机架式服务器上的虚拟接口卡(VIC)适配器与Cisco Nexus 5500(Nexus 5K)系列交换机之间配置以太网光纤通道(FCoE)连接。两个示例拓扑包括思科交换矩阵扩展器(FEX)设备,而一个示例拓扑不包括。
Cisco 建议您了解以下主题:
此配置存在于环境中:
有关限制和兼容性信息,请参阅每个特定硬件设备的配置指南。
本文档中的信息基于以下软件和硬件版本:
本文档中的信息都是基于特定实验室环境中的设备编写的。本文档中使用的所有设备最初均采用原始(默认)配置。如果您使用的是真实网络,请确保您已经了解所有命令的潜在影响。
以下是配置过程的概述:
服务器可以部署在以下三种拓扑之一:
本文档提供每个拓扑的FCoE连接配置示例。
尽管本文档重点介绍VIC适配器和Nexus 5K交换机上的FCoE配置,但为了完整起见,它还包括vPC上所需的基本配置和FCoE功能。
本示例中的拓扑将虚拟存储区域网络(VSAN)100和VSAN 200用作两个SAN交换矩阵。这些VSAN在Nexus 5K交换机的A侧和B侧创建,并分别映射到FCoE VLAN 100和200。
对于新设置,此步骤介绍如何在Nexus 5K交换机上执行基本配置:
5548-switch# configure terminal
5548-switch(config)# feature lldp
5548-switch(config)# feature lacp
5548-switch(config)# feature fcoe
5548-switch(config)# feature fex
5548-switch(config)# feature vpc
5548-switch(config)# end
5548-switch# configure terminal
5548-switch(config)# vpc domain 150
5548-switch (config-vpc-domain)# peer-keepalive destination <peer-switch-ip>
source <source-ip> vrf management
5548-switch(config-vpc-domain)# interface port-channel 150
5548-switch(config-if)# switchport mode trunk
5548-switch(config-if)# vpc peer-link
5548-switch(config-if)# no shut
5548-switch-A # configure terminal
5548-switch-A(config)# vsan database
5548-switch-A(config-vsan-db)#vsan 100
5548-switch-A(config)#exit
5548-switch-A(config)#vlan 100
5548-switch-A(config-vlan)#fcoe vsan 100
5548-switch-B # configure terminal
5548-switch-B(config)#vsan database
5548-switch-B(config-vsan-db)#vsan 200
5548-switch-B(config)#exit
5548-switch-B(config)#vlan 200
5548-switch-B(config-vlan)#fcoe vsan 200
在UCS服务器上配置VIC适配器。此程序描述如何将此配置应用到所有Cisco VIC(P81E或VIC 1225或VIC 1225T)适配器:
服务器可部署在三个拓扑之一。本节介绍如何根据拓扑配置Nexus 5K交换机。
所有三种拓扑的常见配置指南为:
本文档提供交换矩阵A的示例配置;您应在交换矩阵B的另一台交换机上执行类似配置。
在此场景中,Nexus 5K交换机位于vPC中,服务器CNA端口直接连接到两台Nexus 5K交换机。本步骤介绍此拓扑的配置:
N5548UP-A(config)# int eth 1/1
N5548UP-A(config-if)# channel-group 1
N5548UP-A(config-if)# no shut
N5548UP-A(config-if)# exit
N5548UP-A# configure terminal
N5548UP-A(config)# interface port-channel 1
N5548UP-A(config-if)# switchport mode trunk
N5548UP-A(config-if)# switchport trunk native vlan 10
N5548UP-A(config-if)# switchport trunk allowed vlan 10,100
N5548UP-A(config-if)# spanning-tree port type edge trunk
N5548UP-A(config-if)# vpc 1
N5548UP-A(config-if)# no shut
N5548UP-A(config-if)# exit
N5548UP-A(config)# int vfc 1
N5548UP-A(config-if)# bind interface ethernet 1/1
N5548UP-A(config-if)# switchport trunk allowed vsan 100
N5548UP-A(config-if)# no shut
N5548UP-A(config-if)# exitN5548UP-A(config)# vsan database
N5548UP-A(config-vsan-db)# vsan 100 interface vfc 1
N5548UP-A(config-vsan-db)# end
N5548UP-A# show run int port-channel 1 membership
interface port-channel 1
switchport mode trunk
switchport trunk native vlan 10
switchport trunk allowed vlan 10,100
spanning-tree port type edge trunk
speed 10000
vpc 1
interface Ethernet1/1
switchport mode trunk
switchport trunk native vlan 10
switchport trunk allowed vlan 10,100
channel-group 1
N5548UP-A# show run int vfc 1
interface vfc1
bind interface Ethernet1/1
switchport trunk allowed vsan 100
no shutdown
在此场景中,FEX以直通模式连接到Nexus 5K交换机,CNA连接到FEX端口。本步骤介绍此拓扑的配置:
直通FEX配置:
在Nexus 5K交换机的B侧重复步骤1-4,并在HIF端口通道下使用相同的vPC接口编号。
N5548UP-A# configure terminal
N5548UP-A(config)# fex 101
N5548UP-A(config-fex)# exit
N5548UP-A(config)# interface ethernet 1/5 - 6
N5548UP-A(config-if-range)# channel-group 210
N5548UP-A(config-if-range)#no shut
N5548UP-A(config-if-range)# exit
N5548UP-A(config)# interface port-channel 210
N5548UP-A(config-if)# switchport mode fex-fabric
N5548UP-A(config-if)# fex associate 101
N5548UP-A(config-if)#no shut
N5548UP-A(config-if)# exit
<---Create HIF port-channel-->
N5548UP-A(config-if)# interface ethernet 101/1/1
N5548UP-A(config-if)# channel-group 1
N5548UP-A(config-if)# no shut
N5548UP-A(config-if)# exit
<---Configure port-channel parameters-->
N5548UP-A(config)# interface port-channel 1
N5548UP-A(config-if)#switchport mode trunk
N5548UP-A(config-if)# switchport trunk native vlan 10
N5548UP-A(config-if)# switchport trunk allowed vlan 10,100
N5548UP-A(config-if)# spanning-tree port type edge trunk
N5548UP-A(config-if)# vpc 10
N5548UP-A(config-if)# no shut
N5548UP-A(config-if)# exit
<---Create vfc interfvace and bind to port-channel (Ethernet interface)-->
N5548UP-A(config)# int vfc 1
N5548UP-A(config-if)# bind interface ethernet 101/1/1
N5548UP-A(config-if)# switchport trunk allowed vsan 100
N5548UP-A(config-if)# no shut
N5548UP-A(config-if)# exit
<---Associate vfc interface to corresponding VSAN ID-->
N5548UP-A(config)# vsan database
N5548UP-A(config-vsan-db)# vsan 100 interface vfc 1
N5548UP-A(config-vsan-db)# end
N5548UP-A# show run int port-channel 210 membership
interface port-channel210
switchport mode fex-fabric
fex associate 101
interface Ethernet1/5
switchport mode fex-fabric
fex associate 101
channel-group 210
interface Ethernet1/6
switchport mode fex-fabric
fex associate 101
channel-group 210
N5548UP-A# show int fex
Fabric Fabric Fex FEX
Fex Port Port State Uplink Model Serial
---------------------------------------------------------------
101 Eth1/5 Active 1 N2K-C2232PP-10GE SSI142602QN
101 Eth1/6 Active 2 N2K-C2232PP-10GE SSI142602QN
N5548UP-A# show run int port-channel 1 membership
interface port-channel 1
switchport mode trunk
switchport trunk native vlan 10
switchport trunk allowed vlan 10,100
spanning-tree port type edge trunk
speed 10000
vpc 10
interface Ethernet101/1/1
switchport mode trunk
switchport trunk native vlan 10
switchport trunk allowed vlan 10,100
channel-group 1
N5548UP-A# show run int vfc 1
interface vfc1
bind interface Ethernet101/1/1
switchport trunk allowed vsan 100
no shutdown
在此场景中,FEX以增强的vPC模式连接到Nexus 5K交换机,CNA连接到FEX端口。
SAN交换矩阵A流量(FCoE VLAN 100)与Nexus 5K交换机的FEX 101/A侧关联。SAN交换矩阵B流量(FCoE VLAN 200)与Nexus 5K交换机的FEX 102/B端关联。
对于两个成员的主机端口通道,必须在两台Nexus 5K交换机上的两台FEX设备上配置HIF端口;即总共需要四个HIF端口配置。
本步骤介绍此拓扑的配置:
活动 — 活动FEX配置:
N5548UP-A# configure terminal
N5548UP-A(config)# fex 101
N5548UP-A(config-fex)# fcoe
N5548UP-A(config-fex)# exit
N5548UP-A(config)# interface ethernet 1/3 - 4
N5548UP-A(config-if-range)# channel-group 201
N5548UP-A(config-if-range)#no shut
N5548UP-A(config-if-range)# exit
N5548UP-A(config)# interface port-channel 201
N5548UP-A(config-if)# switchport mode fex-fabric
N5548UP-A(config-if)# fex associate 101
N5548UP-A(config-if)# vpc 201
N5548UP-A(config-if)#no shut
N5548UP-A(config-if)# exit
N5548UP-A# configure terminal
N5548UP-A(config)# fex 102
N5548UP-A(config-fex)# exit
N5548UP-A(config)# interface ethernet 1/5 - 6
N5548UP-A(config-if-range)# channel-group 202
N5548UP-A(config-if-range)#no shut
N5548UP-A(config-if-range)# exit
N5548UP-A(config)# interface port-channel 202
N5548UP-A(config-if)# switchport mode fex-fabric
N5548UP-A(config-if)# fex associate 102
N5548UP-A(config-if)# vpc 202
N5548UP-A(config-if)#no shut
N5548UP-A(config-if)# exit
N5548UP-B# configure terminal
N5548UP-B(config)# fex 102
N5548UP-B(config-fex)# fcoe
N5548UP-B(config-fex)# exit
N5548UP-A(config-if)# interface ethernet 101/1/1
N5548UP-A(config-if)# channel-group 1
N5548UP-A(config-if)# no shut
N5548UP-A(config-if)# exit
N5548UP-A(config)# interface ethernet 102/1/1
N5548UP-A(config-if)# channel-group 1
N5548UP-A(config-if)# no shut
N5548UP-A(config-if)# exit
N5548UP-A(config)# interface port-channel 1
N5548UP-A(config-if)#switchport mode trunk
N5548UP-A(config-if)# switchport trunk native vlan 10
N5548UP-A(config-if)# switchport trunk allowed vlan 10,100
N5548UP-A(config-if)# spanning-tree port type edge trunk
N5548UP-A(config-if)# no shut
N5548UP-A(config-if)# exit
<---Create vfc interface and bind to port-channel member (ethernet interface)-->
N5548UP-A(config)# int vfc 1
N5548UP-A(config-if)# bind interface ethernet 101/1/1
N5548UP-A(config-if)# switchport trunk allowed vsan 100
N5548UP-A(config-if)# no shut
N5548UP-A(config-if)# exit
<---Associate vfc interface to corresponding VSAN ID-->
N5548UP-A(config)# vsan database
N5548UP-A(config-vsan-db)# vsan 100 interface vfc 1
N5548UP-A(config-vsan-db)# end
N5548UP-A# show fex
FEX FEX FEX FEX
Number Description State Model Serial
------------------------------------------------------------------------
101 FEX0101 Online N2K-C2232PP-10GE SSI142602QN
102 FEX0102 Online N2K-C2232PP-10GE SSI14260EVV
N5548UP-A# show interface fex
Fabric Fabric Fex FEX
Fex Port Port State Uplink Model Serial
---------------------------------------------------------------
101 Eth1/3 Active 2 N2K-C2232PP-10GE SSI142602QN
102 Eth1/4 Active 1 N2K-C2232PP-10GE SSI14260EVV
N5548UP-A# show fex 101 detail
FEX: 101 Description: FEX0101 state: Online
FEX version: 6.0(2)N2(1) [Switch version: 6.0(2)N2(1)]
FEX Interim version: 6.0(2)N2(1)
Switch Interim version: 6.0(2)N2(1)
Extender Serial: SSI142602QN
FCoE Admin: true
FCoE Oper: true
FCoE FEX AA Configured: true
N5548UP-A# show run interface port-channel 1 membership
interface port-channel1
switchport mode trunk
switchport trunk native vlan 10
switchport trunk allowed vlan 10,100
spanning-tree port type edge trunk
speed 10000
interface Ethernet102/1/1
switchport mode trunk
switchport trunk native vlan 10
switchport trunk allowed vlan 10,100
spanning-tree port type edge trunk
channel-group 1
interface Ethernet101/1/1
switchport mode trunk
switchport trunk native vlan 10
switchport trunk allowed vlan 10,100
spanning-tree port type edge trunk
channel-group 1
N5548UP-A# show int vfc 1
vfc1 is trunking
Bound interface is Ethernet101/1/1
Port WWN is 20:00:54:7f:ee:e1:6a:bf
Admin port mode is F, trunk mode is on
Port mode is TF
Port vsan is 100
Trunk vsans (admin allowed and active) (100)
Trunk vsans (up) (100)
Trunk vsans (isolated) ()
Trunk vsans (initializing) ()
N5548UP-A# show run int port-channel 201 membership
interface port-channel201
switchport mode fex-fabric
fex associate 101
vpc 201
interface Ethernet1/3
switchport mode fex-fabric
fex associate 101
channel-group 201
interface Ethernet1/4
switchport mode fex-fabric
fex associate 101
channel-group 201
N5548UP-A# show run int port-channel 202 membership
interface port-channel202
switchport mode fex-fabric
fex associate 102
vpc 202
interface Ethernet1/5
switchport mode fex-fabric
fex associate 102
channel-group 202
interface Ethernet1/6
switchport mode fex-fabric
fex associate 102
channel-group 202
服务器启动序列的此屏幕截图验证交换机配置,因为VIC固件成功检测到LUN并更新启动表:
配置示例中包含验证过程。
本部分提供了可用于对配置进行故障排除的信息。
执行以下检查以确定VFC是否启动:
使用以下命令验证配置:
版本 | 发布日期 | 备注 |
---|---|---|
1.0 |
25-Mar-2014 |
初始版本 |