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)
How to add/edit the existing zone? I need to add additional devicealias members in existing zone through CLI, can anyone help me?
ReplyDeleteHi Bhuvan
ReplyDeleteThe steps are similar to add a new alias into existing zone. You can skip step 11 and thats pretty much it.
To edit existing zones and remove zone members, in step 8, use "no member devicealias alias_name"
Thank you for using silverstorage.blogspot.com
Hope this article How to do zoning on CISCO MDS SAN switches using Command Line Interface (CLI)was useful for you
-Prasanth
Do you have to be utilizing Device Alias Enhanced mode to use the "member devicealias TESTSERVER_hba0" command? If I'm utilizing Basic mode, do I have to continue to use the "member pwwn xx:xx:xx:xx:xx:xx:xx:xx" command? I rather use the alias name instead of the pwwn as I have already defined the device alias in the device alias database. All online Cisco documentation shows using the ppwn & the device alias when adding a member. Thanks!
ReplyDeleteThanks a ton Sir !! Keep Them Coming. :)
ReplyDeleteThank you very much, this information is very useful!
ReplyDeleteHi There,
ReplyDeleteThank you for sharing knowledgeable blog with us i hope that you will post many more blog with us :)
We provides best services online As Like shutdown unix command, brocade zoning commands, types of zoning in san, cisco zoning commands, vmax3 provisioning steps, snapvx,
Contact Us:-
Email:- contact@sajidiqubal.com
READ MORE....
Is JackpotCity Casino legal in Virginia? - DrmCD
ReplyDeleteThe 강릉 출장안마 casino is a fun 대전광역 출장샵 place for fun and gaming 영주 출장샵 fun. You may also enjoy 전라남도 출장샵 free slots, table games, and poker with 제주 출장안마 a bonus of up to $500.