在经典以太网中,我们需要有Trunk链路来承载多VLAN,而在FC网络中,我们也需要用ISL链路来承载多VSAN。下面是具体配置。
这里以两条链路做san-port-channel的形式,将Nexus 5000与MDS做ISL Trunking,放行vlan1和vlan200。
san-port-channel id:22
vsan:1,200
- 配置vsan database:
Nexus 5000和MDS上:
vsan database
vsan 200
exit
- 创建san-port-channel
Nexus 5000上:
int san22
channel mode active
sw mode e
sw trunk mode on
sw trunk allow vsan 1
sw trunk allow vsan add 200
no shut
exit
MDS上:
int po22
channel mode active
sw mode e
sw trunk mode on
sw trunk allow vsan 1
sw trunk allow vsan add 200
no shut
- 将物理口加入san-port-channel端口组
Nexus 5000上:
首先show int bri检查是否有端口处于fc模式下,如果没有:
slot 2 — 模块插槽编号
port 1-16 type fc — 更改1-16口模式为fc
poweroff module 2 — 模块2下电,请注意,这将中断业务!
no poweroff module 2 — 模块2上电,请在上一命令执行后10秒再操作
随后:
int fc2/1-2
chan 22 f
no shut
MDS上:
int fc2/1-2
chan 22 f
no shut
最后show int bri看端口状态是否为trunking,以及show int po 22 / san22看是VSAN是否有up起来:
MDS2# show interface port-channel 22
port-channel 22 is trunking
Hardware is Fibre Channel
Port WWN is 24:16:00:0d:ec:4a:80:00
Admin port mode is E, trunk mode is on
snmp link state traps are enabled
Port mode is TE
Port vsan is 1
Speed is 4 Gbps
Trunk vsans (admin allowed and active) (1,200)
Trunk vsans (up) (1,200)
Trunk vsans (isolated) ()
Trunk vsans (initializing) ()
5 minutes input rate 200 bits/sec, 25 bytes/sec, 0 frames/sec
5 minutes output rate 192 bits/sec, 24 bytes/sec, 0 frames/sec
982 frames input, 93268 bytes
0 discards, 0 errors
0 CRC, 0 unknown class
0 too long, 0 too short
1007 frames output, 92860 bytes
0 discards, 0 errors
32 input OLS, 17 LRR, 28 NOS, 0 loop inits
45 output OLS, 32 LRR, 11 NOS, 2 loop inits
Member[1] : fc1/1
Member[2] : fc1/2
Interface last changed at Wed May 1 00:48:01 2016