7-11
Cisco MDS 9000 Family NX-OS Interfaces Configuration Guide
OL-29284-01, Release 6.x
Chapter 7 Configuring N Port Virtualization
Configuring N Port Virtualization
switch# copy running bootflash:filename
The configuration can be reapplied later using the following command:
switch# copy bootflash:filename running-config
Detailed Steps
To configure NPV using the CLI, perform the following tasks:
Command Purpose
Step 1
switch# config t
switch(config)#
On the NPV core switch, enters configuration
mode.
Step 2
switch(config)# feature npiv
switch (config)#
switch (config)# no feature npiv
Enables NPIV mode on the NPV core switch.
Disables NPIV mode on the NPV core switch.
Step 3
switch(config)# interface fc 2/1
switch(config-if)# switchport mode F
switch(config-if)# no shutdown
Configures the NPIV core switch port as an F
port.
Changes Admin status to bring up the interfaces.
Step 4
switch(config)# vsan database
switch(config-vsan-db)# vsan 8 interface fc
2/1
switch(config-vsan-db)# vsan 10 interface fc
2/1
Configures the port VSANs for the F port on the
NPIV core switch.
Step 5
switch(config)# npv enable
Enables NPV mode on a NPV device (module,
Cisco MDS 9124, Cisco MDS 9134, or Cisco
MDS 9148 Fabric Switch). The module or
switch is rebooted, and when it comes back up,
is in NPV mode.
Note A write-erase is performed during the
reboot.
Step 6
switch(config)# interface fc 1/1
switch(config-if)# switchport mode NP
switch(config-if)# no shutdown
On the NPV device, selects the interfaces that
will be connected to the aggregator switch and
configure them as NP ports.
Changes Admin status to bring up the interfaces.
Step 7
switch(config)# vsan database
switch(config-vsan-db)# vsan 9 interface fc
1/1
switch(config-vsan-db)# vsan 11 interface fc
1/1
Configures the port VSANs for the NP port on
the NPV device.
Step 8
switch(config-if)# exit
Exits interface mode for the port.
Step 9
switch(config)# interface fc 1/2 - 6
switch(config-if)# switchport mode F
switch(config-if)# no shutdown
Selects the remaining interfaces (2 through 6)
on the NPV-enabled device and configures them
as F ports.
Changes Admin status to bring up the interfaces.