Cisco Nexus 5000 Series Switch CLI Software Configuration Guide, NX-OS 4.0(1a)N1 (OL-16597-01, January 2009)

Send feedback to nx5000-docfeedback@cisco.com
30-3
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
OL-16597-01
Chapter 30 Configuring Virtual Interfaces
Configuring Virtual Interfaces
The following example shows how to configure the VLAN on a physical Ethernet address, create virtual
Fibre Channel interface 4, bind vfc 4 to the physical Ethernet interface, enable associated VLAN 200,
and map VLAN 200 to VSAN 2:
switch# configure terminal
switch(config)# interface ethernet 1/2
switch(config-if)# switchport mode trunk
switch(config-if)# switchport trunk allowed vlan 1,200
switch(config)# interface vfc 4
switch(config-if)# bind interface ethernet 1/2
switch(config-if)# exit
switch(config)# vlan 200
switch(config-vlan)# fcoe vsan 2
switch(config-vlan)# exit
switch(config)# vsan database
switch(config-vsan)# vsan 2 interface vfc 4
Deleting a Virtual Fibre Channel Interface
To delete a virtual Fibre Channel interface, perform this task:
The following example shows how to delete a virtual Fibre Channel interface:
switch# configure terminal
switch(config)# no interface vfc 4
switch(config-if)# exit
Step 3
switch(config-vlan)# fcoe [vsan
vsan-id]
Enables FCoE for the specified VLAN. By default, a
mapping is created from this VLAN to the VSAN with
the same number.
(Optional) Configures the mapping from this VLAN to
the specified VSAN.
Step 4
switch(config-vlan)# exit
Exits VLAN configuration mode.
Step 5
switch(config)# vsan database
Enters VSAN configuration mode.
Step 6
switch(config-vsan)# vsan vsan-id
interface vfc vfc-id
Configures the association between VSAN and virtual
Fibre Channel interface.
The VSAN number must map to a VLAN on the physical
Ethernet interface that is bound to the virtual Fibre
Channel interface.
Command Purpose
Command Purpose
Step 1
switch# configure terminal
Enters configuration mode.
Step 2
switch(config)# no interface vfc
vfc-id
Deletes a virtual Fibre Channel interface.