本文描述如何在安裝在Cisco Unified Computing System(UCS)機架式伺服器上的Virtual Interface Card(VIC)介面卡和Cisco Nexus 5500(Nexus 5K)系列交換機之間配置乙太網光纖通道(FCoE)連線。兩個示例拓撲包含思科交換矩陣擴展器(FEX)裝置,而一個示例拓撲不包含。
思科建議您瞭解以下主題:
此配置存在於環境中:
有關限制和相容性資訊,請參閱每個特定硬體裝置的配置指南。
本文中的資訊係根據以下軟體和硬體版本:
本文中的資訊是根據特定實驗室環境內的裝置所建立。文中使用到的所有裝置皆從已清除(預設)的組態來啟動。如果您的網路正在作用,請確保您已瞭解任何指令可能造成的影響。
以下是組態程式的概觀:
伺服器可以部署在以下三種拓撲中:
本文檔提供了每個拓撲的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 |
初始版本 |