New User's Guide to Configuring Cisco MDS Zones via CLI


24 August 2009

I’m a bit new to the Cisco MDS family of Fibre Channel switches, so I’m sure that this information is “old hat” to the storage pros out there who’ve done it a million times. Hence, I’m labeling this one as a “new user” article. The topic of this post is how to use the command-line interface (CLI) to configure zones on a Cisco MDS 9000 series Fibre Channel switch.

I won’t go into great detail on the purpose of zones and that sort of thing; I’m sure it’s been covered in excruciating detail elsewhere. (Knowledgeable readers with any links to that sort of information are encouraged to share those links in the comments.) Instead, I’ll just focus on the mechanics of how it’s done.

loteasier, in my opinion. You create aliases using the ​​fcalias​​ command, like this (where applicable in this command and all other commands in this post, replace​​_XXX_​

switch(config)# fcalias name stor-array-processor-a vsan _XXX_  
switch(config-fcalias)# member pwwn _AA:BB:CC:DD:EE:FF:00:11_
switch(config-fclias)# exit
switch(config)#

Obviously, you’ll replace the fake WWPN I used in the command above with the correct WWPN for that device. Repeat this process for all the storage processor ports, server HBAs, etc. From this point forward, you can use the alias in place of the WWPN when creating zones. See, isn’t that easier?

​zone​​ and ​​member​

switch(config)# zone name first-new-zone vsan _XXX_  
switch(config-zone)# member fcalias stor-array-processor-a
switch(config-zone)# member fcalias server-hba
switch(config-zone)# exit
switch(config)#

Since each zone contains only a single initiator, you’ll need to repeat this process for each initiator.

​zoneset​​ command, or you can clone an existing zoneset with the ​​zoneset clone​

switch(config)# zoneset clone existing-zoneset new-zoneset vsan _XXX_

From here, you have a copy of the existing zoneset, which already had all the previously defined zones as members. Add the new zones you’ve defined to the zoneset like this:

switch(config)# zoneset new-zoneset vsan _XXX_  
switch(config-zoneset)# member first-new-zone
switch(config-zoneset)# member second-new-zone
switch(config-zoneset)# exit

Finally, activate the zoneset:

switch(config)# zoneset activate name new-zoneset vsan _XXX_

​copy runn start​

UPDATE: I’ve posted a follow-up to this article on ​​managing zones via the CLI​​.


Tags: ​​Cisco​​​ · ​​FibreChannel​​​ · ​​Networking​​​ · ​​Storage​​​

← Previous Post: ​​​HyTrust Appliance 1.5​​​

Next Post: ​​​Connecting Nexus 5000 to Older Gigabit Ethernet Switches​​ →