Professional Documents
Culture Documents
Configuring Vsans and Interfaces: Figure 3-1
Configuring Vsans and Interfaces: Figure 3-1
c o m
C H A P T E R 3
Configuring VSANs and Interfaces
You can achieve higher security and greater stability in Fibre Channel fabrics by using virtual storage
area networks (VSANs). VSANs provide isolation among devices that are physically connected to the
same fabric.
Interfaces are members of a VSAN. Interfaces enable communication between switches in a VSAN.
Interfaces that are members of the same VSAN can communicate with each other; interfaces that are
members of different VSANs cannot communicate with each other.
Figure 3-1 describes the steps involved in configuring VSANs and interfaces.
Create a VSAN
Configure interfaces
Enable interfaces
140140
Plug in cables
Se n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a ck - d o c @ c i s c o . c o m
Creating VSANs
VSANs help you create multiple logical SANs over a common physical infrastructure. Each VSAN can
contain up to 239 switches and has an independent address space that allows identical Fibre Channel IDs
(FC IDs) to be used simultaneously in different VSANs.
Default VSAN
VSAN 1, also known as the default VSAN, is typically used for communication, management, or testing
purposes. We recommend that you do not use VSAN 1 as your production environment VSAN. There
are several features that, when configured, disrupt traffic on VSAN 1. If you use VSAN 1 as your
production environment VSAN, you risk disrupting traffic when these features are configured.
Note By default, all Cisco MDS 9000 Family switches belong to VSAN 1. We recommend you create
production environment VSANs and configure the switches to use those VSANs.
You cannot configure any application-specific parameters for a VSAN before creating the VSAN.
Command Purpose
Step 1 switch# config t Enters configuration mode.
Step 2 switch(config)# vsan database Configures the database for a VSAN. Application
switch(config-vsan-db)# specific VSAN parameters cannot be configured
from this prompt.
Step 3 switch(config-vsan-db)# vsan 2 Creates a VSAN with the specified ID (2) if that
switch(config-vsan-db)# VSAN does not exist already.
switch(config-vsan-db)# vsan 2 name TechDoc Updates the VSAN with the assigned name
updated vsan 2 (TechDoc).
switch(config-vsan-db)#
Step 4 switch(config-vsan-db)# vsan 2 Enables the load balancing guarantee for the
loadbalancing src-dst-id selected VSAN and directs the switch to use the
switch(config-vsan-db)#
source and destination ID for its path selection
process.
switch(config-vsan-db)# no vsan 2 Negates the command issued in the previous step
loadbalancing src-dst-id and reverts to the default values of the
switch(config-vsan-db)#
load-balancing parameters.
switch(config-vsan-db)# vsan 2 Changes the path selection setting to use the source
loadbalancing src-dst-ox-id ID, the destination ID, and the OX ID (default).
switch(config-vsan-db)#
Se n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a ck - d o c @ c i s c o . c o m
Command Purpose
Step 5 switch(config-vsan-db)# vsan 2 suspend Suspends the selected VSAN.
switch(config-vsan-db)#
switch(config-vsan-db)# no vsan 2 suspend Negates the suspend command issued in the
vs.-config-vsan-db# previous step.
Step 6 switch(config-vsan-db)# end Returns you to EXEC mode.
switch#
See Appendix A, “Configuring Static Domain IDs and Persistent FC IDs,” for details.
Warning HP-UX and AIX are two operating systems that utilize the FC ID in the device path to the
storage. For the switch to always assign the same FC ID to a device, persistent FC IDs and
static Domain ID must be configured for the VSAN.
Command Purpose
Step 1 switch# config t Enters configuration mode.
Step 2 switch(config)# vsan database Configures the database for a VSAN.
switch(config-vsan-db)#
Step 3 switch(config-vsan-db)# vsan 2 Creates a VSAN with the specified ID (2) if
switch(config-vsan-db)# that VSAN does not exist already.
Step 4 switch(config-vsan-db)# vsan 2 interface fc1/8 Assigns the membership of the fc1/8 interface
switch(config-vsan-db)# to the specified VSAN (VSAN 2).
Step 5 switch(config-vsan-db)# vsan 7 Creates another VSAN with the specified ID
switch(config-vsan-db)# (7) if that VSAN does not exist already.
Step 6 switch(config-vsan-db)# vsan 7 interface fc1/8 Updates the membership information of the
switch(config-vsan-db)# interface to reflect the changed VSAN.
Se n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a ck - d o c @ c i s c o . c o m
Configuring Interfaces
A switch's main function is to relay frames from one data link to another. To do that, the characteristics
of the interfaces through which the frames are sent and received must be defined. The configured
interfaces can be Fibre Channel interfaces, the management interface (mgmt0), or VSAN interfaces.
Command Purpose
Step 1 switch# config t Enters configuration mode.
Step 2 switch(config)# interface fc1/1 Configures the specified interface.
Note When a Fibre Channel interface is configured, it is
automatically assigned a unique world wide name
(WWN). If the interface’s operational state is up, it is
also assigned a Fibre Channel ID (FC ID).
Command Purpose
Step 1 switch# config t Enters configuration mode.
Step 2 switch(config)# interface fc1/1 - 4, fc2/1 - 3 Configures the range of specified interfaces.
Note In this command, provide a space
before and after the comma.
Se n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a ck - d o c @ c i s c o . c o m
Enabling Interfaces
Interfaces on a port are shut down by default (unless you modified the initial configuration).
To enable traffic flow, follow these steps:
Command Purpose
Step 1 switch# config t Enters configuration mode.
Step 2 switch(config)# interface fc1/1 Configures the specified interface.
Step 3 switch(config-if)# no shutdown Enables traffic flow to administratively allow
traffic when the no prefix is used (provided the
operational state is up).
switch(config-if)# shutdown Shuts down the interface and administratively
disables traffic flow (default).
After enabling the interfaces, make sure you plug in the cables. If the cables are not plugged in, the hosts
will not be able to communicate with the storage device.
Command Purpose
Step 1 switch# config t Enters configuration mode.
Step 2 switch(config)# interface fc1/1 Configures the specified interface.
switch(config-if)#
Step 3 switch(config-if)# switchport mode F Configures the administrative mode of the port. You
switch(config-if)# can set the operational state to auto, E, F, FL, Fx, TL,
or SD port mode.
Note Fx ports refer to an F port or an FL port (host
connection only), but not E ports.
switch(config-if)# switchport mode auto Configures the interface mode to auto negotiate an E,
switch(config-if)# F, FL, or TE port mode (not TL or SD port modes) of
operation.
Note TL ports and SD ports cannot be configured
automatically. They must be administratively
configured.
Note Before you begin to configure the management interface manually, obtain the switch’s IP address and IP
subnet mask.
Se n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a ck - d o c @ c i s c o . c o m
Command Purpose
Step 1 switch# config terminal Enters configuration mode.
switch(config)#
Step 2 switch(config)# interface mgmt0 Configures the Ethernet management interface on
switch(config-if)# the switch to configure the management interface.
Step 3 switch(config-if)# ip address 172.16.1.2 Enters the IP address and IP subnet mask for the
255 255.255.0 interface specified in Step 2.
Step 4 switch(config-if)# no shutdown Enables the interface.
Step 5 switch(config-if)# exit Returns to configuration mode.
switch(config)#
Step 6 switch(config)# ip default-gateway 1.1.1.4 Configures the default gateway IP address.
switch(config)#
Step 7 switch(config)# exit Returns to EXEC mode.
switch#
Step 8 switch# copy running-config startup-config (Optional) Saves your configuration changes to the
file system.
Note If you wish to save your configuration, you
can issue this command at any time.
Note You need to explicitly configure a default gateway to connect to the switch and send IP packets or add a
route for each subnet.
Tip After configuring the VSAN interface, you can configure an IP address or Virtual Router Redundancy
Protocol (VRRP) features.
Se n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a ck - d o c @ c i s c o . c o m
Command Purpose
Step 1 switch# config t Enters configuration mode.
Step 2 switch(config)# interface vsan 5 Configures a VSAN with the ID 5.
switch(config-if)#
Se n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a ck - d o c @ c i s c o . c o m