Cisco Nexus 5000 Series Switch CLI Software Configuration Guide (OL-16597-01, July 2009)
Procedure
PurposeCommand or Action
Enters configuration mode.switch# configure terminal
Step 1
Enters VLAN configuration mode. The VLAN number
range is from 1 to 4096.
switch(config)# vlan vlan-id
Step 2
Enables FCoE for the specified VLAN. If you do not
specify a VSAN number, a mapping is created from this
VLAN to the VSAN with the same number.
switch(config-vlan)# fcoe [vsan
vsan-id]
Step 3
Configures the mapping from this VLAN to the specified
VSAN.
Exits VLAN configuration mode.switch(config-vlan)# exit
Step 4
This example shows how to map VLAN 200 to VSAN 2:
switch(config)# vlan 200
switch(config-vlan)# fcoe vsan 2
Creating a Virtual Fibre Channel Interface
You can create a virtual Fibre Channel interface. You must bind the virtual Fibre Channel interface to a
physical interface before it can be used.
Procedure
PurposeCommand or Action
Enters configuration mode.switch# configure terminal
Step 1
Creates a virtual Fibre Channel interface (if it
does not already exist) and enters interface
configuration mode.
switch(config)# interface vfc vfc-id
Step 2
The virtual Fibre Channel interface ID range is
from 1 to 8192.
Binds the virtual Fibre Channel interface to the
specified interface.
switch(config-if)# bind {interface {ethernet
slot/port | port-channel channel-number} |
mac-address MAC-address}
Step 3
(Optional)
Unbinds the virtual Fibre Channel interface from
the specified interface.
switch(config-if)# no bind {interface
{ethernet slot/port | port-channel
channel-number} | mac-address
MAC-address}
Step 4
(Optional)
Deletes a virtual Fibre Channel interface.
switch(config)# no interface vfc vfc-id
Step 5
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
OL-16597-01 413
Configuring Virtual Interfaces
Creating a Virtual Fibre Channel Interface