How to do zoning on CISCO MDS SAN
switches using Command Line Interface (CLI)
In this step by step example to demonstrate How to do zoning
on CISCO MDS SAN switches using Command Line Interface (CLI), port 1/24 will be
used for server connection and port 2/24 for array port connection. VSAN 100
will be used as the production VSAN. Replace these values to reflect your
environment and the follow the naming guidelines you may have for device alias,
zone and zoneset at your site.
Connect to the switch using ssh/telnet
1.
Change into configuration mode
config t
2.
Check the vsan database and confirm if the
interface is in part of the VSAN
show flogi database int fc1/24
show flogi database int fc2/24
3.
Add the ports into the VSAN if it is not in
the database
vsan database
vsan 100 interface fc1/24
vsan 100 interface fc2/24
exit
4.
Create device alias for the interfaces
device-alias database
device-alias name TESTSERVER_hba0 pwwn xx:xx:xx:xx:xx:xx:xx:xx (WWN
from interface 1/24)
device-alias name TESTARRAY_port0 pwwn xx:xx:xx:xx:xx:xx:xx:xx (WWN
from interface 2/24)
5.
Check that the alias is in pending state to be
added
do show device-alias pending-diff
6.
Commit device-alias changes
device-alias commit
exit
7.
Add a name/ description and enable the ports
int fc1/24
no shut
switchport description TESTSERVER_hba0
int fc2/24
no shut
switchport description TESTARRAY_p0
exit
8.
Create zone
zone name TESTSERVER_hba0_TESTARRAY_p0 vsan 100
member devicealias TESTSERVER_hba0
member devicealias TESTARRAY_p0
exit
9.
Check Active zoneset
show zoneset active
10.
Backup current zoneset (assuming current zoneset
is TESTZONESET_Active)
zoneset clone TESTZONESET_Active TESTZONESET_Backup.<Date> vsan 100
11.
Add new
zone member to zoneset
zoneset name TESTZONESET_Active vsan 100
member TESTSERVER_hba0_TESTARRAY_p0
exit
12.
Verify
that the zoneset is fully populated
do show zoneset brief vsan 100
13.
Activate zoneset
zoneset activate name TESTZONESET_Active vsan 100
exit
14.
Verify zone activation status
show zone status vsan 100
15.
Ensure that the new zone is part of the active
zoneset
show zone name TESTSERVER_hba0_TESTARRAY_p0 active vsan 100
16.
Copy the running config to the startup config
copy run start
17.
Repeat the above steps Fabric B
This
concludes the step by step procedure to do zoning on CISCO MDS SAN
switches using Command Line Interface (CLI)